add safeguard for overwriting ssh config
authorChristian Pointner <equinox@realraum.at>
Sat, 21 Apr 2018 16:43:06 +0000 (18:43 +0200)
committerChristian Pointner <equinox@realraum.at>
Sat, 21 Apr 2018 16:43:06 +0000 (18:43 +0200)
ansible/roles/localconfig/defaults/main.yml
ansible/roles/localconfig/tasks/main.yml

index 96e3cf6..ae14b0c 100644 (file)
@@ -1,5 +1,6 @@
 ---
 ### use .ssh/r3_localconfig.yml to overwrite
+localconfig_overwrite_ssh_config: False
 # localconfig_ssh_user:
 localconfig_ssh_ids:
   - ~/.ssh/id_r3_rsa
index ec292df..1ec5745 100644 (file)
@@ -27,3 +27,4 @@
     src: ~/.ssh/config.d/
     regexp: "\\.conf$"
     dest: ~/.ssh/config
+  when: localconfig_overwrite_ssh_config == True