From d9bc119e633c682a20db6dc033212ca559a6b0ab Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Tue, 5 Mar 2024 22:12:16 +0100 Subject: [PATCH] fix: skip when shell_rc files is not defined --- tasks/create_unix_user.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/create_unix_user.yml b/tasks/create_unix_user.yml index 7f69398..e937b20 100644 --- a/tasks/create_unix_user.yml +++ b/tasks/create_unix_user.yml @@ -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 }}"