aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-22 15:14:03 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-22 15:14:03 +0200
commit10d932c6f645e2cf4331ffb249882b9fe8f0e547 (patch)
tree555235f0351f6d8dd613fca598d0dd3064be3a4b /roles
parentc8de512a98462327b909311d2f89c90c32fb9246 (diff)
downloadrules-10d932c6f645e2cf4331ffb249882b9fe8f0e547.tar.gz
roles(workstation): add cronie task
Diffstat (limited to 'roles')
-rw-r--r--roles/workstation/tasks/cronie.yml10
-rw-r--r--roles/workstation/tasks/os_archlinux.yml3
2 files changed, 13 insertions, 0 deletions
diff --git a/roles/workstation/tasks/cronie.yml b/roles/workstation/tasks/cronie.yml
new file mode 100644
index 0000000..1ac0042
--- /dev/null
+++ b/roles/workstation/tasks/cronie.yml
@@ -0,0 +1,10 @@
+- name: install cronie
+ package:
+ name: cronie
+ state: present
+
+- name: enable and restart cronie
+ service:
+ name: cronie
+ state: restarted
+ enabled: true
diff --git a/roles/workstation/tasks/os_archlinux.yml b/roles/workstation/tasks/os_archlinux.yml
index 76d78c5..488004c 100644
--- a/roles/workstation/tasks/os_archlinux.yml
+++ b/roles/workstation/tasks/os_archlinux.yml
@@ -2,6 +2,9 @@
include_tasks: tlp.yml
when: ansible_form_factor in ["Laptop", "Notebook"]
+- name: include cronie setup
+ include_tasks: cronie.yml
+
- name: include virtualization setup
include_tasks: libvirt.yml
remember that computers suck.