diff options
author | Quentin <quentin@dufour.io> | 2020-11-13 12:37:10 +0100 |
---|---|---|
committer | Quentin <quentin@dufour.io> | 2020-11-13 12:37:10 +0100 |
commit | f14777e1b6a31a1457ca729132ceb24925747366 (patch) | |
tree | d40fc2db6d5f3f4520d9b5a85872c904d24010d6 /os | |
parent | 9981ea02860d4f4782a608490c5d5cf8761b3ed3 (diff) | |
parent | 7e111783fea578b9025ffe02fce652d9af114000 (diff) | |
download | infrastructure-f14777e1b6a31a1457ca729132ceb24925747366.tar.gz infrastructure-f14777e1b6a31a1457ca729132ceb24925747366.zip |
Merge pull request 'ansible-users' (#23) from ansible-users into master
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/deuxfleurs.fr/pulls/23
Diffstat (limited to 'os')
-rw-r--r-- | os/config/README.md | 2 | ||||
-rw-r--r-- | os/config/production.yml | 6 | ||||
-rw-r--r-- | os/config/roles/users/files/alex-key3.pub | 1 | ||||
-rw-r--r-- | os/config/roles/users/vars/main.yml | 3 |
4 files changed, 7 insertions, 5 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 diff --git a/os/config/roles/users/files/alex-key3.pub b/os/config/roles/users/files/alex-key3.pub new file mode 100644 index 0000000..4baebd2 --- /dev/null +++ b/os/config/roles/users/files/alex-key3.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJpaBZdYxHqMxhv2RExAOa7nkKhPBOHupMP3mYaZ73w9 lx@lindy diff --git a/os/config/roles/users/vars/main.yml b/os/config/roles/users/vars/main.yml index ea4177f..ca2dc0a 100644 --- a/os/config/roles/users/vars/main.yml +++ b/os/config/roles/users/vars/main.yml @@ -10,7 +10,8 @@ active_users: is_admin: true ssh_keys: - 'alex-key1.pub' - - 'alex-key2.pub' + #- 'alex-key2.pub' + - 'alex-key3.pub' - username: 'maximilien' is_admin: true |