Skip to content

Commit

Permalink
fix Debian check mode
Browse files Browse the repository at this point in the history
file module needs force attribute if symlink destination doesn't exist which is the case in check mode.
  • Loading branch information
jpiron committed Jan 16, 2024
1 parent 1899aa0 commit 2ff0b51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/configure-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2ff0b51

Please sign in to comment.