From 3635c59de86051ea403cc4482a694b62da3bbf64 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Mon, 20 Mar 2017 21:41:20 +0100 Subject: moved cronie installation to own role --- roles/install_cronie/tasks/main.yml | 11 +++++++++++ roles/install_fastd/tasks/main.yml | 11 ----------- setup_fastd.yml | 1 + 3 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 roles/install_cronie/tasks/main.yml diff --git a/roles/install_cronie/tasks/main.yml b/roles/install_cronie/tasks/main.yml new file mode 100644 index 0000000..97a2ca8 --- /dev/null +++ b/roles/install_cronie/tasks/main.yml @@ -0,0 +1,11 @@ +--- +- name: install cronie + pacman: + name: cronie + state: present + +- name: start and enable cronie + systemd: + name: cronie.service + enabled: yes + state: started diff --git a/roles/install_fastd/tasks/main.yml b/roles/install_fastd/tasks/main.yml index b5c8671..c6434d0 100644 --- a/roles/install_fastd/tasks/main.yml +++ b/roles/install_fastd/tasks/main.yml @@ -63,17 +63,6 @@ src: fastd-api.php dest: /etc/fastd/ffmyk/bin/fastd-api.php -- name: install cronie - pacman: - name: cronie - state: present - -- name: start and enable cronie - systemd: - name: cronie.service - enabled: yes - state: started - - name: setup cronjob for fastd-api cron: name: fastd-api diff --git a/setup_fastd.yml b/setup_fastd.yml index 72bb431..2ddf41a 100644 --- a/setup_fastd.yml +++ b/setup_fastd.yml @@ -8,6 +8,7 @@ - configure_sysctl - configure_iptables - install_ssmtp + - install_cronie - install_php - install_nginx - install_ntp -- cgit v1.2.3-54-g00ecf