--- - name: Upgrade hosts hosts: all become: yes vars: ignore_pkg: [postgresql, postgresql-libs, linux-hardened, linux-headers, linux-api-headers] tasks: - name: Full system upgrade pacman: update_cache: yes upgrade: yes register: syu changed_when: syu.packages is not subset(ignore_pkg) - name: Upgrade Dockers hosts: aconcagua tasks: - name: Docker pull Photoview command: chdir: ~/Docker/photoview cmd: docker-compose pull -q register: pv_pull changed_when: pv_pull.stdout != '' or pv_pull.stderr != '' notify: - Restart Photoview - name: Docker pull Vaultwarden ansible.builtin.command: chdir: ~/Docker/vaultwarden cmd: docker-compose pull -q register: vw_pull changed_when: vw_pull.stdout != '' or vw_pull.stderr != '' notify: - Restart Vaultwarden handlers: - name: Restart Photoview ansible.builtin.command: chdir: ~/Docker/photoview cmd: docker-compose up -d - name: Restart Vaultwarden ansible.builtin.command: chdir: ~/Docker/vaultwarden cmd: docker-compose up -d