Only when they exist.

This commit is contained in:
Robert de Bock 2023-12-18 11:56:36 +01:00
parent 5a52a69bde
commit b48a863ffd
1 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,8 @@
ansible.builtin.slurp:
src: "{{ role_path }}/molecule/default/prepare.yml"
register: prepare
when:
- check_prepare.stat.exists
- name: Check molecule/default/verify.yml
ansible.builtin.stat:
@ -84,6 +86,8 @@
ansible.builtin.slurp:
src: "{{ role_path }}/molecule/default/verify.yml"
register: verifyyml
when:
- verify.stat.exists
- name: Load galaxy_id
ansible.builtin.shell: