diff --git a/ansible/roles/base/tasks/element.yml b/ansible/roles/base/tasks/element.yml new file mode 100644 index 0000000..604ea48 --- /dev/null +++ b/ansible/roles/base/tasks/element.yml @@ -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 diff --git a/ansible/roles/base/tasks/main.yml b/ansible/roles/base/tasks/main.yml index 8a4a6a6..555a122 100644 --- a/ansible/roles/base/tasks/main.yml +++ b/ansible/roles/base/tasks/main.yml @@ -55,3 +55,7 @@ block: | GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT notify: Update-grub + + +- name: Installe element + ansible.builtin.include_tasks: element.yml diff --git a/autoinstall.yml b/autoinstall.yml new file mode 100644 index 0000000..f714ae0 --- /dev/null +++ b/autoinstall.yml @@ -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