Просмотр исходного кода

fix roles for demo, git and sound and add owncloud

Laurent Hory 9 лет назад
Родитель
Сommit
2d5a4a83fd

+ 1 - 0
playbook.yml

@@ -9,3 +9,4 @@
     - sound
     - git
     - demo
+    - owncloud

+ 1 - 1
roles/demo/tasks/main.yml

@@ -1,2 +1,2 @@
 - name: renewal certificat
-  command: "/root/certbot-auto certonly --renew-by-default -a webroot-path /var/www/demo -d demo.hory.me --rsa-key-size 4096 --text"
+  command: "/root/certbot-auto certonly --renew-by-default -a webroot --webroot-path /var/www/demo -d demo.hory.me --rsa-key-size 4096 --text"

+ 1 - 1
roles/git/tasks/main.yml

@@ -1,2 +1,2 @@
 - name: renewal certificat
-  command: "/root/certbot-auto certonly --renew-by-default -a webroot-path /var/www/git -d git.hory.me --rsa-key-size 4096 --text"
+  command: "/root/certbot-auto certonly --renew-by-default -a webroot --webroot-path /var/www/git -d git.hory.me --rsa-key-size 4096 --text"

+ 2 - 0
roles/owncloud/tasks/main.yml

@@ -0,0 +1,2 @@
+- name: renewal certificat
+  command: "/root/certbot-auto certonly --renew-by-default -a webroot --webroot-path /var/www/owncloud -d owncloud.hory.me --rsa-key-size 4096 --text"

+ 0 - 0
roles/owncloud/vars/main.yml


+ 3 - 3
roles/sound/tasks/main.yml

@@ -1,6 +1,6 @@
 - name: deactivate htaccess
-  command: 'mv /var/www/sound/demo/.htaccess /var/www/sound/demo/htaccess'
+  command: 'mv /var/www/sonerezh/.htaccess /var/www/sonerezh/htaccess'
 - name: renewal certificat
-  command: '/root/certbot-auto certonly --renew-by-default -a webroot --webroot-path /var/www/sound -d sound.hory.me --rsa-key-size 4096 --text'
+  command: '/root/certbot-auto certonly --renew-by-default -a webroot --webroot-path /var/www/sound/sonerezh -d sound.hory.me --rsa-key-size 4096 --text'
 - name: reactivate htaccess
-  command: 'mv /var/www/sound/demo/htaccess /var/www/sound/demo/.htaccess'
+  command: 'mv /var/www/sonerezh/htaccess /var/www/sonerezh/.htaccess'