Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit cd787de1 authored by freezed's avatar freezed :mountain:
Browse files

:sparkles: Reorganise packages TODO flatpack improves

parent a65a3a59
No related branches found
No related tags found
No related merge requests found
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
when: "'mate' in group_names" when: "'mate' in group_names"
ansible.builtin.include_vars: "Mate.yml" ansible.builtin.include_vars: "Mate.yml"
- name: SNAP | remove snap packages - name: APT | uninstall packages
when: snap_uninstall_pkg is defined when: inventory_hostname not in groups.workstat
community.general.snap: ansible.builtin.apt:
name: "{{ snap_uninstall_pkg }}" pkg: "{{ lookup('flattened', base_uninstall_pkg, os_uninstall_pkg) }}"
state: absent state: absent
- name: APT | install base & os packages - name: APT | install base & os packages
...@@ -32,33 +32,26 @@ ...@@ -32,33 +32,26 @@
state: present state: present
update_cache: true update_cache: true
- name: SNAP | remove snap packages
when: snap_uninstall_pkg is defined
community.general.snap:
name: "{{ snap_uninstall_pkg }}"
state: absent
- name: FLATPAK | add remote - name: FLATPAK | add remote
when: inventory_hostname in groups.station
community.general.flatpak_remote: community.general.flatpak_remote:
name: flathub name: flathub
flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo
state: present state: present
register: flatpak_repo
- name: FLATPAK | add packages - name: FLATPAK | add packages
when: inventory_hostname in groups.station
community.general.flatpak: community.general.flatpak:
name: com.brave.Browser name: com.brave.Browser
state: present state: present
remote: flathub remote: flathub
- name: SIGNAL | add key to keyring
when: inventory_hostname in groups.station
ansible.builtin.apt_key:
url: https://updates.signal.org/desktop/apt/keys.asc
keyring: /usr/share/keyrings/signal-desktop-keyring.gpg
state: present
- name: SIGNAL | add apt repository
when: inventory_hostname in groups.station
ansible.builtin.apt_repository:
filename: signal-desktop
repo: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
state: present
- name: APT | install workstation packages - name: APT | install workstation packages
when: inventory_hostname in groups.station when: inventory_hostname in groups.station
ansible.builtin.apt: ansible.builtin.apt:
...@@ -68,16 +61,28 @@ ...@@ -68,16 +61,28 @@
state: present state: present
update_cache: true update_cache: true
- name: APT | uninstall packages - name: APT | install develstation packages
ansible.builtin.apt: when: inventory_hostname in groups.workstat
pkg: "{{ lookup('flattened', base_uninstall_pkg, os_uninstall_pkg) }}"
state: absent
register: flatpak_repo
- name: APT | upgrade all packages to the latest version
ansible.builtin.apt: ansible.builtin.apt:
cache_valid_time: 3600
force_apt_get: yes force_apt_get: yes
upgrade: safe pkg: "{{ lookup('flattened', workstat_pkg, workstat_os_pkg, workstat_wm_pkg) }}"
state: present
update_cache: true
- name: APT | add SIGNAL key to keyring
when: inventory_hostname in groups.station
ansible.builtin.apt_key:
url: https://updates.signal.org/desktop/apt/keys.asc
keyring: /usr/share/keyrings/signal-desktop-keyring.gpg
state: present
- name: APT | add SIGNAL apt repository
when: inventory_hostname in groups.station
ansible.builtin.apt_repository:
filename: signal-desktop
repo: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
state: present
- name: APT | install .deb packages - name: APT | install .deb packages
when: inventory_hostname in groups.station when: inventory_hostname in groups.station
...@@ -87,6 +92,11 @@ ...@@ -87,6 +92,11 @@
- https://flavio.tordini.org/files/minitube/minitube.deb - https://flavio.tordini.org/files/minitube/minitube.deb
- https://github.com/neovim/neovim/releases/download/stable/nvim-linux64.deb - https://github.com/neovim/neovim/releases/download/stable/nvim-linux64.deb
- name: APT | upgrade all packages to the latest version
ansible.builtin.apt:
force_apt_get: yes
upgrade: safe
- name: APT | remove useless packages from the cache - name: APT | remove useless packages from the cache
ansible.builtin.apt: ansible.builtin.apt:
force_apt_get: yes force_apt_get: yes
......
...@@ -4,5 +4,7 @@ os_pkg: [] ...@@ -4,5 +4,7 @@ os_pkg: []
os_uninstall_pkg: [] os_uninstall_pkg: []
workstat_os_pkg: []
station_os_pkg: station_os_pkg:
- firefox-esr-l10n-fr - firefox-esr-l10n-fr
...@@ -4,3 +4,5 @@ station_wm_pkg: ...@@ -4,3 +4,5 @@ station_wm_pkg:
- gnome-tweaks - gnome-tweaks
- nautilus-image-converter - nautilus-image-converter
- nautilus-nextcloud - nautilus-nextcloud
workstat_wm_pkg: []
...@@ -3,3 +3,5 @@ ...@@ -3,3 +3,5 @@
station_wm_pkg: station_wm_pkg:
- mate-tweak - mate-tweak
- caja-nextcloud - caja-nextcloud
workstat_wm_pkg: []
...@@ -6,6 +6,9 @@ os_uninstall_pkg: ...@@ -6,6 +6,9 @@ os_uninstall_pkg:
- thunderbird - thunderbird
- chromium-browser-l10n - chromium-browser-l10n
workstat_os_pkg: []
snap_uninstall_pkg: [] snap_uninstall_pkg: []
station_os_pkg: [] station_os_pkg:
- solaar
--- ---
base_pkg: base_pkg:
- detox
- git
- htop - htop
- keychain - keychain
- locales - locales
- lynx - lynx
- progress - progress
- python3-apt - python3-apt
- python3-venv
- rsync - rsync
- screen - screen
- sudo - sudo
- tmux - tree
- unattended-upgrades - unattended-upgrades
- unrar-free
- unzip - unzip
- vim - vim
- wget - wget
- xkcdpass - xkcdpass
- xz-utils
- zsh - zsh
base_uninstall_pkg: [] base_uninstall_pkg:
- ansible
- geany
- make
- meld
- mhwaveedit
- pandoc
- sshpass
- torbrowser-launcher
- tmux
station_pkg: workstat_pkg:
- ansible - ansible
- cheese
- detox
- easytag
- evolution
- evolution-plugins
- flatpak
- geany-plugin-addons - geany-plugin-addons
- geany-plugin-extrasel - geany-plugin-extrasel
- geany-plugin-git-changebar - geany-plugin-git-changebar
...@@ -36,6 +44,16 @@ station_pkg: ...@@ -36,6 +44,16 @@ station_pkg:
- geany-plugin-spellcheck - geany-plugin-spellcheck
- geany-plugin-workbench - geany-plugin-workbench
- geany-plugin-xmlsnippets - geany-plugin-xmlsnippets
- make
- meld
- mhwaveedit
- pandoc
station_pkg:
- cheese
- evolution
- evolution-plugins
- flatpak
- gimp - gimp
- git - git
- gnome-disk-utility - gnome-disk-utility
...@@ -44,17 +62,10 @@ station_pkg: ...@@ -44,17 +62,10 @@ station_pkg:
- hplip - hplip
- jhead - jhead
- keepassx - keepassx
- make
- meld
- mhwaveedit
- network-manager-gnome - network-manager-gnome
- nextcloud-desktop - nextcloud-desktop
- pandoc
- pdftk - pdftk
- photocollage - photocollage
- python3-venv
- sshpass
- tree
- signal-desktop - signal-desktop
- simple-scan - simple-scan
- soundconverter - soundconverter
...@@ -62,4 +73,3 @@ station_pkg: ...@@ -62,4 +73,3 @@ station_pkg:
- torbrowser-launcher - torbrowser-launcher
- unrar-free - unrar-free
- vlc - vlc
- xz-utils
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment