Skip to content
Snippets Groups Projects
Commit 2eb3dea4 authored by nimrod's avatar nimrod
Browse files

- Use flathub in Skype playbook.

- Added Slack playbook (using flatpak from flathub).
- Updated README accordingly.
parent 6b3e9934
No related branches found
No related tags found
No related merge requests found
...@@ -37,23 +37,20 @@ Configures development tools (includes the desktop and packages playbooks). ...@@ -37,23 +37,20 @@ Configures development tools (includes the desktop and packages playbooks).
Skype Skype
===== =====
Installs the Skype Debian package since there's no repository. Install Skype flatpak from flathub..
.. code:: shell .. code:: shell
ansible-playbook --ask-become-pass --connection local --inventory-file localhost, --verbose skype.yml ansible-playbook --ask-become-pass --connection local --inventory-file localhost, --verbose skype.yml
Can be added as a Cron job under root for updates. Slack
=====
.. code:: shell
ansible-playbook --connection local --inventory-file localhost, --verbose skype.yml | logger
Or maybe even (always downloads the newest version from the Git repo). Install Slack desktop flatpak from flathub..
.. code:: shell .. code:: shell
ansible-pull --url https://www.shore.co.il/git/ansible-desktop-playbooks --verbose skype.yml | logger ansible-playbook --ask-become-pass --connection local --inventory-file localhost, --verbose slack.yml
Dropbox Dropbox
======= =======
......
...@@ -16,10 +16,16 @@ ...@@ -16,10 +16,16 @@
update_cache: yes update_cache: yes
cache_valid_time: 3600 cache_valid_time: 3600
- name: Add Flathub repo
become: False
command: |
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo --user
changed_when: False
- name: Install - name: Install
become: False become: False
command: | command: |
flatpak install --user --from https://s3.amazonaws.com/alexlarsson/skype-repo/skype.flatpakref flatpak install --user flathub com.skype.Client
register: skype_flatpak_install register: skype_flatpak_install
changed_when: | changed_when: |
'Installing' in skype_flatpak_install.stdout 'Installing' in skype_flatpak_install.stdout
......
---
- hosts: all
become: yes
become_user: root
tasks:
- name: Assertions
assert:
that:
- ansible_architecture in [ 'x86_64', 'x86' ]
- ansible_pkg_mgr == 'apt'
- name: APT install Flatpak
apt:
name: flatpak
state: present
update_cache: yes
cache_valid_time: 3600
- name: Add Flathub repo
become: False
command: |
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo --user
changed_when: False
- name: Install
become: False
command: |
flatpak install --user flathub com.slack.Slack
register: slack_flatpak_install
changed_when: |
'Installing' in slack_flatpak_install.stdout
failed_when: slack_flatpak_install.rc|int > 0 and 'already installed' not in slack_flatpak_install.stderr
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment