mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-09 02:45:17 +00:00
Why: - Ansible 2.20+ deprecates INJECT_FACTS_AS_VARS and direct usage of top-level ansible_* facts. - This change updates all affected roles and vars files to the new supported syntax. - Ensures compatibility with upcoming Ansible 2.24 removal of implicit fact injection. Conversation reference: https://chatgpt.com/share/692f639b-1380-800f-9f18-732f7108e9e2
28 lines
621 B
YAML
28 lines
621 B
YAML
---
|
|
- name: Update package cache (Debian/Ubuntu)
|
|
apt:
|
|
update_cache: yes
|
|
when: ansible_facts['os_family'] == "Debian"
|
|
|
|
- name: Install Chromium browser
|
|
package:
|
|
name: "{{ chromium_package }}"
|
|
state: present
|
|
|
|
- name: Install KeePassXC
|
|
package:
|
|
name: keepassxc
|
|
state: present
|
|
|
|
- name: Ensure Chromium policies directory exists
|
|
file:
|
|
path: /etc/chromium/policies/managed
|
|
state: directory
|
|
mode: '0755'
|
|
|
|
- name: Copy the extensions policy file for Chromium
|
|
template:
|
|
src: extensions_policy.json.j2
|
|
dest: /etc/chromium/policies/managed/extensions_policy.json
|
|
mode: '0644'
|