Files
ansible-gitea-runner/setup.yml
2025-10-24 14:58:36 +02:00

21 lines
437 B
YAML

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