summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Belanger <pabelanger@redhat.com>2018-05-17 21:33:40 -0400
committerPaul Belanger <pabelanger@redhat.com>2018-05-18 20:35:26 -0400
commitce6d804c062b659405fa28faa5c143909fcd6568 (patch)
tree4c29f1c68e31a745ae1a4ff6d399ce5d07dde8fc
parent2959772d5774e2a2a23ecca9b0ec8b842d488d18 (diff)
Use default(False) filter for conditional check
Change-Id: Icafbe9bc031005241df5ead6762cbc9815b82fb9 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Notes
Notes (review): Code-Review+2: Paul Belanger <pabelanger@redhat.com> Workflow+1: Paul Belanger <pabelanger@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sat, 19 May 2018 16:32:06 +0000 Reviewed-on: https://review.openstack.org/569300 Project: openstack/ansible-role-ssh Branch: refs/heads/master
-rw-r--r--tasks/config.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tasks/config.yaml b/tasks/config.yaml
index 4bab018..2394d0b 100644
--- a/tasks/config.yaml
+++ b/tasks/config.yaml
@@ -29,7 +29,7 @@
29 mode: 0644 29 mode: 0644
30 owner: "{{ ssh_user_name }}" 30 owner: "{{ ssh_user_name }}"
31 src: "{{ ssh_known_hosts_src }}" 31 src: "{{ ssh_known_hosts_src }}"
32 when: ssh_known_hosts_content | default('') != '' 32 when: ssh_known_hosts_content | default(False)
33 33
34- name: Create ssh private key. 34- name: Create ssh private key.
35 become: yes 35 become: yes
@@ -39,7 +39,7 @@
39 mode: 0600 39 mode: 0600
40 owner: "{{ ssh_user_name }}" 40 owner: "{{ ssh_user_name }}"
41 src: "{{ ssh_key_private_src }}" 41 src: "{{ ssh_key_private_src }}"
42 when: ssh_key_private_content | default('') != '' 42 when: ssh_key_private_content | default(False)
43 43
44- name: Create ssh public key. 44- name: Create ssh public key.
45 become: yes 45 become: yes
@@ -49,4 +49,4 @@
49 mode: 0644 49 mode: 0644
50 owner: "{{ ssh_user_name }}" 50 owner: "{{ ssh_user_name }}"
51 src: "{{ ssh_key_public_src }}" 51 src: "{{ ssh_key_public_src }}"
52 when: ssh_key_public_content | default('') != '' 52 when: ssh_key_public_content | default(False)