new role for maintaining webserver
This commit is contained in:
1 parent
c6ac0b0cc3
commit
31b2471f1c
4 files changed
+27
No files matched your search
@@ -0,0 +1,13 @@
|
||||
- name: Run docker pull for latest images
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
cmd: docker compose pull
|
||||
chdir: "{{ webadmin.home }}/{{ item }}"
|
||||
loop:
|
||||
- services
|
||||
- name: Restart containers with newest container images
|
||||
ansible.builtin.command:
|
||||
cmd: docker compose up -d
|
||||
chdir: "{{ webadmin.home }}/{{ item }}"
|
||||
loop:
|
||||
- services
|
||||
Reference in new issue
Block a user