From bc833f1dfd37162e84afc23d0929710772e0ea39 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 7 Sep 2022 14:03:11 -0700 Subject: [PATCH] Fix overindented ansible in zuul_reboot.yaml playbook Ansible syntax got me. When I updated the apt tasks to retry on apt/dpkg locks I overindented the register, delay, retries, and until parameters. These are to the task not the module. Change-Id: I955d96b5467597503e0e5563e37ffa736ef2fcdc --- playbooks/zuul_reboot.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/playbooks/zuul_reboot.yaml b/playbooks/zuul_reboot.yaml index db14461c5c..198cc3fee5 100644 --- a/playbooks/zuul_reboot.yaml +++ b/playbooks/zuul_reboot.yaml @@ -18,11 +18,11 @@ apt: update_cache: yes upgrade: yes - register: apt_action - # 20 minute wait for unattended-upgrades to complete - delay: 30 - retries: 40 - until: apt_action is success or 'Failed to lock apt for exclusive operation' not in apt_action.msg + register: apt_action + # 20 minute wait for unattended-upgrades to complete + delay: 30 + retries: 40 + until: apt_action is success or 'Failed to lock apt for exclusive operation' not in apt_action.msg - name: Reboot the executor server reboot: - name: Start the executor @@ -42,11 +42,11 @@ apt: update_cache: yes upgrade: yes - register: apt_action - # 20 minute wait for unattended-upgrades to complete - delay: 30 - retries: 40 - until: apt_action is success or 'Failed to lock apt for exclusive operation' not in apt_action.msg + register: apt_action + # 20 minute wait for unattended-upgrades to complete + delay: 30 + retries: 40 + until: apt_action is success or 'Failed to lock apt for exclusive operation' not in apt_action.msg - name: Reboot the merger server reboot: - name: Start the merger @@ -72,11 +72,11 @@ apt: update_cache: yes upgrade: yes - register: apt_action - # 20 minute wait for unattended-upgrades to complete - delay: 30 - retries: 40 - until: apt_action is success or 'Failed to lock apt for exclusive operation' not in apt_action.msg + register: apt_action + # 20 minute wait for unattended-upgrades to complete + delay: 30 + retries: 40 + until: apt_action is success or 'Failed to lock apt for exclusive operation' not in apt_action.msg - name: Reboot the scheduler server reboot: - name: Start the scheduler process