f76cfbab11
This fixes a number of places where we do not have spaces between filters. I think that this is a reasonable rule for readability (I also think it probably was enforced, but maybe later versions got better at detecting it?). These are detected by a later version of Ansible lint; this change should have no operational change to any roles but prepares us to update in a follow-on change. Change-Id: I07e1a109b87adce86f483d14d7e02fcecb8313d5
19 lines
610 B
YAML
19 lines
610 B
YAML
- name: Check to see if the constraints file exists
|
|
stat:
|
|
path: "{{ constraints_file | default('missing') }}"
|
|
get_checksum: false
|
|
get_mime: false
|
|
get_md5: false
|
|
register: stat_results
|
|
when: constraints_file is defined
|
|
|
|
- name: Require defined constraints file to be found
|
|
fail:
|
|
msg: constraints_file was defined but was not found on the system
|
|
when: constraints_file is defined and not stat_results.stat.exists
|
|
|
|
- name: Record file location
|
|
set_fact:
|
|
upper_constraints: "-c {{ constraints_file | realpath }}"
|
|
when: not stat_results is skipped and stat_results.stat.exists
|