ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

commit 074b61bba25c2619ee3324cb3b66aef12a7ce08c
parent f871fd070c28114e1842d53f3dd4abe0af1b83ad
Author: Leah Thein <leah@toaster.fritz.box>
Date: Thu, 3 Dec 2020 20:00:41 +0100

general: better task names
4 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/roles/acme-redirect/tasks/main.yml b/roles/acme-redirect/tasks/main.yml
@@ -1,6 +1,6 @@
 ---
 
-- name: Install acme-redirect
+- name: "Install package: acme-redirect"
   apk:
    name: acme-redirect
    state: present

@@ -44,12 +44,13 @@
     dest: /etc/awall/optional/web.json
     validate: jq '.' %s
 
-- awall:
+- name: "Enable firewall-rule for: http, https"
+  awall:
     name: web
     state: enabled
     activate: yes
 
-- name: Enable and start acme-redirect
+- name: "Enable and start service: acme-redirect"
   service:
    name: acme-redirect
    enabled: yes
diff --git a/roles/bind/tasks/main.yml b/roles/bind/tasks/main.yml
@@ -1,6 +1,6 @@
 ---
 
-- name: Install bind dns-server
+- name: "Install package: bind"
   apk:
    name: bind
    state: present

@@ -13,7 +13,7 @@
   when: bind.type == "master"
 
 
-- name: change ownership 
+- name: change ownership of /var/lib/named
   file:
     path: /var/lib/named
     owner: named

@@ -53,7 +53,7 @@
     dest: /etc/awall/optional/dns.json
     validate: jq '.' %s
 
-- name: activate new firewall-rules
+- name: "Activate new firewall-rule for: dns"
   awall:
     name: dns
     state: enabled
diff --git a/roles/gitolite/tasks/main.yml b/roles/gitolite/tasks/main.yml
@@ -1,5 +1,5 @@
 ---
-- name: Install gitolite
+- name: "Install package: gitolite"
   apk:
    name: gitolite, git
    state: present
diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml
@@ -1,6 +1,6 @@
 ---
 
-- name: Install nginx webserver
+- name: "Install package: nginx" 
   apk:
    name: nginx
    state: present

@@ -39,7 +39,8 @@
     dest: /etc/awall/optional/web.json
     validate: jq '.' %s
 
-- awall:
+- name: "activate firewall-rule for: http, https"
+  awall:
    name: web
    state: enabled
    activate: yes

@@ -67,7 +68,7 @@
     group: nginx
     mode: 0755
 
-- name: Enable and start nginx webserver
+- name: "Enable and start service: nginx"
   service:
    name: nginx
    enabled: yes