ansible-collection-icinga icon indicating copy to clipboard operation
ansible-collection-icinga copied to clipboard

icinga2_custom_config not working with files in subfolders...

Open tn-mm opened this issue 1 year ago • 1 comments

If you use a subfolder it breaks ansible because the slashed / are not replaced:

icinga2_custom_config:

  • name: someFolder/myown_command.conf path: zones.d/main/myown_command.conf order: 10

    • name: add custom config to assemble ansible.builtin.copy: owner: root group: root src: "files/{{ item.name }}" dest: "{{ icinga2_fragments_path }}/{{ item.path }}/{{ item.order|default('20')|string }}_{{ item.name }}" loop: "{{ icinga2_custom_config }}"

tn-mm avatar Jul 29 '24 12:07 tn-mm

Hey,

I implemented and tested a fix which LGTM. Just waiting for more eyes to confirm.

Thank you for letting us know!

[EDIT: Fixed link]

Donien avatar Jul 31 '24 12:07 Donien