Files
ansible-gitea-runner/host_setup.yml
2025-11-02 11:21:25 +01:00

26 lines
551 B
YAML

---
- name: Initial generic setup
hosts: gitrunner
become: yes
gather_facts: yes
tasks:
- name: Install required packages
yum:
name:
- git
- nodejs
- mock
state: present
update_cache: yes
- name: Check current hostname
command: hostname
register: current_hostname
changed_when: false
- name: Set hostname to configured value (if needed)
hostname:
name: fedora-rawhide
when:
- current_hostname.stdout != "fedora-rawhide"