summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Savineau <dsavinea@redhat.com>2018-11-02 13:50:16 -0400
committerDimitri Savineau <dsavinea@redhat.com>2018-11-02 13:56:21 -0400
commit207a0ee887f4a25001a0667b98aec223ae6c0f84 (patch)
tree257d1d969ee7cf4e60cc91ab91667584e0c9ec76
parent6fce16590b6d22702945a97856d49fa350c9c56d (diff)
Don't compare boolean to True/False
Instead of comparing a boolean variable value to true|false we can directly use the variable name with or without the not prefix. before: when: foo == False or bar == True after: when: not foo or bar Change-Id: I8760b82ddd0296277fba2a431ba1affe52f71088
-rw-r--r--tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 33e5040..1922bad 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -21,7 +21,7 @@
dci_keys:
remoteci_id: '{{ dci_import_keys_remoteci_id }}'
register: keys
- when: file_key.stat.exists == False or file_cert.stat.exists == False
+ when: not file_key.stat.exists or not file_cert.stat.exists
- name: Create the certificate file
copy: