?
This commit is contained in:
91
host-as-runner-config.yml
Normal file
91
host-as-runner-config.yml
Normal file
@@ -0,0 +1,91 @@
|
||||
---
|
||||
- name: More advanced setup, to use host itself as runner
|
||||
hosts: gitrunner
|
||||
become: true
|
||||
gather_facts: true
|
||||
|
||||
tasks:
|
||||
- name: Ensure required repositories are enabled
|
||||
ansible.builtin.dnf:
|
||||
name:
|
||||
- dnf-plugins-core
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Install required packages with error handling
|
||||
ansible.builtin.dnf:
|
||||
name:
|
||||
- mock
|
||||
- anaconda
|
||||
- lorax
|
||||
- make
|
||||
- git
|
||||
- gcc
|
||||
- gcc-c++
|
||||
- cmake
|
||||
- clang
|
||||
- clang-tools-extra
|
||||
- python3
|
||||
- python3-pip
|
||||
- python3-devel
|
||||
- python3-setuptools
|
||||
- python3-wheel
|
||||
- nodejs
|
||||
- npm
|
||||
- ruby
|
||||
- ruby-devel
|
||||
- rust
|
||||
- cargo
|
||||
- go
|
||||
- perl
|
||||
- perl-Module-Build
|
||||
- perl-ExtUtils-MakeMaker
|
||||
- gettext
|
||||
- wget
|
||||
- curl
|
||||
- unzip
|
||||
- tar
|
||||
- gzip
|
||||
- bzip2
|
||||
- xz
|
||||
- vim
|
||||
- which
|
||||
- procps-ng
|
||||
- findutils
|
||||
- coreutils
|
||||
- diffutils
|
||||
- patch
|
||||
- shadow-utils
|
||||
- util-linux
|
||||
- grep
|
||||
- sed
|
||||
- bash
|
||||
- zsh
|
||||
- openssh-clients
|
||||
- openssl
|
||||
- ca-certificates
|
||||
- libarchive
|
||||
- libtool
|
||||
- automake
|
||||
- autoconf
|
||||
- libffi-devel
|
||||
- openssl-devel
|
||||
- zlib-devel
|
||||
- bison
|
||||
- flex
|
||||
- gdb
|
||||
- strace
|
||||
- ltrace
|
||||
- valgrind
|
||||
state: present
|
||||
update_cache: true
|
||||
allow_downgrade: false
|
||||
|
||||
- name: Clean dnf cache
|
||||
ansible.builtin.command: dnf clean all
|
||||
changed_when: true
|
||||
|
||||
- name: Remove dnf cache directory
|
||||
ansible.builtin.file:
|
||||
path: /var/cache/dnf
|
||||
state: absent
|
||||
Reference in New Issue
Block a user