From a8950fb409a2cadac77698b90ba631e246194003 Mon Sep 17 00:00:00 2001 From: Olivier Navas Date: Wed, 20 Nov 2024 11:09:56 +0100 Subject: [PATCH] =?UTF-8?q?Playbook=20s=C3=A9par=C3=A9=20pour=20element-de?= =?UTF-8?q?sktop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/{roles/base/tasks => }/element.yml | 6 +++++- ansible/roles/base/tasks/main.yml | 4 ---- config.yml.example | 5 +++++ 3 files changed, 10 insertions(+), 5 deletions(-) rename ansible/{roles/base/tasks => }/element.yml (86%) diff --git a/ansible/roles/base/tasks/element.yml b/ansible/element.yml similarity index 86% rename from ansible/roles/base/tasks/element.yml rename to ansible/element.yml index 604ea48..f69104a 100644 --- a/ansible/roles/base/tasks/element.yml +++ b/ansible/element.yml @@ -1,7 +1,11 @@ +- name: Package apt-transport-https + ansible.builtin.apt: + name: + - apt-transport-https + - 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: diff --git a/ansible/roles/base/tasks/main.yml b/ansible/roles/base/tasks/main.yml index de70e9f..ff9434e 100644 --- a/ansible/roles/base/tasks/main.yml +++ b/ansible/roles/base/tasks/main.yml @@ -59,7 +59,3 @@ block: | GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT notify: Update-grub - - -- name: Installe Element - ansible.builtin.include_tasks: element.yml diff --git a/config.yml.example b/config.yml.example index d5f00b2..011828c 100644 --- a/config.yml.example +++ b/config.yml.example @@ -47,6 +47,11 @@ ansible_playbooks: argument_help: Ne présente pas le menu et exécute la conformité playbook: conformite.yml + element: + menu_title: Exécuter l'installation d'element + argument_help: Ne présente pas le menu et installe element + playbook: element.yml + ajoute-utilisateur: menu_title: Ajoute un utilisateur playbook: ajoute-utilisateur.yml