zuul-jobs/roles/add-build-sshkey/tasks/main.yaml
Jeremy Stanley b6d2616275 Don't compare to literal True/False
With the arrival of ansible-lint 4, comparisons to literal boolean
values are now forbidden. Adjust the new violations accordingly and
remove the rule 601 exclusion.

Change-Id: I18ba2d7d41fabaff35d10d520037188c7d9d1249
2019-08-01 19:01:37 +02:00

12 lines
354 B
YAML

- name: Check to see if ssh key was already created for this build
stat:
path: "{{ zuul_temp_ssh_key }}"
register: zuul_temp_ssh_key_stat
delegate_to: localhost
run_once: true
failed_when: false
- name: Create a new key in workspace based on build UUID
include: create-key-and-replace.yaml
when: not zuul_temp_ssh_key_stat.stat.exists