tests: make osx_setup a little more generic again
This commit is contained in:
parent
2c3d2db4ec
commit
89e11ed25c
|
@ -17,6 +17,31 @@
|
||||||
Match User mitogen__* Address !127.0.0.1
|
Match User mitogen__* Address !127.0.0.1
|
||||||
DenyUsers *
|
DenyUsers *
|
||||||
|
|
||||||
|
#
|
||||||
|
# Hashed passwords.
|
||||||
|
#
|
||||||
|
- name: Create Mitogen test users
|
||||||
|
user:
|
||||||
|
name: "mitogen__{{item}}"
|
||||||
|
shell: /bin/bash
|
||||||
|
password: "{{ (item + '_password') | password_hash('sha256') }}"
|
||||||
|
with_items:
|
||||||
|
- require_tty
|
||||||
|
- pw_required
|
||||||
|
- require_tty_pw_required
|
||||||
|
when: ansible_system != 'Darwin'
|
||||||
|
|
||||||
|
- name: Create Mitogen test users
|
||||||
|
user:
|
||||||
|
name: "mitogen__user{{item}}"
|
||||||
|
shell: /bin/bash
|
||||||
|
password: "{{ ('user' + item + '_password') | password_hash('sha256') }}"
|
||||||
|
with_sequence: start=1 end=21
|
||||||
|
when: ansible_system != 'Darwin'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Plaintext passwords
|
||||||
|
#
|
||||||
- name: Create Mitogen test users
|
- name: Create Mitogen test users
|
||||||
user:
|
user:
|
||||||
name: "mitogen__{{item}}"
|
name: "mitogen__{{item}}"
|
||||||
|
@ -26,6 +51,7 @@
|
||||||
- require_tty
|
- require_tty
|
||||||
- pw_required
|
- pw_required
|
||||||
- require_tty_pw_required
|
- require_tty_pw_required
|
||||||
|
when: ansible_system == 'Darwin'
|
||||||
|
|
||||||
- name: Create Mitogen test users
|
- name: Create Mitogen test users
|
||||||
user:
|
user:
|
||||||
|
@ -33,6 +59,7 @@
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
password: "user{{item}}_password"
|
password: "user{{item}}_password"
|
||||||
with_sequence: start=1 end=21
|
with_sequence: start=1 end=21
|
||||||
|
when: ansible_system == 'Darwin'
|
||||||
|
|
||||||
- name: Hide test users from login window.
|
- name: Hide test users from login window.
|
||||||
shell: >
|
shell: >
|
||||||
|
@ -45,7 +72,7 @@
|
||||||
- mitogen__require_tty
|
- mitogen__require_tty
|
||||||
- mitogen__pw_required
|
- mitogen__pw_required
|
||||||
- mitogen__require_tty_pw_required
|
- mitogen__require_tty_pw_required
|
||||||
when: ansible_distribution == 'MacOSX'
|
when: ansible_system == 'Darwin'
|
||||||
|
|
||||||
- name: Hide test users from login window.
|
- name: Hide test users from login window.
|
||||||
shell: >
|
shell: >
|
||||||
|
|
Loading…
Reference in New Issue