chiark / gitweb /
New role for Debian-specific configuration.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 14 Jul 2015 10:17:56 +0000 (11:17 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 14 Jul 2015 10:17:56 +0000 (11:17 +0100)
Move the PKI-management scripts over, because they're not truly common.

all.yml
roles/common/tasks/main.yml
roles/debian/files/pki/check-x509-certs [moved from roles/common/files/pki/check-x509-certs with 100% similarity]
roles/debian/files/pki/update-ca-certs [moved from roles/common/files/pki/update-ca-certs with 100% similarity]
roles/debian/tasks/main.yml [new file with mode: 0644]

diff --git a/all.yml b/all.yml
index c1af70865c2f9856059bcd304d52966f3099ebe1..13f9a27566d9f23dba6554296571bb82cb02b975 100644 (file)
--- a/all.yml
+++ b/all.yml
@@ -9,3 +9,9 @@
   gather_facts: no
   roles:
     - common
+
+## Operating-system-specific configuration.
+- hosts: debian-hosts
+  gather_facts: no
+  roles:
+    - debian
index 42bc86c80c8cf1d8e0f76f3caee4dec9490d4fc7..f20dc0f65e4e3982a66bfae279327d9d55971c0f 100644 (file)
 ###--------------------------------------------------------------------------
 ### PKI machinery.
 
-- name: install PKI maintenance scripts
-  tags: [pki, pki-scripts]
-  copy: src=pki/{{ item }} dest=/etc/cron.daily/
-  with_items:
-    - update-ca-certs
-    - check-x509-certs
-
 - name: install common PKI files
   tags: [pki, pki-keys]
   copy: src=pki/{{ item }} dest=/etc/ca/
diff --git a/roles/debian/tasks/main.yml b/roles/debian/tasks/main.yml
new file mode 100644 (file)
index 0000000..70bf371
--- /dev/null
@@ -0,0 +1,17 @@
+### -*-yaml-*-
+###
+### Tasks applicable for all Debian hosts.
+
+---
+
+###--------------------------------------------------------------------------
+### PKI machinery.
+
+- name: install PKI maintenance scripts
+  tags: [pki, pki-scripts]
+  copy: src=pki/{{ item }} dest=/etc/cron.daily/
+  with_items:
+    - update-ca-certs
+    - check-x509-certs
+
+###----- That's all, folks --------------------------------------------------