Jérémy Lecour
ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2777|524|2253|2462|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Fully Qualified Collection Name
21 lines
589 B
YAML
21 lines
589 B
YAML
---
|
|
|
|
- name: "Create {{ hook_name }} hook directory"
|
|
ansible.builtin.file:
|
|
dest: "{{ evoacme_hooks_dir }}"
|
|
state: directory
|
|
|
|
- name: "Search for {{ hook_name }} hook"
|
|
ansible.builtin.command:
|
|
cmd: "find {{ evoacme_hooks_dir }} -type f \\( -name '{{ hook_name }}' -o -name '{{ hook_name }}.*' \\)"
|
|
check_mode: no
|
|
changed_when: False
|
|
register: _find_hook
|
|
|
|
- name: "Copy {{ hook_name }} hook if missing"
|
|
ansible.builtin.copy:
|
|
src: "hooks/{{ hook_name }}"
|
|
dest: "{{ evoacme_hooks_dir }}/{{ hook_name }}"
|
|
mode: "0750"
|
|
when: _find_hook.stdout | length == 0
|