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