Deploy to localhost instead of seperate VM

This commit is contained in:
sonny 2023-02-12 09:24:51 +01:00
parent 5aa567c8b7
commit b05d1647b3
14 changed files with 27 additions and 252 deletions

View file

@ -1,36 +1,9 @@
- hosts: sentry
become: true
become_method: sudo
pre_tasks:
- include_role:
name: common
tasks_from: 'setup.yml'
- include_role:
name: common
tasks_from: 'network.yml'
- include_role:
name: common
tasks_from: 'host.yml'
- include_role:
name: common
tasks_from: 'sudoers.yml'
loop:
- { src: '../../templates/sudoers.j2', dest: '/etc/sudoers.d/30-ansible-extra' }
roles:
- common
# Note: this playbook requires the `docker` and `docker-compose` pip packages
# in order for the `docker_compose` module to work
- hosts: localhost
tasks:
- include_role:
name: common
tasks_from: 'ssl.yml'
- include_role:
name: common
tasks_from: 'nginx.yml'
- import_tasks: 'tasks/docker.yml'
- import_tasks: 'tasks/main.yml'
handlers:
- import_tasks: 'handlers.yml'
vars_files:
- 'vars/main.yml'
- 'vars/network.yml'
- 'vars/postgres.yml'
- 'vars/email.yml'