1
0
Fork 0

add proxy support

This commit is contained in:
Massaki Archambault 2023-11-06 22:24:44 -05:00
parent cec86bfc8b
commit 45bddcac3d
3 changed files with 41 additions and 13 deletions

View File

@ -1 +1,6 @@
kiosk_url: https://floatingqrcode.com/ kiosk_url: https://floatingqrcode.com/
proxy:
http_proxy: ""
https_proxy: ""
no_proxy: ""

View File

@ -1,15 +1,46 @@
- name: Perform system update
apt:
update_cache: true
upgrade: dist
environment:
http_proxy: "{{ proxy.http_proxy }}"
HTTP_PROXY: "{{ proxy.http_proxy }}"
https_proxy: "{{ proxy.https_proxy }}"
HTTPS_PROXY: "{{ proxy.https_proxy }}"
no_proxy: "{{ proxy.no_proxy }}"
NO_PROXY: "{{ proxy.no_proxy }}"
- name: Install Cage window manager and Midori browser - name: Install Cage window manager and Midori browser
apt: apt:
update_cache: yes update_cache: yes
name: name:
- cage - cage
- xwayland - xwayland
- gtk3-nocsd # - gtk3-nocsd
- midori - chromium-browser
environment:
http_proxy: "{{ proxy.http_proxy }}"
HTTP_PROXY: "{{ proxy.http_proxy }}"
https_proxy: "{{ proxy.https_proxy }}"
HTTPS_PROXY: "{{ proxy.https_proxy }}"
no_proxy: "{{ proxy.no_proxy }}"
NO_PROXY: "{{ proxy.no_proxy }}"
- name: Configure proxy
blockinfile:
path: /etc/environment
block: |
http_proxy="{{ proxy.http_proxy }}"
HTTP_PROXY="{{ proxy.http_proxy }}"
https_proxy="{{ proxy.https_proxy }}"
HTTPS_PROXY="{{ proxy.https_proxy }}"
no_proxy="{{ proxy.no_proxy }}"
NO_PROXY="{{ proxy.no_proxy }}"
notify: Reboot
- name: Configure autologin - name: Configure autologin
command: raspi-config nonint do_boot_behaviour B2 command: raspi-config nonint do_boot_behaviour B2
- name: Install kiosk script - name: Install kiosk script
template: template:
src: kiosk.sh.j2 src: kiosk.sh.j2

View File

@ -1,11 +1,3 @@
- hosts: all
become: true
tasks:
- name: Perform system update
apt:
update_cache: true
upgrade: dist
- hosts: all - hosts: all
become: true become: true
roles: roles: