Stop containers before updating the configuration
This commit is contained in:
@@ -9,6 +9,16 @@
|
||||
register: uid_containers
|
||||
changed_when: uid_containers.rc != 0
|
||||
|
||||
- name: Stop running containers
|
||||
become_user: containers
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
scope: user
|
||||
name: container-{{ item }}.service
|
||||
state: stopped
|
||||
loop:
|
||||
- traefik
|
||||
|
||||
- name: Permit traffic from any IP to http port
|
||||
become: true
|
||||
community.general.ufw:
|
||||
|
||||
Reference in New Issue
Block a user