Playbook séparé pour element-desktop

This commit is contained in:
Olivier Navas 2024-11-20 11:26:36 +01:00
parent a8950fb409
commit e50dae4b12

View file

@ -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