You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
638B

  1. ---
  2. - name: flatpak apt package
  3. apt:
  4. pkg: flatpak
  5. when: telegram_source == 'flatpak'
  6. - name: flathub flatpak repository
  7. community.general.flatpak_remote:
  8. name: flathub
  9. state: "{{ (telegram_source == 'flatpak') | ternary('latest','absent') }}"
  10. flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
  11. ignore_errors: "{{telegram_source != 'flatpak'}}"
  12. - name: telegram-desktop flatpak package
  13. community.general.flatpak:
  14. remote: flathub
  15. name: org.telegram.desktop
  16. state: "{{ (telegram_source == 'flatpak') | ternary('present','absent') }}"
  17. ignore_errors: "{{telegram_source != 'flatpak'}}"