Browse Source

init repo

SiM 5 years ago
parent
commit
793e0e506b
7 changed files with 69 additions and 0 deletions
  1. 17 0
      README.md
  2. 22 0
      hosts
  3. 9 0
      playbooks/upgrade_dev.yml
  4. 2 0
      playbooks/upgrade_prod.retry
  5. 9 0
      playbooks/upgrade_prod.yml
  6. 9 0
      playbooks/upgrade_tera-host.yml
  7. 1 0
      ssh_config

+ 17 - 0
README.md

@@ -1 +1,18 @@
+# Tera - Ansible
+
 Dépôt qui contient la conf ansible pour mettre à jour les seveurs, etc.
+
+Vérifier la syntaxe :
+```bash
+$ ansible-playbook playbooks/upgrade_dev.yml --syntax-check
+```
+
+Voir sur quels hosts sera joué le playbook :
+```bash
+$ ansible-playbook playbooks/upgrade_dev.yml --list-hosts
+```
+
+Lancer un playbook en mode verbeux :
+```bash
+$ ansible-playbook playbooks/upgrade_dev.yml --verbose
+```

+ 22 - 0
hosts

@@ -0,0 +1,22 @@
+tera-host
+
+[tera-dev]
+tera-dev-site
+tera-dev-agora
+tera-dev-discourse
+tera-dev-katao
+test-dolibarr
+test-agora
+tera-test-yuno
+
+[tera-prod]
+tera-reverse-proxy
+tera-prod-site
+tera-prod-agora
+tera-prod-discourse
+tera-prod-trentels
+tera-pp-katao
+tera-monnaie
+divers
+tera-si
+

+ 9 - 0
playbooks/upgrade_dev.yml

@@ -0,0 +1,9 @@
+# Update and upgrade dev servers
+---
+- hosts: tera-dev
+  tasks:
+     - name: Update and dist-upgrade
+       apt:
+         update_cache=yes
+         state=latest
+         upgrade=dist

+ 2 - 0
playbooks/upgrade_prod.retry

@@ -0,0 +1,2 @@
+tera-monnaie
+tera-prod-trentels

+ 9 - 0
playbooks/upgrade_prod.yml

@@ -0,0 +1,9 @@
+# Update and upgrade prod servers
+---
+- hosts: tera-prod
+  tasks:
+     - name: Update and dist-upgrade
+       apt:
+         update_cache=yes
+         state=latest
+         upgrade=dist

+ 9 - 0
playbooks/upgrade_tera-host.yml

@@ -0,0 +1,9 @@
+# Update and upgrade dev servers
+---
+- hosts: tera-host
+  tasks:
+     - name: Update and dist-upgrade
+       apt:
+         update_cache=yes
+         state=latest
+         upgrade=dist

+ 1 - 0
ssh_config

@@ -0,0 +1 @@
+/home/sim/.ssh/config_tera