Do not check services if host is a Docker container.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
pattern: "{{ crond_pattern }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
when: ansible_virtualization_type != 'docker'
|
||||
register: cron_status
|
||||
until: cron_status.state == "started"
|
||||
retries: 3
|
||||
@@ -80,6 +81,7 @@
|
||||
pattern: "{{ sshd_pattern }}"
|
||||
state: reloaded
|
||||
enabled: yes
|
||||
when: ansible_virtualization_type != 'docker'
|
||||
register: sshd_status
|
||||
until: sshd_status.state == "started"
|
||||
retries: 3
|
||||
@@ -113,6 +115,7 @@
|
||||
pattern: "{{ ntp_server }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
when: ansible_virtualization_type != 'docker'
|
||||
register: ntp_status
|
||||
until: ntp_status.state == "started"
|
||||
retries: 3
|
||||
|
Reference in New Issue
Block a user