add os specific internal vars

This commit is contained in:
Robert Kaussow 2018-11-19 23:57:57 +01:00
parent fea00b360e
commit 1388b280d4
4 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,7 @@
---
- name: Restart ntpd
service:
name: ntpd
name: "{{ __ntp_service_name }}"
state: restarted
enabled: yes
listen: __ntpd_restart

View File

@ -1,4 +1,8 @@
---
- include_vars: "{{ item }}"
with_first_found:
- "os_{{ ansible_os_family | lower }}.yml"
- include_tasks: setup_default.yml
when:
- common_sshd_configuration_enabled

2
vars/os_debian.yml Normal file
View File

@ -0,0 +1,2 @@
---
__ntp_service_name: ntp

2
vars/os_redhat.yml Normal file
View File

@ -0,0 +1,2 @@
---
__ntp_service_name: ntpd