We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b00ca2 commit d27275aCopy full SHA for d27275a
tests/image_prep/roles/user_policies/tasks/main.yml
@@ -1,4 +1,13 @@
1
-- name: Set login attempts (macOS)
+- name: Set global login attempts (macOS)
2
+ command:
3
+ pwpolicy
4
+ -n /Local/Default
5
+ -setglobalpolicy 'maxFailedLoginAttempts={{ user_policies_max_failed_logins }}'
6
+ when:
7
+ - ansible_system == 'Darwin'
8
+ changed_when: true
9
+
10
+- name: Set user login attempts (macOS)
11
vars:
12
max_failed_logins: "{{ item.policies.max_failed_logins | default(user_policies_max_failed_logins) }}"
13
command: >
0 commit comments