11 lines
473 B
YAML
11 lines
473 B
YAML
---
|
|
- name: Fail if win_obs_init__autologon_password unset
|
|
ansible.builtin.fail:
|
|
msg: "Please define a password for 'win_obs_init__autologon_password'!"
|
|
when: win_obs_init__autologon_password == 'pleaseDefine'
|
|
|
|
- name: "Set autologon for {{ win_obs_init__autologon_user }}"
|
|
community.windows.win_auto_logon:
|
|
username: "{{ win_obs_init__autologon_user }}"
|
|
password: "{{ win_obs_init__autologon_password }}"
|
|
state: "{{ win_obs_init__autologon_state }}"
|