06123b795d
The chrony container removal was performed in the Xena cycle, so we no longer require this task in the 'overcloud host configure' command. Change-Id: I86fcc75e844eb922f62c90c45a105519845cc1a7
20 lines
682 B
YAML
20 lines
682 B
YAML
---
|
|
- name: Populate service facts
|
|
service_facts:
|
|
|
|
- name: Mask alternative NTP clients to prevent conflicts
|
|
vars:
|
|
# NOTE(mgoddard): The service_facts module can return services that are not
|
|
# present, possibly due to After/Before dependencies in other services.
|
|
# These show up with a status of 'not-found'.
|
|
service_exists: >-
|
|
{{ item in ansible_facts.services and
|
|
ansible_facts.services[item].status != 'not-found' }}
|
|
systemd:
|
|
name: "{{ item }}"
|
|
enabled: "{{ 'false' if service_exists else omit }}"
|
|
masked: true
|
|
state: "{{ 'stopped' if service_exists else omit }}"
|
|
become: true
|
|
with_items: "{{ ntp_service_disable_list }}"
|