--- - name: 'Reload nextcloud services' become: true ansible.builtin.service: daemon_reload: true - name: 'Restart nextcloud network' become: true ansible.builtin.service: name: '{{ nextcloud_podman_network }}-network' state: 'restarted' notify: - 'Restart nextcloud-app container' # - 'Restart nextcloud-cron container' - 'Restart nextcloud-db container' - 'Restart nextcloud-redis container' - name: 'Restart nextcloud volumes' become: true ansible.builtin.service: name: '{{ item }}' state: 'restarted' loop: - '{{ nextcloud_app_volume }}-volume' - '{{ nextcloud_db_volume }}-volume' - '{{ nextcloud_redis_volume }}-volume' notify: - 'Restart nextcloud-app container' # - 'Restart nextcloud-cron container' - 'Restart nextcloud-db container' - 'Restart nextcloud-redis container' - name: 'Restart nextcloud-db image' become: true ansible.builtin.service: name: 'nextcloud-db-image' state: 'restarted' notify: - 'Restart nextcloud-db container' - name: 'Restart nextcloud-redis image' become: true ansible.builtin.service: name: 'nextcloud-redis-image' state: 'restarted' notify: - 'Restart nextcloud-redis container' - name: 'Restart nextcloud-app image' become: true ansible.builtin.service: name: 'nextcloud-app-image' state: 'restarted' notify: - 'Restart nextcloud-app container' # - 'Restart nextcloud-cron container' - name: 'Restart nextcloud-db container' become: true ansible.builtin.service: name: '{{ nextcloud_db_container_name }}' state: 'restarted' notify: - 'Restart nextcloud-app container' # - 'Restart nextcloud-cron container' - name: 'Restart nextcloud-redis container' become: true ansible.builtin.service: name: '{{ nextcloud_redis_container_name }}' state: 'restarted' notify: - 'Restart nextcloud-app container' # - 'Restart nextcloud-cron container' - name: 'Restart nextcloud-app container' become: true ansible.builtin.service: name: '{{ nextcloud_app_container_name }}' state: 'restarted' # - name: 'Restart nextcloud-cron container' # become: true # ansible.builtin.service: # name: '{{ nextcloud_cron_container_name }}' # state: 'restarted'