Browse Source

Ansible fixups. Just make it sure it works for real.

master
Luke Murphy 5 years ago
parent
commit
3551631642
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 4
      ansible/README.md
  2. 2
      ansible/inventory
  3. 7
      ansible/plays/deploy.yml
  4. 5
      ansible/plays/setup.yml

4
ansible/README.md

@ -17,11 +17,11 @@ $ sudo apt install -y ansible
## Setup a New XPPL ## Setup a New XPPL
```bash ```bash
$ ansible-playbook --limit varia-zone --ask-become-pass plays/setup.yml $ ansible-playbook --limit varia.zone --ask-become-pass plays/setup.yml
``` ```
## Deploy a New XPPL Version ## Deploy a New XPPL Version
```bash ```bash
$ ansible-playbook --limit varia-zone --ask-become-pass plays/deploy.yml $ ansible-playbook --limit varia.zone --ask-become-pass plays/deploy.yml
``` ```

2
ansible/inventory

@ -1,2 +1,2 @@
[managed] [all]
varia.zone ansible_ssh_port=12345 varia.zone ansible_ssh_port=12345

7
ansible/plays/deploy.yml

@ -1,6 +1,9 @@
--- ---
- hosts: managed # Just deploy a new version of the the XPPL.
# Depends on setup.yml being ran first to set things up.
- hosts: all
pre_tasks: pre_tasks:
- name: Shutdown the running XPPL for the deployment. - name: Shutdown the running XPPL for the deployment.
become: true become: true
@ -17,4 +20,4 @@
become: true become: true
supervisorctl: supervisorctl:
name: 'xppl:' name: 'xppl:'
state: stopped state: started

5
ansible/plays/setup.yml

@ -1,6 +1,9 @@
--- ---
- hosts: managed # Setup all necessary infrastructure for the project.
# Install the project and get it running under supervisor.
- hosts: all
roles: roles:
- role: perms # Setup users and groups - role: perms # Setup users and groups
- role: git # Clone the project source - role: git # Clone the project source

Loading…
Cancel
Save