feat: a lots of stuff and bugfixes mostly
This commit is contained in:
parent
0289360eb6
commit
a13235a7db
14 changed files with 468 additions and 62 deletions
|
|
@ -1,18 +1,19 @@
|
|||
---
|
||||
- name: Setup dummy interface
|
||||
ansible.builtin.import_tasks: 'dummyinterface.yml'
|
||||
|
||||
- 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: Setup certbot
|
||||
ansible.builtin.include_tasks: 'certbot.yml'
|
||||
when: cuyper__portainer_certbot_enabled == "yes"
|
||||
|
||||
- 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
|
||||
- name: Restart loabalancer
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ cuyper__cuyper_instance_path }}"
|
||||
state: restarted
|
||||
register: output
|
||||
Loading…
Add table
Add a link
Reference in a new issue