From c1c697fccfd0553860398641a014ba326bd2ecd4 Mon Sep 17 00:00:00 2001 From: Daniel Matthews Date: Fri, 20 Oct 2023 12:49:15 +0100 Subject: [PATCH] Uncomment `pre_tasks` --- molecule/resources/converge.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/molecule/resources/converge.yml b/molecule/resources/converge.yml index 115e1b8..455d555 100644 --- a/molecule/resources/converge.yml +++ b/molecule/resources/converge.yml @@ -2,18 +2,18 @@ - name: Converge hosts: all gather_facts: true - # pre_tasks: - # - name: Wait for systemd to complete initialization. # noqa command-instead-of-module - # ansible.builtin.command: systemctl is-system-running - # register: systemctl_status - # 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 > 0 + pre_tasks: + - name: Wait for systemd to complete initialization. # noqa command-instead-of-module + ansible.builtin.command: systemctl is-system-running + register: systemctl_status + 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 > 0 tasks: - name: Include ansible-role-firewalld