summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2019-09-06 18:38:06 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2019-09-06 18:38:06 +0200
commit8f7fd8b335b97f555f6582456c4bf35e920ea51c (patch)
tree8503f5b42a8db2c9d1a4c96536c6451b76d5155e
parent1e7fcdee711f21e5cd283e5de5f688a0750367be (diff)
downloadansible-master.tar.gz
ansible-master.tar.bz2
ansible-master.zip
Added some services to restart on LE certificate update.HEADmaster
-rw-r--r--base-alexstrasza.yml1
-rw-r--r--host_vars/alexstrasza/alexstrasza.enc.yml29
-rw-r--r--host_vars/alexstrasza/alexstrasza.yml2
-rw-r--r--roles/lets_encrypt/tasks/main.yml10
4 files changed, 31 insertions, 11 deletions
diff --git a/base-alexstrasza.yml b/base-alexstrasza.yml
index c748e56..dabea60 100644
--- a/base-alexstrasza.yml
+++ b/base-alexstrasza.yml
@@ -5,3 +5,4 @@
- mail
- firewall
- packages
+ - buildbot
diff --git a/host_vars/alexstrasza/alexstrasza.enc.yml b/host_vars/alexstrasza/alexstrasza.enc.yml
index 8b8c96c..0686aed 100644
--- a/host_vars/alexstrasza/alexstrasza.enc.yml
+++ b/host_vars/alexstrasza/alexstrasza.enc.yml
@@ -1,12 +1,19 @@
$ANSIBLE_VAULT;1.1;AES256
-63643030303465363666623535343738393161396637633833363339376365383665326431396631
-3337616639663032393337383433396439363261616535330a346435626135333038396131323132
-36346663316333306664363135363234396230393232636635353765626237326461646338656336
-3638376438313765300a333537373738623761353733653665353239343563623365653330303462
-31633036386365373238353931333835613632323766346333323137636662356363653531616162
-32353666303265386134303462333866323032336364623130623235396565363562386235626163
-63326236316638376666663266303162393961303331323032303637653765386132383136313931
-39303535613135336439383634663035313861393936306531646531326665613936636561343362
-36333535333364303431313536323134656638303465353038336130353032373534393136623736
-33626337326462313063623165653733356435343033636233656661666565313939316639353963
-303761623633356539313062306362643265
+32616262616662363535323063646365366432316661656361356133623837323863356135383061
+3765636533363730656238306435393530393362313737360a376261393036653530636331636530
+39323231663634646439316465313036333738653365666563643139633037653564363239346331
+3631343835616338640a626535636139616633616664336462623434636663356465613237396563
+62623931333538653663613236663761663733396634356536343132643361373733653562353063
+66653363313136353037346436616332313436336337323865363932316633336634343635343639
+64396134376137623165303366336163663866313239376539376264613864663062363838623562
+31653664316561633161363939313565383165383065366465616432376261306437373935316638
+61336535656233303466323637633565393062386133653565656463663531366164333231636437
+35353835356433346131313265646163636164366337616539366565383834626436313535623038
+63396332616138383132323237373535646261663537353436383961653139316132343065623962
+64353635356139303937633561363138656233653332353132663233636461393863323731663137
+32613837373238323238343631343963623265666434613036363139613664353533343433383334
+62653834626362353233643733313631633939616437303465643362623435343839356238303736
+30373635323638653337316138306361393039613437653933643030303164623365313163373664
+66623364326332636363343961356232623162633134386164656433623666373230313139336533
+32663763653438316265393332346232346236636133323138346665343932363133383130646131
+3436653963616635383233313363323262313862663265656534
diff --git a/host_vars/alexstrasza/alexstrasza.yml b/host_vars/alexstrasza/alexstrasza.yml
index 181f2fd..468edf3 100644
--- a/host_vars/alexstrasza/alexstrasza.yml
+++ b/host_vars/alexstrasza/alexstrasza.yml
@@ -30,6 +30,8 @@ lets_encrypt_domains:
- owncloud.brentj.es
- hsboard.brentj.es
- dump.brentj.es
+ - weechat.brentj.es
+ - roost.brentj.es
owncloud_database_user: owncloud
mail_database_user: mail
diff --git a/roles/lets_encrypt/tasks/main.yml b/roles/lets_encrypt/tasks/main.yml
index 066cda8..4576480 100644
--- a/roles/lets_encrypt/tasks/main.yml
+++ b/roles/lets_encrypt/tasks/main.yml
@@ -17,3 +17,13 @@
become: yes
service: name=nginx state=started
ignore_errors: yes
+
+- name: restart dovecot
+ become: yes
+ service: name=dovecot state=restarted
+ ignore_errors: yes
+
+- name: restart postfix
+ become: yes
+ service: name=postfix state=restarted
+ ignore_errors: yes