File tree Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ In progress (unreleased)
2222------------------------
2323
2424* :gh:issue: `1329 ` CI: Refactor and de-duplicate Github Actions workflow
25+ * :gh:issue: `1315 ` CI: macOS: Increase failed logins limit of test users
2526
2627
2728v0.3.26 (2025-08-04)
Original file line number Diff line number Diff line change 5050 mitogen_test_groups :
5151 - name : mitogen__group
5252 - name : mitogen__sudo_nopw
53- tasks :
53+
54+ user_policies_max_failed_logins : 1000
55+ user_policies_users : " {{ all_users }}"
56+ pre_tasks :
5457 - name : Disable non-localhost SSH for Mitogen users
5558 when : false
5659 blockinfile :
180183 validate : ' /usr/sbin/visudo -cf %s'
181184 when :
182185 - ansible_virtualization_type != "docker"
186+ roles :
187+ - role : user_policies
Original file line number Diff line number Diff line change 1+ user_policies_max_failed_logins : 10
2+ user_policies_users : []
Original file line number Diff line number Diff line change 1+ - name : Set login attempts (macOS)
2+ vars :
3+ max_failed_logins : " {{ item.policies.max_failed_logins | default(user_policies_max_failed_logins) }}"
4+ command : >
5+ pwpolicy
6+ -u '{{ item.name }}'
7+ -setpolicy 'maxFailedLoginAttempts={{ max_failed_logins }}'
8+ with_items : " {{ user_policies_users }}"
9+ when :
10+ - ansible_system == 'Darwin'
11+ changed_when : true
You can’t perform that action at this time.
0 commit comments