Move chromium policy create to lmn_fvs task (and make sure, directory exists).

This commit is contained in:
Raphael Dannecker 2024-04-30 07:41:11 +02:00
parent c6c67615f3
commit f3d9b0c46f
2 changed files with 13 additions and 8 deletions

View file

@ -118,6 +118,19 @@
src: policies.json src: policies.json
dest: /etc/firefox-esr/policies/ dest: /etc/firefox-esr/policies/
- name: Create chromium policies directory
ansible.builtin.file:
path: /etc/chromium/policies/managed
state: directory
mode: '0755'
- name: Set chromium proxy-policy to auto_detect
copy:
dest: /etc/chromium/policies/managed/proxy.json
content: |
{
"ProxyMode": "auto_detect"
}
- name: Copy some scripts - name: Copy some scripts
copy: copy:

View file

@ -9,14 +9,6 @@
no_proxy="{{ no_proxy }}" no_proxy="{{ no_proxy }}"
when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop) when: not (groups.teacherlaptop is defined and inventory_hostname in groups.teacherlaptop)
- name: Set chromium proxy-policy to auto_detect
copy:
dest: /etc/chromium/policies/managed/proxy.json
content: |
{
"ProxyMode": "auto_detect"
}
- name: Set aptcache - name: Set aptcache
ansible.builtin.copy: ansible.builtin.copy:
dest: /etc/apt/apt.conf dest: /etc/apt/apt.conf