Skip to content

Commit

Permalink
omit src attribute in symlink tasks during removal
Browse files Browse the repository at this point in the history
  • Loading branch information
lae committed Nov 29, 2024
1 parent 08f4294 commit a7337c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/deploy_netbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@

- name: Symlink/Remove NetBox LDAP configuration file into/from the active NetBox release
ansible.builtin.file:
# Omitting the src attribute is necessary when state: absent
src: "{{ netbox_shared_path + '/ldap_config.py' if netbox_ldap_enabled else omit }}"
dest: "{{ netbox_config_path }}/ldap_config.py"
owner: "{{ netbox_user }}"
Expand All @@ -146,7 +147,8 @@

- name: Symlink/Remove NetBox local_settings.py file into/from the active NetBox release
ansible.builtin.file:
src: "{{ netbox_shared_path }}/local_settings.py"
# Omitting the src attribute is necessary when state: absent
src: "{{ netbox_shared_path + '/local_settings.py' if netbox_local_settings_file is defined else omit }}"
dest: "{{ netbox_config_path }}/local_settings.py"
owner: "{{ netbox_user }}"
group: "{{ netbox_group }}"
Expand Down

0 comments on commit a7337c4

Please sign in to comment.