fix: adapt condition
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Markus Pesch 2022-05-09 11:33:04 +02:00
parent 05c7df5693
commit adf404bf25
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -15,8 +15,8 @@
with_dict: "{{ unix_users }}"
loop_control:
loop_var: unix_user
when: unix_groups is defined and
unix_groups | length > 0 and
when: unix_users is defined and
unix_users | length > 0 and
unix_user.value.state is defined and
unix_user.value.state == 'absent'
@ -37,8 +37,8 @@
with_dict: "{{ unix_users }}"
loop_control:
loop_var: unix_user
when: unix_groups is defined and
unix_groups | length > 0 and
when: unix_users is defined and
unix_users | length > 0 and
(
(unix_user.value.state is defined and unix_user.value.state == 'present') or
unix_user.value.state is not defined