public-health-ch/ansible/roles/geerlingguy.docker/molecule/default/converge.yml

25 lines
627 B
YAML
Raw Normal View History

2020-05-15 20:41:39 +00:00
---
- name: Converge
hosts: all
become: true
pre_tasks:
- name: Update apt cache.
apt: update_cache=yes cache_valid_time=600
when: ansible_os_family == 'Debian'
2021-02-20 14:00:27 +00:00
- name: Wait for systemd to complete initialization. # noqa 303
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 > 1
2020-05-15 20:41:39 +00:00
roles:
- role: geerlingguy.docker