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 18040595 authored by freezed's avatar freezed :mountain:
Browse files

:twisted_rightwards_arrows: Merge branch 'apt'

parents a0bd68a4 6af4189f
No related branches found
No related tags found
No related merge requests found
EDITOR = geany
help: # Print help on Makefile
@grep '^[^.#]\+:\s\+.*#' Makefile | \
sed "s/\(.\+\):\s*\(.*\) #\s*\(.*\)/`printf "\e[1;33;4;40m"`\1`printf "\033[0m"` \3/" | \
expand -t20
clean:
# Remove files not in source control
find . -type f -name "*.retry" -delete
clean: # Remove files not tracked in source control
find . -type f -name "*.orig" -delete
open_all:
open_all: # Open all projects files
${EDITOR} .gitignore inv* Makefile README.md
${EDITOR} tasks/*.yml
${EDITOR} tasks/files/sshd_config
......@@ -18,5 +19,5 @@ open_all:
${EDITOR} tasks/user_cfg/vars/*.yml
${EDITOR} tasks/vars/*.yml
inventory_generation:
gen_invent: # Generate base inventory
cp inventory.sample inventory && ${EDITOR} inventory
......@@ -28,6 +28,6 @@ Suitable for server and workstation.
-------------
1. Setup your `inventory` file from [`inventory.sample`](inventory.sample) :
- `make inventory_generation`
- `make gen_invent`
1. Run `host_info` playbook to `<group_foo>` & `<group_bar>` :
- `ansible-playbook tasks/host_info.yml -i inventory -e host_list=<group_foo>:<group_bar>`
......@@ -18,10 +18,10 @@
when: "'mate' in group_names"
ansible.builtin.include_vars: "Mate.yml"
- name: Remove snap packages
when: snap_uninstall_pkg is defined
community.general.snap:
name: "{{ snap_uninstall_pkg }}"
- name: APT | uninstall packages
when: inventory_hostname not in groups.workstat
ansible.builtin.apt:
pkg: "{{ lookup('flattened', base_uninstall_pkg, os_uninstall_pkg) }}"
state: absent
- name: APT | install base & os packages
......@@ -32,19 +32,25 @@
state: present
update_cache: true
- name: SIGNAL | add key to keyring
- name: SNAP | remove snap packages
when: snap_uninstall_pkg is defined
community.general.snap:
name: "{{ snap_uninstall_pkg }}"
state: absent
- name: FLATPAK | add remote
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
community.general.flatpak_remote:
name: flathub
flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo
state: present
- name: SIGNAL | add apt repository
- name: FLATPAK | add packages
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
community.general.flatpak:
name: com.brave.Browser
state: present
remote: flathub
- name: APT | install workstation packages
when: inventory_hostname in groups.station
......@@ -55,21 +61,42 @@
state: present
update_cache: true
- name: APT | uninstall packages
- name: APT | install develstation packages
when: inventory_hostname in groups.workstat
ansible.builtin.apt:
pkg: "{{ lookup('flattened', base_uninstall_pkg, os_uninstall_pkg) }}"
state: absent
cache_valid_time: 3600
force_apt_get: yes
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
when: inventory_hostname in groups.station
ansible.builtin.apt: deb={{item}}
with_items:
- https://zoom.us/client/latest/zoom_amd64.deb
- https://flavio.tordini.org/files/minitube/minitube.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 | install zoom client
when: inventory_hostname in groups.station
ansible.builtin.apt:
deb: https://zoom.us/client/latest/zoom_amd64.deb
- name: APT | remove useless packages from the cache
ansible.builtin.apt:
force_apt_get: yes
......
......@@ -98,4 +98,4 @@ set incsearch
"set hlsearch
" Décommentez la ligne suivante si vous voulez afficher les numéros de ligne
set number relativenumber
set relativenumber number
......@@ -9,7 +9,7 @@ git_repositories:
- {local_name: "forga-emb", url_https: "https://gitlab.com/forga/process/fr/embarquement.git"}
- {local_name: "forga-glio", url_https: "https://gitlab.com/forga/forga.gitlab.io.git"}
- {local_name: "forga-man", url_https: "https://gitlab.com/forga/process/fr/manuel.git"}
- {local_name: "forga-tool-debian", url_https: "https://lab.frogg.it/fcode/ansible/debian.git"}
- {local_name: "forga-tool-debian", url_https: "https://lab.frogg.it/freezed/ansible-debian.git"}
- {local_name: "freezed.gl.io", url_https: "https://gitlab.com/free_zed/free_zed.gitlab.io.git"}
- {local_name: "ftalk-gitlab", url_https: "https://gitlab.com/ftalk/2020-gitlab.git"}
- {local_name: "geostrapy", url_https: "https://lab.frogg.it/fcode/geostrapy.git"}
......
......@@ -4,6 +4,7 @@ os_pkg: []
os_uninstall_pkg: []
workstat_os_pkg: []
station_os_pkg:
- chromium-l10n
- firefox-esr-l10n-fr
......@@ -2,4 +2,7 @@
station_wm_pkg:
- gnome-tweaks
- nautilus-image-converter
- nautilus-nextcloud
workstat_wm_pkg: []
......@@ -3,3 +3,5 @@
station_wm_pkg:
- mate-tweak
- caja-nextcloud
workstat_wm_pkg: []
......@@ -4,11 +4,11 @@ os_pkg: []
os_uninstall_pkg:
- thunderbird
- chromium-browser-l10n
workstat_os_pkg: []
snap_uninstall_pkg: []
station_os_pkg:
- chromium-browser-l10n
- firefox-locale-fr
- firefox
- nautilus-image-converter
- solaar
---
base_pkg:
- detox
- git
- htop
- keychain
- locales
- lynx
- progress
- python3-apt
- python3-venv
- rsync
- screen
- sudo
- tmux
- unattended-upgrades
- unrar-free
- unzip
- vim
- wget
- xkcdpass
- xz-utils
- zsh
base_uninstall_pkg:
- geany-plugin-shiftcolumn
- jq
- httpie
- ansible
- geany
- make
- meld
- mhwaveedit
- pandoc
- sshpass
- torbrowser-launcher
- tmux
station_pkg:
workstat_pkg:
- ansible
- cheese
- easytag
- evolution
- evolution-plugins
- geany-plugin-addons
- geany-plugin-extrasel
- geany-plugin-git-changebar
......@@ -37,24 +43,28 @@ station_pkg:
- geany-plugin-spellcheck
- geany-plugin-workbench
- geany-plugin-xmlsnippets
- make
- meld
- mhwaveedit
- pandoc
station_pkg:
- cheese
- evolution
- evolution-plugins
- flatpak
- gimp
- git
- gnome-disk-utility
- gnome-software-plugin-flatpak
- gpsprune
- hplip
- jhead
- keepassx
- make
- meld
- mhwaveedit
- network-manager-gnome
- nextcloud-desktop
- pandoc
- pdftk
- photocollage
- python3-venv
- sshpass
- tree
- signal-desktop
- simple-scan
- soundconverter
......
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