aboutsummaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-11-13 12:33:23 +0100
committerAlex Auvolat <alex@adnab.me>2020-11-13 12:33:23 +0100
commite1f171e19c1de82dfe4aacf89dea9d567dacd6c5 (patch)
treefede037d8adf7fe9e24402a5865297c57b1f8c00 /os
parent9981ea02860d4f4782a608490c5d5cf8761b3ed3 (diff)
downloadinfrastructure-e1f171e19c1de82dfe4aacf89dea9d567dacd6c5.tar.gz
infrastructure-e1f171e19c1de82dfe4aacf89dea9d567dacd6c5.zip
use ansible_become instead of ansible_user: root
Diffstat (limited to 'os')
-rw-r--r--os/config/README.md2
-rw-r--r--os/config/production.yml6
2 files changed, 4 insertions, 4 deletions
diff --git a/os/config/README.md b/os/config/README.md
index 62bf252..a1078df 100644
--- a/os/config/README.md
+++ b/os/config/README.md
@@ -13,7 +13,7 @@ For each machine, **one by one** do:
- Check that Consul is healthy
- `consul members`
- Check that Postgres is healthy
- - Run `ansible-playbook -i production.yml --limit <machine> site.yml`
+ - Run `ansible-playbook -i production.yml --limit <machine> -u <username> site.yml`
- Run `nomad node drain -enable -force -self`
- Reboot
- Run `nomad node drain -self -disable`
diff --git a/os/config/production.yml b/os/config/production.yml
index d31193e..9004701 100644
--- a/os/config/production.yml
+++ b/os/config/production.yml
@@ -3,7 +3,7 @@ cluster_nodes:
veterini:
ansible_host: fbx-rennes2.machine.deuxfleurs.fr
ansible_port: 110
- ansible_user: root
+ ansible_become: true
ipv4: 192.168.1.2
ipv6: 2a01:e35:2fdc:dbe0::2
interface: eno1
@@ -14,7 +14,7 @@ cluster_nodes:
silicareux:
ansible_host: fbx-rennes2.machine.deuxfleurs.fr
ansible_port: 111
- ansible_user: root
+ ansible_become: true
ipv4: 192.168.1.3
ipv6: 2a01:e35:2fdc:dbe0::3
interface: eno1
@@ -25,7 +25,7 @@ cluster_nodes:
wonse:
ansible_host: fbx-rennes2.machine.deuxfleurs.fr
ansible_port: 112
- ansible_user: root
+ ansible_become: true
ipv4: 192.168.1.4
ipv6: 2a01:e35:2fdc:dbe0::4
interface: eno1