generated from roles-ansible/ansible_role_template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
104 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
--- | ||
librewolf__keyring_hash: 'sha256:4f438df8a84241e921edd26f164d1926e200ec3e36b1b330285242777ea3c693' | ||
librewolf__keyring: 'https://deb.librewolf.net/keyring.gpg' | ||
librewolf__xdg_settings: false | ||
librewolf__xdg_settings_user: [] | ||
|
||
# should we do a version check? (recomended) | ||
submodules_versioncheck: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: Update apt repo-cache on debian/ubuntu hosts | ||
become: true | ||
ansible.builtin.apt: | ||
update_cache: true | ||
cache_valid_time: 0 | ||
when: | ||
- ansible_pkg_mgr == "apt" | ||
|
||
- name: Install the package | ||
become: true | ||
ansible.builtin.package: | ||
name: 'librewolf' | ||
state: 'present' | ||
register: _libreoffice_install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
- name: "Pulling list of packages that are already installed" | ||
ansible.builtin.package_facts: | ||
manager: "auto" | ||
|
||
- name: Update apt repo-cache on debian/ubuntu hosts | ||
become: true | ||
ansible.builtin.apt: | ||
update_cache: true | ||
cache_valid_time: 3600 | ||
when: | ||
- ansible_pkg_mgr == "apt" | ||
|
||
- name: Install requirements to add packages via https | ||
become: true | ||
ansible.builtin.apt: | ||
package: | ||
- apt-transport-https | ||
state: present | ||
|
||
- name: Download repo signing key | ||
become: true | ||
ansible.builtin.get_url: | ||
checksum: "{{ librewolf__keyring_hash }}" | ||
url: "{{ librewolf__keyring }}" | ||
dest: /usr/share/keyrings/librewolf.gpg | ||
mode: '644' | ||
owner: root | ||
group: root | ||
when: "'librewolf' not in ansible_facts.packages and ansible_os_family == 'Debian'" | ||
|
||
- name: Add repo to list of sources | ||
become: true | ||
ansible.builtin.template: | ||
source: 'templates/librewolf.sources.j2' | ||
dest: '/etc/apt/sources.list.d/librewolf.sources' | ||
mode: '644' | ||
owner: 'root' | ||
group: 'root' | ||
when: "'librewolf' not in ansible_facts.packages and ansible_os_family == 'Debian'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
- name: Set default web browser to LibreWolf for each user | ||
become: true | ||
ansible.builtin.command: > | ||
sudo -u {{ item.user }} xdg-settings set default-web-browser librewolf.desktop | ||
environment: | ||
DISPLAY: ":0" | ||
HOME: "{{ item.home | default('/home/' ~ item.user) }}" | ||
loop: "{{ librewolf__xdg_settings_user }}" | ||
ignore_errors: true | ||
changed_when: _libreoffice_install.changed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{ ansible_managed | comment }} | ||
Types: deb | ||
URIs: https://deb.librewolf.net | ||
Suites: {{ ansible_lsb.codename }} | ||
Components: main | ||
Architectures: amd64 | ||
Signed-By: /usr/share/keyrings/librewolf.gpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
# versionscheck | ||
playbook_version_number: 03 | ||
playbook_version_number: 04 | ||
playbook_version_path: 'l3d.linuc.librewolf.version' |