aboutsummaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-07-06 21:24:48 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-07-06 21:24:48 +0300
commita34abf1f1d77611b182ede2a98764844472b5398 (patch)
tree88e16521ed6ab39e41da8ab7c597b5b78170b9be /tasks
parent79c6171998deb6ee8821ead7971f62ea7f045ae2 (diff)
Update pf conf, refactor
Diffstat (limited to 'tasks')
-rw-r--r--tasks/email.yml5
-rw-r--r--tasks/general.yml8
-rw-r--r--tasks/network.yml5
3 files changed, 6 insertions, 12 deletions
diff --git a/tasks/email.yml b/tasks/email.yml
index f36d6db..3585c3f 100644
--- a/tasks/email.yml
+++ b/tasks/email.yml
@@ -1,8 +1,3 @@
-- name: Install dma
- package:
- name: dma
- state: present
-
- name: Create dma config directory
file:
path: /etc/dma
diff --git a/tasks/general.yml b/tasks/general.yml
index f527f87..2131059 100644
--- a/tasks/general.yml
+++ b/tasks/general.yml
@@ -1,7 +1,11 @@
-- name: Install rsync
+- name: Install packages
package:
- name: rsync
+ name: "{{ item }}"
state: present
+ loop:
+ - rsync
+ - nginx
+ - dma
- name: Set up periodic.conf
template:
diff --git a/tasks/network.yml b/tasks/network.yml
index 81983f5..d68344d 100644
--- a/tasks/network.yml
+++ b/tasks/network.yml
@@ -63,11 +63,6 @@
shell: pfctl -f /etc/pf.conf
when: pf_conf.changed
-- name: Install nginx
- package:
- name: nginx
- state: present
-
- name: Configure nginx.conf
template:
src: usr_local_etc_nginx_nginx.conf.j2