git.samba.org
/
autocluster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6906284
)
ansible/host: Ensure ~/.ssh/config exists
author
Martin Schwenke
<martin@meltin.net>
Tue, 8 Oct 2019 05:15:07 +0000
(16:15 +1100)
committer
Martin Schwenke
<martin@meltin.net>
Tue, 8 Oct 2019 05:39:00 +0000
(16:39 +1100)
Before attempting to modify it.
Signed-off-by: Martin Schwenke <martin@meltin.net>
ansible/host/autocluster_setup_ssh.yml
patch
|
blob
|
history
diff --git
a/ansible/host/autocluster_setup_ssh.yml
b/ansible/host/autocluster_setup_ssh.yml
index 809af859a99ce9b7c7dd77cd9e98c990bba4f19a..18058834da4553c9ce24518238fabf629ec981a7 100644
(file)
--- a/
ansible/host/autocluster_setup_ssh.yml
+++ b/
ansible/host/autocluster_setup_ssh.yml
@@
-18,6
+18,11
@@
path: "{{ ansible_env.HOME }}/.ssh/autocluster.d"
state: directory
+ - name: ensure ~/.ssh/config exists
+ file:
+ path: "{{ ansible_env.HOME }}/.ssh/config"
+ state: touch
+
- name: update SSH config to include config autocluster clusters
lineinfile:
path: "{{ ansible_env.HOME }}/.ssh/config"