fix Debian check mode

file module needs force attribute if symlink destination doesn't exist which is the case in check mode.
This commit is contained in:
Jonathan Piron 2024-01-16 09:10:20 +01:00
parent 1899aa047e
commit 2ff0b51c05

View file

@ -46,6 +46,7 @@
dest: "{{ apache_conf_path }}/sites-enabled/{{ apache_vhosts_filename }}"
state: link
mode: 0644
force: "{{ ansible_check_mode }}"
notify: restart apache
when: apache_create_vhosts | bool