add redhat compatibilty
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
vincent 2022-06-20 22:14:11 +02:00
parent 8c0269ecf3
commit 7af4913b1e
3 changed files with 14 additions and 2 deletions

View File

@ -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
View File

@ -0,0 +1,2 @@
---
cronie_service_name: cronie.service

2
vars/RedHat.yml Normal file
View File

@ -0,0 +1,2 @@
---
cronie_service_name: crond.service