Added ubuntu setup
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
36
roles/ubuntu/tasks/protonvpn.yml
Normal file
36
roles/ubuntu/tasks/protonvpn.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
- name: Download ProtonVPN release deb
|
||||
ansible.builtin.get_url:
|
||||
url: https://repo.protonvpn.com/debian/dists/stable/main/binary-all/protonvpn-stable-release_1.0.6_all.deb
|
||||
dest: "/tmp/protonvpn-stable-release_1.0.6_all.deb"
|
||||
|
||||
- name: Verify ProtonVPN deb checksum
|
||||
ansible.builtin.shell: echo "e5e03976d0980bafdf07da2f71b14fbc883c091e72b16772199742c98473002f /tmp/protonvpn-stable-release_1.0.6_all.deb" | sha256sum --check -
|
||||
register: checksum_result
|
||||
failed_when: "'FAILED' in checksum_result.stdout"
|
||||
|
||||
- name: Install ProtonVPN release package
|
||||
ansible.builtin.apt:
|
||||
deb: "/tmp/protonvpn-stable-release_1.0.6_all.deb"
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Update apt cache after ProtonVPN repo added
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
become: true
|
||||
|
||||
- name: Install ProtonVPN GNOME desktop
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- proton-vpn-gnome-desktop
|
||||
- libayatana-appindicator3-1
|
||||
- gir1.2-ayatanaappindicator3-0.1
|
||||
- gnome-shell-extension-appindicator
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Remove ProtonVPN release deb
|
||||
ansible.builtin.file:
|
||||
path: "/tmp/protonvpn-stable-release_1.0.6_all.deb"
|
||||
state: absent
|
||||
Reference in New Issue
Block a user