Merge "Use loop labels to suppress output"
This commit is contained in:
commit
56cd6b3670
@ -56,6 +56,10 @@
|
||||
loop: "{{ _cert_slurp.results }}"
|
||||
loop_control:
|
||||
loop_var: install
|
||||
label:
|
||||
path: "{{ install.item.dest | dirname }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Install Server certificates to targets
|
||||
copy:
|
||||
@ -67,7 +71,11 @@
|
||||
loop: "{{ _cert_slurp.results }}"
|
||||
loop_control:
|
||||
loop_var: install
|
||||
no_log: true
|
||||
label:
|
||||
dest: "{{ install.item.dest }}"
|
||||
owner: "{{ install.item.owner | default(omit) }}"
|
||||
group: "{{ install.item.group | default('omit') }}"
|
||||
mode: "{{ install.item.mode | default('0644') }}"
|
||||
ignore_errors: "{{ ansible_check_mode }}"
|
||||
notify:
|
||||
- cert installed
|
||||
|
@ -28,6 +28,9 @@
|
||||
dest: "{{ pki_trust_store_location[ansible_facts['pkg_mgr']] }}/{{ item.item.filename | default(item.item.name ~ '.crt') }}"
|
||||
register: ca_copy
|
||||
loop: "{{ _ca_slurp.results | default([]) }}"
|
||||
loop_control:
|
||||
label:
|
||||
dest: "{{ pki_trust_store_location[ansible_facts['pkg_mgr']] }}/{{ item.item.filename | default(item.item.name ~ '.crt') }}"
|
||||
when: item.skipped is not defined
|
||||
ignore_errors: "{{ ansible_check_mode }}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user