facts: move two set_fact into ceph-facts

those two set_fact tasks should be moved in ceph-facts.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/3603/head
Guillaume Abrioux 2019-02-11 12:00:25 +01:00 committed by mergify[bot]
parent 69310a5cd6
commit b24202f6a4
2 changed files with 12 additions and 11 deletions

View File

@ -258,3 +258,15 @@
with_sequence: start=0 end={{ radosgw_num_instances|int - 1 }}
when:
- inventory_hostname in groups.get(rgw_group_name, [])
- name: set ntp service name depending on OS family
block:
- name: set ntp service name for Debian family
set_fact:
ntp_service_name: ntp
when: ansible_os_family == 'Debian'
- name: set ntp service name for Red Hat family
set_fact:
ntp_service_name: ntpd
when: ansible_os_family in ['RedHat', 'Suse']

View File

@ -1,15 +1,4 @@
---
- name: set ntp service name depending on OS family
block:
- name: set ntp service name for Debian family
set_fact:
ntp_service_name: ntp
when: ansible_os_family == 'Debian'
- name: set ntp service name for Red Hat family
set_fact:
ntp_service_name: ntpd
when: ansible_os_family in ['RedHat', 'Suse']
# Installation of NTP daemons needs to be a separate task since installations
# can't happen on Atomic
- name: install the ntp daemon