Skip to content

Commit 11b7028

Browse files
committed
feat: add google chrome role
1 parent 0259258 commit 11b7028

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This Ansible collection provides a set of roles designed for configuring Kubuntu
1111
| [xebis.ansible.apt](roles/apt/README.md) | Deb package updates and upgrades using the apt package manager. Can optionally clean up unused packages and reboot the system if required. | `xebis.ansible.system` |
1212
| [xebis.ansible.grub](roles/grub/README.md) | GRUB menu configuration. | |
1313
| `xebis.ansible.fail2ban` | Fail2ban IPS | `xebis.ansible.apt` |
14+
| `xebis.ansible.google_chrome` | Google Chrome (Stable) | `xebis.ansible.apt` |
1415
| [xebis.ansible.nftables_firewall](roles/nftables_firewall/README.md) | nftables firewall | `xebis.ansible.apt` |
1516
| `xebis.ansible.obsidian` | Obsidian | `xebis.ansible.snapd` |
1617
| `xebis.ansible.openssh_server` | Installs OpenSSH server and provides `Restart ssh` handler. | `xebis.ansible.apt` |

roles/google_chrome/meta/main.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
dependencies:
3+
- role: xebis.ansible.apt # Expects updated apt cache
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
- name: Add Google apt signing key
3+
become: true
4+
ansible.builtin.apt_key:
5+
url: "https://dl.google.com/linux/linux_signing_key.pub"
6+
state: present
7+
8+
- name: Add Google Chrome repository into sources list
9+
become: true
10+
ansible.builtin.apt_repository:
11+
repo: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
12+
state: present
13+
filename: google-chrome
14+
15+
- name: Install stable Google Chrome
16+
become: true
17+
ansible.builtin.apt:
18+
name: "google-chrome-stable"
19+
state: latest
20+
update_cache: true

test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@
2929
admin: true
3030
ssh_keys_urls:
3131
- https://github.com/bruzina.keys
32+
- role: xebis.ansible.google_chrome
3233
- role: xebis.ansible.obsidian

0 commit comments

Comments
 (0)