diff --git a/cron/hourly-restarts.yaml b/cron/hourly-restarts.yaml index 44d9fc3..379ab66 100644 --- a/cron/hourly-restarts.yaml +++ b/cron/hourly-restarts.yaml @@ -6,10 +6,10 @@ - invidious-invidious-1 tasks: - name: Do thing - ansible.builtin.command: docker restart {{item}} + ansible.builtin.command: docker restart {{ item }} register: out changed_when: out.rc != 0 - with_items: services + with_items: "{{ services }}" - name: Hourly Restarts (SOLEIL+REST) hosts: docker,us,in vars: @@ -20,10 +20,10 @@ - scribe tasks: - name: Do thing - ansible.builtin.command: docker restart {{item}} + ansible.builtin.command: docker restart {{ item }} register: out changed_when: out.rc != 0 - with_items: services + with_items: "{{ services }}" - name: Hourly Restarts (PIZZA+REST) hosts: privfrontends vars: @@ -32,7 +32,7 @@ - teddit tasks: - name: Do thing - ansible.builtin.command: docker restart {{item}} + ansible.builtin.command: docker restart {{ item }} register: out changed_when: out.rc != 0 - with_items: services + with_items: "{{ services }}"