fix: skip when shell_rc files is not defined
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Markus Pesch 2024-03-05 22:12:16 +01:00
parent 804eb02075
commit d9bc119e63
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -189,6 +189,7 @@
- "{{ unix_user.value.xdg.dirs.state | default(user_user_home + '/.local/state') }}"
- name: "Create shell rc files"
when: unix_user.value.shell_rc_files is defined
ansible.builtin.include_tasks: create_shell_rc_file.yml
with_items:
- "{{ unix_user.value.shell_rc_files }}"