Added flatpak role to install software

This commit is contained in:
Sagi Dayan 2021-10-30 10:18:46 +03:00
parent 6876d84340
commit 3e250fd12b
Signed by: sagi
GPG key ID: FAB96BFC63B46458
22 changed files with 32 additions and 3 deletions

View file

@ -10,7 +10,7 @@ Run Workstation playbook on fedora:
- dnf install -y ansible python3-pip - dnf install -y ansible python3-pip
- pip3 install -r ci-requirements.txt - pip3 install -r ci-requirements.txt
- mkdir /tmp/artifacts - mkdir /tmp/artifacts
- ANSIBLE_CONFIG=$(pwd)/ansible.cfg JUNIT_OUTPUT_DIR=/tmp/artifacts ansible-playbook workstation.yml || (mv /tmp/artifacts/workstation-*.xml report.xml && exit 1) - bash play_workstation.sh
- cp /tmp/artifacts/workstation-*.xml report.xml - cp /tmp/artifacts/workstation-*.xml report.xml
- ls /tmp/artifacts - ls /tmp/artifacts
artifacts: artifacts:
@ -26,7 +26,7 @@ Run Workstation playbook on ubuntu:
- apt-get install -y ansible python3-pip python3-apt - apt-get install -y ansible python3-pip python3-apt
- pip3 install -r ci-requirements.txt - pip3 install -r ci-requirements.txt
- mkdir /tmp/artifacts - mkdir /tmp/artifacts
- ANSIBLE_CONFIG=$(pwd)/ansible.cfg JUNIT_OUTPUT_DIR=/tmp/artifacts ansible-playbook workstation.yml || (mv /tmp/artifacts/workstation-*.xml report.xml && exit 1) - bash play_workstation.sh
- mv /tmp/artifacts/workstation-*.xml report.xml - mv /tmp/artifacts/workstation-*.xml report.xml
- ls /tmp/artifacts - ls /tmp/artifacts
artifacts: artifacts:

5
play_workstation.sh Normal file
View file

@ -0,0 +1,5 @@
# Install Dependencies
ansible-galaxy collection install community.general
# Run Playbook
ANSIBLE_CONFIG=$(pwd)/ansible.cfg JUNIT_OUTPUT_DIR=/tmp/artifacts ansible-playbook playbooks/workstation.yml || (mv /tmp/artifacts/workstation-*.xml report.xml && exit 1)

0
playbooks/roles/.empty Normal file
View file

View file

@ -6,7 +6,8 @@
- bat - bat
- wget - wget
- git - git
# - podman - podman
- flatpak
state: present state: present
- name: Copy gitconfig base - name: Copy gitconfig base

View file

@ -0,0 +1,22 @@
---
- name: Add the flathub flatpak repository remote
community.general.flatpak_remote:
name: flathub
state: present
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
- name: Install multiple packages
community.general.flatpak:
name:
- org.gimp.GIMP
- org.telegram.desktop
- net.christianbeier.Gromit-MPX
- md.obsidian.Obsidian
- com.bitwarden.desktop
- com.github.tchx84.Flatseal
- com.github.alexr4535.siglo
- com.nextcloud.desktopclient.nextcloud
- com.github.unrud.VideoDownloader
- fyi.zoey.Boop-GTK
- nl.hjdskes.gcolor3
state: present

View file

@ -9,3 +9,4 @@
- vim_user - vim_user
- alacritty_user - alacritty_user
- lsd_user - lsd_user
- flatpaks