From: Christian Pointner Date: Sat, 21 Apr 2018 16:43:06 +0000 (+0200) Subject: add safeguard for overwriting ssh config X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=468b086a57dc6ca97420d9577615be4dccc047f8;p=noc.git add safeguard for overwriting ssh config --- diff --git a/ansible/roles/localconfig/defaults/main.yml b/ansible/roles/localconfig/defaults/main.yml index 96e3cf6..ae14b0c 100644 --- a/ansible/roles/localconfig/defaults/main.yml +++ b/ansible/roles/localconfig/defaults/main.yml @@ -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 diff --git a/ansible/roles/localconfig/tasks/main.yml b/ansible/roles/localconfig/tasks/main.yml index ec292df..1ec5745 100644 --- a/ansible/roles/localconfig/tasks/main.yml +++ b/ansible/roles/localconfig/tasks/main.yml @@ -27,3 +27,4 @@ src: ~/.ssh/config.d/ regexp: "\\.conf$" dest: ~/.ssh/config + when: localconfig_overwrite_ssh_config == True