Stop containers before updating the configuration
This commit is contained in:
@@ -4,6 +4,18 @@
|
||||
- hosts: all
|
||||
name: Nextcloud file sharing web service
|
||||
tasks:
|
||||
- name: Stop running containers
|
||||
become_user: containers
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
scope: user
|
||||
name: container-{{ item }}.service
|
||||
state: stopped
|
||||
loop:
|
||||
- nextcloud
|
||||
- redis_nextcloud
|
||||
- db_nextcloud
|
||||
|
||||
- name: Pull container images
|
||||
become_user: containers
|
||||
become: true
|
||||
|
||||
Reference in New Issue
Block a user