summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common.yml23
-rw-r--r--roles/common/handlers/main.yml3
2 files changed, 23 insertions, 3 deletions
diff --git a/common.yml b/common.yml
index bd2f3db..d689e04 100644
--- a/common.yml
+++ b/common.yml
@@ -12,6 +12,29 @@
roles:
- common
+- name: Base system
+ hosts: IMAP:MX:MSA:webmail:lists:wiki:git
+ gather_facts: False
+ tasks:
+ - name: Copy LetsEncrypt's ACME client
+ copy: src=deb/letsencrypt-tiny_0.1-1_all.deb
+ dest=/tmp
+ notify: Install LetsEncrypt's ACME client
+ - genkey
+ - name: Create a user 'letsencrypt'
+ user: name=letsencrypt system=yes
+ group=nogroup
+ createhome=no
+ home=/nonexistent
+ shell=/usr/sbin/nologin
+ password=!
+ state=present
+ handlers:
+ - name: Install LetsEncrypt's ACME client
+ apt: deb=/tmp/letsencrypt-tiny_0.1-1_all.deb
+ tags:
+ - letsencrypt
+
- name: Common SQL tasks
hosts: MDA:webmail:lists:bacula-dir
gather_facts: False
diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml
index 07047c7..a852c4d 100644
--- a/roles/common/handlers/main.yml
+++ b/roles/common/handlers/main.yml
@@ -52,6 +52,3 @@
- name: Restart freshclam
service: name=clamav-freshclam state=restarted
-
-- name: Install LetsEncrypt's ACME client
- apt: deb=/tmp/letsencrypt-tiny_0.1-1_all.deb