0.1.1-DEV-20200430-003350
-------------------------- * ADD: - add exceptions for service name if dist == Debian
This commit is contained in:
@ -1,5 +1,10 @@
|
||||
---
|
||||
# tasks file for zen_ntp
|
||||
- name: set service name for debian if required
|
||||
set_fact:
|
||||
ntp_service: ntp
|
||||
when: ansible_distribution == "Debian"
|
||||
|
||||
|
||||
- name: install ntp if not present
|
||||
package:
|
||||
@ -19,7 +24,7 @@
|
||||
|
||||
- name: enable/start ntpd
|
||||
service:
|
||||
name: ntpd
|
||||
name: "{{ ntp_service }}"
|
||||
enabled: yes
|
||||
state: started
|
||||
when: ansible_distribution_major_version == "7" and ansible_virtualization_type != "docker"
|
||||
when: ansible_virtualization_type != "docker"
|
||||
|
Reference in New Issue
Block a user