Autoinstall
This commit is contained in:
parent
e8cd9b29d8
commit
ae7eb591a5
3 changed files with 78 additions and 0 deletions
19
ansible/roles/base/tasks/element.yml
Normal file
19
ansible/roles/base/tasks/element.yml
Normal 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
|
|
@ -55,3 +55,7 @@
|
|||
block: |
|
||||
GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT
|
||||
notify: Update-grub
|
||||
|
||||
|
||||
- name: Installe element
|
||||
ansible.builtin.include_tasks: element.yml
|
||||
|
|
55
autoinstall.yml
Normal file
55
autoinstall.yml
Normal 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
|
Loading…
Reference in a new issue