summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Prabhu <sprabhu@redhat.com>2020-04-02 15:57:35 +0100
committerMichael Adam <obnox@samba.org>2020-04-06 19:03:39 +0200
commit22f9868a267404ca2697e847416a5a4eec432808 (patch)
treea5a2c380a786a132125e2d2a19f0a8a84ba2e9a1
parent0c485915d35ec28b0e714a8ec5f2ca1e54bf2695 (diff)
downloadsamba-integration-22f9868a267404ca2697e847416a5a4eec432808.tar.gz
samba-integration-22f9868a267404ca2697e847416a5a4eec432808.tar.xz
samba-integration-22f9868a267404ca2697e847416a5a4eec432808.zip
ssh-config ends up with trailing " for IdentityFile
On a Centos 5 machine, vagrant ssh-config generates an ssh-config with the file for IdentityFile enclosed in quotes. The current regex doesn't take care of trailing ". We do not need an elaborate regex for the ansible lininfile call and replace the existing one with a simpler one. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
-rw-r--r--vagrant/roles/local.prep/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/vagrant/roles/local.prep/tasks/main.yml b/vagrant/roles/local.prep/tasks/main.yml
index 26d6615..732c79b 100644
--- a/vagrant/roles/local.prep/tasks/main.yml
+++ b/vagrant/roles/local.prep/tasks/main.yml
@@ -38,5 +38,5 @@
- name: modify ssh-config-setup
replace:
path: ./ansible/ssh-config-setup
- regexp: "IdentityFile .*\\.vagrant\\.d/insecure_private_key"
+ regexp: "IdentityFile .*"
replace: "IdentityFile /home/vagrant/ansible/vagrant_insecure_private_ssh_key"