mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 17:49:59 +00:00
Adds ssh configuration to allow ssh between nodes without passwords
This commit is contained in:
@@ -107,6 +107,22 @@
|
|||||||
state: present
|
state: present
|
||||||
with_items: instances
|
with_items: instances
|
||||||
|
|
||||||
|
- name: copying the ssh key to the nodes
|
||||||
|
copy:
|
||||||
|
src: private-key
|
||||||
|
dest: /home/vagrant/private-key
|
||||||
|
mode: 0600
|
||||||
|
group: root
|
||||||
|
owner: vagrant
|
||||||
|
|
||||||
|
- name: copying ssh configuration
|
||||||
|
copy:
|
||||||
|
src: ssh-config
|
||||||
|
dest: /home/vagrant/.ssh/config
|
||||||
|
mode: 0600
|
||||||
|
group: root
|
||||||
|
owner: vagrant
|
||||||
|
|
||||||
- name: fixing the hostname
|
- name: fixing the hostname
|
||||||
hostname:
|
hostname:
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
|
|||||||
3
prepare-local/ssh-config
Normal file
3
prepare-local/ssh-config
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Host node*
|
||||||
|
IdentityFile ~/private-key
|
||||||
|
StrictHostKeyChecking no
|
||||||
Reference in New Issue
Block a user