๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-playbooks/roles/workstation/tasks/win_install_libreoffice.yml

36 lines
1.0 KiB

2 years ago
- name: install LibreOffice
chocolatey.chocolatey.win_chocolatey:
name: libreoffice
state: latest
- name: define LibreOffice paths
set_fact:
libreoffice_reg_paths:
- org.openoffice.Office.Common\Save\Document\WarnAlienFormat
- org.openoffice.Office.Common\Misc\ShowTipOfTheDay
- org.openoffice.Office.Common\Misc\FirstRun
- org.openoffice.Office.Common\Misc\CrashReport
- org.openoffice.Office.Common\Misc\CollectUsageInformation
- org.openoffice.Office.UI\Infobar\GetInvolved
- org.openoffice.Office.UI\Infobar\Donate
- org.openoffice.Office.UI\Infobar\WhatsNew
- name: create LibreOffice policies
win_regedit:
path: "HKLM:\\SOFTWARE\\Policies\\LibreOffice\\{{ item }}"
name: "Value"
type: string
data: "false"
loop: "{{ libreoffice_reg_paths }}"
- name: finalize LibreOffice policies
win_regedit:
path: "HKLM:\\SOFTWARE\\Policies\\LibreOffice\\{{ item }}"
name: "Final"
type: dword
data: 1
loop: "{{ libreoffice_reg_paths }}"