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