move when clause per linting suggestion
This commit is contained in:
parent
39e6484956
commit
2b049da963
@ -20,6 +20,7 @@
|
|||||||
when: "matrix_vars_yml_snapshotting_enabled | bool"
|
when: "matrix_vars_yml_snapshotting_enabled | bool"
|
||||||
|
|
||||||
- name: Save current git-repo status on the target to aid with restoring in case of problems
|
- name: Save current git-repo status on the target to aid with restoring in case of problems
|
||||||
|
when: "matrix_playbook_commit_hash_preservation_enabled|bool"
|
||||||
block:
|
block:
|
||||||
- name: Get local git hash
|
- name: Get local git hash
|
||||||
delegate_to: 127.0.0.1
|
delegate_to: 127.0.0.1
|
||||||
@ -63,8 +64,6 @@
|
|||||||
You can disable saving the GIT hash by setting 'matrix_playbook_commit_hash_preservation_enabled: false' in vars.yml
|
You can disable saving the GIT hash by setting 'matrix_playbook_commit_hash_preservation_enabled: false' in vars.yml
|
||||||
when: "git_describe.stderr.find('git: not found') == -1"
|
when: "git_describe.stderr.find('git: not found') == -1"
|
||||||
|
|
||||||
when: "matrix_playbook_commit_hash_preservation_enabled|bool"
|
|
||||||
|
|
||||||
- name: Ensure Matrix network is created in Docker
|
- name: Ensure Matrix network is created in Docker
|
||||||
community.docker.docker_network:
|
community.docker.docker_network:
|
||||||
name: "{{ matrix_docker_network }}"
|
name: "{{ matrix_docker_network }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user