summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-20 21:41:20 +0100
committerNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-20 21:41:20 +0100
commit3635c59de86051ea403cc4482a694b62da3bbf64 (patch)
tree585caf2f6a76250bfa747e5d70df8f8c7452bd2b
parent56670cd032559ea715cc3186ad0adbd33dd3a887 (diff)
moved cronie installation to own role
-rw-r--r--roles/install_cronie/tasks/main.yml11
-rw-r--r--roles/install_fastd/tasks/main.yml11
-rw-r--r--setup_fastd.yml1
3 files changed, 12 insertions, 11 deletions
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