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
This commit is contained in:
parent
87f96d3356
commit
bc833f1dfd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user