Browse Source

ajout playbook pour mettre a jour tera.coop dev et prod

SiM 5 years ago
parent
commit
d0928226c1
3 changed files with 14 additions and 0 deletions
  1. 2 0
      hosts
  2. 6 0
      playbooks/livraison_teracoop_dev.yml
  3. 6 0
      playbooks/livraison_teracoop_prod.yml

+ 2 - 0
hosts

@@ -1,4 +1,6 @@
 tera-host
+tera-dev-site
+tera-prod-site
 
 [tera-dev]
 tera-dev-site

+ 6 - 0
playbooks/livraison_teracoop_dev.yml

@@ -0,0 +1,6 @@
+# Update tera.coop dev site with latest sources
+---
+- hosts: tera-dev-site
+  tasks:
+     - name: Update sources
+       shell: cd /var/www/transition_tera.coop/ && git pull && chown -R tera:tera *

+ 6 - 0
playbooks/livraison_teracoop_prod.yml

@@ -0,0 +1,6 @@
+# Update tera.coop prod site with latest sources
+---
+- hosts: tera-prod-site
+  tasks:
+     - name: Update sources
+       shell: cd /var/www/transition_tera.coop/ && git pull && chown -R tera:tera *