From c94e327a74a16a85f23d73be386c161a9cfe81d4 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Fri, 3 Apr 2020 13:01:43 -0500 Subject: [PATCH] Allow rc 1 on centos7 when waiting for systemctl. --- molecule/default/converge.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index f1a4cf1..629095b 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml @@ -8,16 +8,17 @@ apt: update_cache=yes cache_valid_time=600 when: ansible_os_family == 'Debian' - - name: Wait for systemd to complete initialization. # noqa 303 + - name: Wait for systemd to complete initialization. # noqa 303 command: systemctl is-system-running register: systemctl_status - until: >- + until: > 'running' in systemctl_status.stdout or 'degraded' in systemctl_status.stdout retries: 30 delay: 5 when: ansible_service_mgr == 'systemd' changed_when: false + failed_when: systemctl_status.rc > 1 roles: - role: geerlingguy.docker