mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-12-22 14:09:53 +00:00
Compare commits
3 commits
6876d84340
...
061cca81b5
Author | SHA1 | Date | |
---|---|---|---|
061cca81b5 | |||
ca3b8819c4 | |||
3e250fd12b |
22 changed files with 40 additions and 5 deletions
|
@ -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
5
play_workstation.sh
Normal 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
0
playbooks/roles/.empty
Normal 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
|
22
playbooks/roles/flatpaks/tasks/main.yml
Normal file
22
playbooks/roles/flatpaks/tasks/main.yml
Normal 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
|
|
@ -9,3 +9,4 @@
|
|||
- vim_user
|
||||
- alacritty_user
|
||||
- lsd_user
|
||||
- flatpaks
|
Loading…
Reference in a new issue