diff --git a/defaults/main.yml b/defaults/main.yml index 59c63a8..a4c75cd 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -9,6 +9,8 @@ common_apt_upgrade_policy: "" common_xbps: False common_xbps_upgrade_policy: True +common_cronie: True + common_hostname: True common_hostname_hosts_additional: [] diff --git a/tasks/cronie.yml b/tasks/cronie.yml new file mode 100644 index 0000000..728e981 --- /dev/null +++ b/tasks/cronie.yml @@ -0,0 +1,6 @@ +--- +- name: cronie - install cronie + package: name=cronie + +- name: cronie - start runit service + service: name=cronie state=started enabled=yes diff --git a/tasks/main.yml b/tasks/main.yml index 2317d2d..535891e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -15,6 +15,10 @@ when: common_xbps tags: ['common', 'xbps'] +- import_tasks: cronie.yml + when: common_cronie and (ansible_distribution != 'Debian' or ansible_distribution != 'Ubuntu') + tags: ['common', 'cronie'] + - import_tasks: locales.yml when: common_locales tags: ['common', 'locales']