From e50dae4b128d8c1fa7292c0c3d85554a3f3b217c Mon Sep 17 00:00:00 2001 From: Olivier Navas Date: Wed, 20 Nov 2024 11:26:36 +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/element.yml | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/ansible/element.yml b/ansible/element.yml index f69104a..77b6147 100644 --- a/ansible/element.yml +++ b/ansible/element.yml @@ -1,23 +1,25 @@ +- name: Installation d'element + hosts: localhost + tasks: + - name: Package apt-transport-https + ansible.builtin.apt: + name: + - apt-transport-https -- name: Package apt-transport-https - ansible.builtin.apt: - name: - - apt-transport-https + - name: Installe repo element + ansible.builtin.shell: | + 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: Installe repo element - ansible.builtin.shell: | - 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: Update cache - ansible.builtin.apt: - update-cache: true - when: _repo.changed - -- name: Installe element-desktop - ansible.builtin.apt: - name: - - element-desktop + - name: Installe element-desktop + ansible.builtin.apt: + name: + - element-desktop