From aa7431f729dcbb9f8ce05c5aa92a5fff75ce1a69 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 29 Dec 2022 00:41:49 +0100 Subject: [PATCH] update Readme for gopass use --- README.md | 24 +++++++++++++----------- group_vars/obs/vars.yml | 8 ++++++++ host_vars/obs-studio/vars.yml | 9 --------- 3 files changed, 21 insertions(+), 20 deletions(-) delete mode 100644 host_vars/obs-studio/vars.yml diff --git a/README.md b/README.md index 956dc48..9567d85 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,14 @@ Get-Host | Select-Object Version Set up Ansible ---------------- +Ansible Requirements ```bash ansible-galaxy install -r requirements.yml +``` + +And PyWinRM Python mdule +```bash +pip3 install pywinrm ``` Configure Ansible Access (WinRM Setup) @@ -51,9 +57,10 @@ ansible-galaxy install -r requirements.yml ### configure WinRM Access Configure WinRM with the ``ConfigureRemotingForAnsible.ps1`` Script as described in [docs.ansible.com/ansible/latest/user_guide/windows_setup.html#winrm-setup](https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#winrm-setup) in your WINDOWS PowerShell. -### configure ansible setup +### configure ansible setup for new hosts + add your host to the ``hosts.ini`` file. + add the following variables in the ``host_vars``: + ```yaml --- # host_vars/$hostname/vars.yml @@ -63,6 +70,11 @@ ansible_password: 'Your_Windows_Admin_Password' ansible_winrm_server_cert_validation: ignore ``` + Gopass Passwords +------------------ +- Make sure you have [gopass](https://gopass.pw) installed +- Checkout the gopass repo and mount in to ``chvoc``. + ### validate access After you installed the required deploy host python packages you can verify that the access is working by running the following ad-hoc command @@ -70,16 +82,6 @@ After you installed the required deploy host python packages you can verify that ansible -m win_ping all ``` - Ansible deploy host requirements ----------------------------------- -```bash -pip install pywinrm -``` - - Name convention ------------------ -Use ``obs-$name`` with any name of [My little Pony villans](https://villains.fandom.com/wiki/Category:My_Little_Pony_Villains). - Ad-hoc copy file example: ---------------------------- ```bash diff --git a/group_vars/obs/vars.yml b/group_vars/obs/vars.yml index 0f40e79..389eefd 100644 --- a/group_vars/obs/vars.yml +++ b/group_vars/obs/vars.yml @@ -1,4 +1,12 @@ --- +# user for ansible login +ansible_user: ansible + +# language options (important) +win_base_init__os_language: 'en' +win_obs_init__powerplan_enabled: true +win_obs_init_powerplan_mode: 'high performance' + # connect ansible_connection: winrm ansible_winrm_server_cert_validation: ignore diff --git a/host_vars/obs-studio/vars.yml b/host_vars/obs-studio/vars.yml deleted file mode 100644 index 27113db..0000000 --- a/host_vars/obs-studio/vars.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# user for ansible login -ansible_user: ansible - -# OS language -win_base_init__os_language: 'de' - -win_obs_init__powerplan_enabled: true -win_obs_init_powerplan_mode: 'Ultimative Leistung'