This commit is contained in:
parent
8c0269ecf3
commit
7af4913b1e
@ -1,11 +1,19 @@
|
||||
---
|
||||
- name: Include OS-specific variables
|
||||
include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- files:
|
||||
- "{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml"
|
||||
- "{{ ansible_os_family }}.yml"
|
||||
|
||||
|
||||
# tasks file for cronie
|
||||
- name: Install cronie
|
||||
pacman: name=cronie state=present
|
||||
package: name=cronie state=present
|
||||
become: yes
|
||||
|
||||
- name: Enable cronie
|
||||
service: name=cronie.service enabled=yes state=started
|
||||
service: name="{{cronie_service_name}}" enabled=yes state=started
|
||||
become: yes
|
||||
|
||||
- name: ensure root cron file exist
|
||||
|
2
vars/Archlinux.yml
Normal file
2
vars/Archlinux.yml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
cronie_service_name: cronie.service
|
2
vars/RedHat.yml
Normal file
2
vars/RedHat.yml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
cronie_service_name: crond.service
|
Loading…
Reference in New Issue
Block a user