Autoinstall

This commit is contained in:
Navas 2024-10-12 19:36:31 +02:00
parent e8cd9b29d8
commit ae7eb591a5
3 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,19 @@
- name: Installe repo element
ansible.builtin.shell: |
apt install -y wget apt-transport-https
wget -O /usr/share/keyrings/element-io-archive-keyring.gpg https://packages.element.io/debian/element-io-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/element-io-archive-keyring.gpg] https://packages.element.io/debian/ default main" | sudo tee /etc/apt/sources.list.d/element-io.list
args:
creates: /etc/apt/sources.list.d/element-io.list
register: _repo
- name: Update cache
ansible.builtin.apt:
update-cache: true
when: _repo.changed
- name: Installe element-desktop
ansible.builtin.apt:
name:
- element-desktop

View file

@ -55,3 +55,7 @@
block: | block: |
GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT
notify: Update-grub notify: Update-grub
- name: Installe element
ansible.builtin.include_tasks: element.yml

55
autoinstall.yml Normal file
View file

@ -0,0 +1,55 @@
# Fichier autoinstall.yml pour autoinstallation Ubuntu 24.04
autoinstall:
version: 1
interactive-sections:
- network
- proxy
- identity
# En français
locale: "fr_FR.UTF-8"
timezone: "Europe/Paris"
refresh-installer:
update: true
keyboard:
layout: "fr"
variant: "latin"
storage:
layout:
name: lvm
sizing-policy: all
ssh:
install-server: true
# install codecs, which currently means installing the
# ubuntu-restricted-addons package
codecs:
install: true
# install drivers as suggested by `ubuntu-drivers`.
drivers:
install: true
# default behaviour
oem:
install: auto
packages:
- python3-poetry
- git
# Updates from both the security and updates pockets are installed.
updates: all
# Reboot après l'installation
shutdown: reboot
# Commandes passées dans le système installé
late-commands:
- curtin in-target -- git clone https://git.libretic.fr/libretic/libreticmenu.git /opt/
- curtin in-target -- /opt/libreticmenu/libreticmenu.sh --cubic