feat: init commit
This commit is contained in:
commit
0289360eb6
16 changed files with 449 additions and 0 deletions
18
tasks/main.yml
Normal file
18
tasks/main.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
- name: Setup docker & docker swarm
|
||||
ansible.builtin.import_tasks: 'docker.yml'
|
||||
|
||||
- name: Setup cuyper-hook
|
||||
ansible.builtin.include_tasks: 'cuyper-hook.yml'
|
||||
|
||||
- name: Setup loadbalancer
|
||||
ansible.builtin.import_tasks: 'loadbalancer.yml'
|
||||
|
||||
- name: reload loabalancer nginx
|
||||
ansible.builtin.command: docker compose -f /live/instances/cuyper/docker-compose.yml exec loadbalancer service nginx reload
|
||||
|
||||
- name: Run certbot
|
||||
ansible.builtin.command: "docker compose -f /live/instances/cuyper/docker-compose.yml exec loadbalancer certbot -d '{{ cuyper__hostname }}' --agree-tos --non-interactive --nginx"
|
||||
|
||||
- name: reload loabalancer nginx
|
||||
ansible.builtin.command: docker compose -f /live/instances/cuyper/docker-compose.yml exec loadbalancer service nginx reload
|
||||
Loading…
Add table
Add a link
Reference in a new issue