2024-11-20 11:26:36 +01:00
|
|
|
- name: Installation d'element
|
|
|
|
hosts: localhost
|
|
|
|
tasks:
|
|
|
|
- name: Package apt-transport-https
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
|
|
|
- apt-transport-https
|
2024-10-12 19:36:31 +02:00
|
|
|
|
2024-11-20 11:26:36 +01:00
|
|
|
- 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
|
2024-11-20 11:09:56 +01:00
|
|
|
|
2024-11-20 11:26:36 +01:00
|
|
|
- name: Update cache
|
|
|
|
ansible.builtin.apt:
|
|
|
|
update-cache: true
|
|
|
|
when: _repo.changed
|
2024-10-12 19:36:31 +02:00
|
|
|
|
2024-11-20 11:26:36 +01:00
|
|
|
- name: Installe element-desktop
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
|
|
|
- element-desktop
|