teaching-webterm/ansible/playbook.yml

34 lines
862 B
YAML
Raw Normal View History

2022-05-26 15:31:39 +00:00
---
2022-05-30 19:35:02 +00:00
# Collect tasks about role_mongo
- hosts: role_mongo
become: true
tasks: []
# Then deploy gateways
- hosts: role_gateway
2022-05-26 15:31:39 +00:00
become: true
tasks:
- include_tasks: tasks/setup_base.yml
- include_tasks: tasks/setup_docker.yml
- include_tasks: tasks/setup_sshwifty.yml
- include_tasks: tasks/setup_caddy.yml
- include_tasks: tasks/setup_sshaccess.yml
roles:
- role: caddy_ansible.caddy_ansible
caddy_setcap: 'yes'
caddy_systemd_network_dependency: false
caddy_systemd_capabilities_enabled: true
caddy_config: "{{ lookup('template', 'templates/Caddyfile.j2') }}"
2022-05-30 19:35:02 +00:00
# And deploy mongos
- hosts: role_mongo
2022-05-26 15:31:39 +00:00
become: true
tasks:
- include_tasks: tasks/setup_base.yml
- include_tasks: tasks/setup_docker.yml
- include_tasks: tasks/setup_mongo.yml
- include_tasks: tasks/setup_sshaccess.yml
#