From a000515372e64202a5ecad7f6a3162b6dfaabf1b Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 28 Dec 2022 17:29:41 +0100 Subject: [PATCH] update linting --- tasks/autologon.yml | 2 +- tasks/main.yml | 8 ++++---- tasks/obs_user.yml | 6 +++--- tasks/powerplan.yml | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tasks/autologon.yml b/tasks/autologon.yml index 9123f0b..65e3cde 100644 --- a/tasks/autologon.yml +++ b/tasks/autologon.yml @@ -1,5 +1,5 @@ --- -- name: fail if win_obs_init__autologon_password unset +- 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' diff --git a/tasks/main.yml b/tasks/main.yml index f1d054a..230fbb8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,14 +1,14 @@ --- -- name: create OBS User +- name: Create OBS User ansible.builtin.include_tasks: obs_user.yml -- name: install some obs specific packages +- name: Install some obs specific packages ansible.builtin.include_tasks: packages.yml -- name: optionally autologon to obs user +- name: Optionally autologon to obs user ansible.builtin.include_tasks: autologon.yml when: win_obs_init__autologon | bool -- name: "change the power plan to {{ win_obs_init_powerplan_mode }}" +- name: "Change the power plan to {{ win_obs_init_powerplan_mode }}" ansible.builtin.include_tasks: powerplan.yml when: win_obs_init__powerplan_enabled | bool diff --git a/tasks/obs_user.yml b/tasks/obs_user.yml index ec5bdd7..716d789 100644 --- a/tasks/obs_user.yml +++ b/tasks/obs_user.yml @@ -1,10 +1,10 @@ --- -- name: fail if win_obs_init__password is unset +- name: Fail if win_obs_init__password is unset ansible.builtin.fail: msg: "Please define a password for 'win_obs_init__password'!" when: win_obs_init__password == 'changeME' -- name: create OBS User +- name: Create OBS User ansible.windows.win_user: name: 'obs' state: present @@ -16,4 +16,4 @@ password_never_expires: true user_cannot_change_password: true groups: - - 'S-1-5-32-545' # Users + - 'S-1-5-32-545' # Users diff --git a/tasks/powerplan.yml b/tasks/powerplan.yml index 4b2dcba..b42e351 100644 --- a/tasks/powerplan.yml +++ b/tasks/powerplan.yml @@ -1,9 +1,9 @@ --- -- name: change the power plan to high performance +- name: Change the power plan to high performance community.windows.win_power_plan: name: "{{ win_obs_init_powerplan_mode }}" -- name: "apply custom powerplan poweshell script as {{ win_obs_init__user }}" +- name: "Apply custom powerplan poweshell script as {{ win_obs_init__user }}" ansible.windows.win_powershell: script: | Write-Host "Disabling Screensaver"