Allow rc 1 on centos7 when waiting for systemctl.

This commit is contained in:
Jeff Geerling 2020-04-03 13:01:43 -05:00
parent 546b11ff0b
commit c94e327a74

View File

@ -11,13 +11,14 @@
- name: Wait for systemd to complete initialization. # noqa 303 - name: Wait for systemd to complete initialization. # noqa 303
command: systemctl is-system-running command: systemctl is-system-running
register: systemctl_status register: systemctl_status
until: >- until: >
'running' in systemctl_status.stdout or 'running' in systemctl_status.stdout or
'degraded' in systemctl_status.stdout 'degraded' in systemctl_status.stdout
retries: 30 retries: 30
delay: 5 delay: 5
when: ansible_service_mgr == 'systemd' when: ansible_service_mgr == 'systemd'
changed_when: false changed_when: false
failed_when: systemctl_status.rc > 1
roles: roles:
- role: geerlingguy.docker - role: geerlingguy.docker