You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
368 B
YAML
12 lines
368 B
YAML
- name: Set login attempts (macOS)
|
|
vars:
|
|
max_failed_logins: "{{ item.policies.max_failed_logins | default(user_policies_max_failed_logins) }}"
|
|
command: >
|
|
pwpolicy
|
|
-u '{{ item.name }}'
|
|
-setpolicy 'maxFailedLoginAttempts={{ max_failed_logins }}'
|
|
with_items: "{{ user_policies_users }}"
|
|
when:
|
|
- ansible_system == 'Darwin'
|
|
changed_when: true
|