diff --git a/tasks/user_accounts.yml b/tasks/user_accounts.yml index 415581d3..01a62a19 100644 --- a/tasks/user_accounts.yml +++ b/tasks/user_accounts.yml @@ -32,4 +32,4 @@ - name: change system accounts not on the user provided ignore-list user: name='{{item}}' shell='{{os_nologin_shell_path}}' password='*' with_items: - - '{{sys_accs_cond | default(omit) | difference(os_ignore_users) }}' + - '{{sys_accs_cond | default(omit) | difference(os_ignore_users) | list }}'