Playbook séparé pour element-desktop
This commit is contained in:
parent
a8950fb409
commit
e50dae4b12
1 changed files with 22 additions and 20 deletions
|
@ -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
|
- name: Installe repo element
|
||||||
ansible.builtin.apt:
|
ansible.builtin.shell: |
|
||||||
name:
|
wget -O /usr/share/keyrings/element-io-archive-keyring.gpg https://packages.element.io/debian/element-io-archive-keyring.gpg
|
||||||
- apt-transport-https
|
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
|
- name: Update cache
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.apt:
|
||||||
wget -O /usr/share/keyrings/element-io-archive-keyring.gpg https://packages.element.io/debian/element-io-archive-keyring.gpg
|
update-cache: true
|
||||||
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
|
when: _repo.changed
|
||||||
args:
|
|
||||||
creates: /etc/apt/sources.list.d/element-io.list
|
|
||||||
register: _repo
|
|
||||||
|
|
||||||
- name: Update cache
|
- name: Installe element-desktop
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update-cache: true
|
name:
|
||||||
when: _repo.changed
|
- element-desktop
|
||||||
|
|
||||||
- name: Installe element-desktop
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name:
|
|
||||||
- element-desktop
|
|
||||||
|
|
Loading…
Reference in a new issue