From 468b086a57dc6ca97420d9577615be4dccc047f8 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 21 Apr 2018 18:43:06 +0200 Subject: [PATCH] add safeguard for overwriting ssh config --- ansible/roles/localconfig/defaults/main.yml | 1 + ansible/roles/localconfig/tasks/main.yml | 1 + 2 files changed, 2 insertions(+) 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 -- 1.7.10.4