[add cosmos]
This commit is contained in:
18
update.yml
18
update.yml
@@ -20,22 +20,22 @@
|
||||
- apt:
|
||||
update_cache: yes
|
||||
become: true
|
||||
when:
|
||||
- inventory_hostname != 'scaleway'
|
||||
# when:
|
||||
# - inventory_hostname != 'scaleway'
|
||||
|
||||
|
||||
- apt:
|
||||
upgrade: full
|
||||
become: true
|
||||
when:
|
||||
- inventory_hostname != 'scaleway'
|
||||
# when:
|
||||
# - inventory_hostname != 'scaleway'
|
||||
|
||||
|
||||
- community.docker.docker_compose_v2:
|
||||
project_src: /opt/dockerapps/
|
||||
pull: always
|
||||
when:
|
||||
- inventory_hostname == 'scaleway'
|
||||
# - community.docker.docker_compose_v2:
|
||||
# project_src: /opt/dockerapps/
|
||||
# pull: always
|
||||
# when:
|
||||
# - inventory_hostname == 'scaleway'
|
||||
|
||||
- shell: "if [ $(ls /var/run/reboot* 2>/dev/null | wc -l) -gt 0 ]; then echo 'reboot_needed'; fi"
|
||||
register: reboot_needed
|
||||
|
||||
Reference in New Issue
Block a user