Compare commits

...

3 commits

22 changed files with 40 additions and 5 deletions

View file

@ -5,12 +5,12 @@ stages:
Run Workstation playbook on fedora:
stage: dnf_systems
image: fedora
image: fedora:latest
script:
- dnf install -y ansible python3-pip
- pip3 install -r ci-requirements.txt
- 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
- ls /tmp/artifacts
artifacts:
@ -20,13 +20,13 @@ Run Workstation playbook on fedora:
Run Workstation playbook on ubuntu:
stage: apt_systems
image: ubuntu
image: ubuntu:latest
script:
- apt-get update
- apt-get install -y ansible python3-pip python3-apt
- pip3 install -r ci-requirements.txt
- 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
- ls /tmp/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,9 +6,16 @@
- bat
- wget
- git
# - podman
- flatpak
state: present
- name: Some more packages (RedHat based)
become: true
package:
name:
- podman
when: ansible_facts['os_family'] == "RedHat"
- name: Copy gitconfig base
copy:
src: dotfiles/gitconfig

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
- alacritty_user
- lsd_user
- flatpaks