aboutsummaryrefslogtreecommitdiff
path: root/ansible/README.md
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-07-05 19:52:31 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-07-05 19:52:31 +0200
commit6b37b7c932857e408fcf54da37925dc58b3a0d32 (patch)
tree5d683857f5346b49eb29a01a40ef1093dfac4cbf /ansible/README.md
parent03d4e50b0508a292a7d24cc0e4cd4327118050d8 (diff)
downloadinfrastructure-6b37b7c932857e408fcf54da37925dc58b3a0d32.tar.gz
infrastructure-6b37b7c932857e408fcf54da37925dc58b3a0d32.zip
Add a readmenetwork_config
Diffstat (limited to 'ansible/README.md')
-rw-r--r--ansible/README.md56
1 files changed, 7 insertions, 49 deletions
diff --git a/ansible/README.md b/ansible/README.md
index 0d0c607..806adf5 100644
--- a/ansible/README.md
+++ b/ansible/README.md
@@ -1,52 +1,10 @@
+# ANSIBLE
-## Provisionning
+## How to proceed
- 1. Need a public IP address
- 2. Deploy Debian sid/buster
- 3. Add a DNS entry like xxxx.machine.deuxfleurs.fr A 0.0.0.0 in Cloudflare + Havelock
- 4. Setup the fqdn in /etc/hosts (127.0.1.1 xxxx.machine.deuxfleurs.fr)
- 5. Switch the SSH port to the port 110
- 6. Add the server to the ./production file
- 7. Reboot machine
- 8. Deploy Ansible
- 9. Check that everything works as intended
- 10. Update NS 1.cluster.deuxfleurs.fr
-
-## Useful commands
-
-Show every variables collected by Ansible for a given host:
-
-```
-ansible -i production villequin.machine.deuxfleurs.fr -m setup
-```
-
-Run playbook for only one host:
-
-```
-ansible-playbook -i production --limit villequin.machine.deuxfleurs.fr site.yml
-```
-
-Dump hostvars:
-
-```
-ansible -m debug villequin.machine.deuxfleurs.fr -i ./production -a "var=hostvars"
-```
-
-Deploy only one tag:
-
-```
-ansible-playbook -i production site.yml --tags "container"
-```
-
-Redeploy everything:
-
-```
-ansible-playbook -i production site.yml
-```
-
-Upgrade packages and force overwirte to fix bad packing done by GlusterFS:
-
-```
-apt-get -o Dpkg::Options::="--force-overwrite" dist-upgrade -y
-```
+For each machine, **one by one** do:
+ - Check that cluster is healthy
+ - Run `ansible-playbook -i production --limit <machine> site.yml`
+ - Reboot
+ - Check that cluster is healthy