add os specific internal vars
This commit is contained in:
parent
fea00b360e
commit
1388b280d4
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Restart ntpd
|
- name: Restart ntpd
|
||||||
service:
|
service:
|
||||||
name: ntpd
|
name: "{{ __ntp_service_name }}"
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
listen: __ntpd_restart
|
listen: __ntpd_restart
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
- include_vars: "{{ item }}"
|
||||||
|
with_first_found:
|
||||||
|
- "os_{{ ansible_os_family | lower }}.yml"
|
||||||
|
|
||||||
- include_tasks: setup_default.yml
|
- include_tasks: setup_default.yml
|
||||||
when:
|
when:
|
||||||
- common_sshd_configuration_enabled
|
- common_sshd_configuration_enabled
|
||||||
|
2
vars/os_debian.yml
Normal file
2
vars/os_debian.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
__ntp_service_name: ntp
|
2
vars/os_redhat.yml
Normal file
2
vars/os_redhat.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
__ntp_service_name: ntpd
|
Loading…
Reference in New Issue
Block a user