rename file and add dependencies

This commit is contained in:
Lukas Greve
2025-10-26 20:02:50 +01:00
parent 93561738df
commit 98040c59fd

View File

@@ -1,4 +1,3 @@
---
- name: Initial generic setup
hosts: gitrunner
become: yes
@@ -8,6 +7,8 @@
yum:
name:
- git
- nodejs
- mock
state: present
- name: Check current hostname
@@ -15,7 +16,7 @@
register: current_hostname
changed_when: false
- name: Set hostname to rocky10 (if needed)
- name: Set hostname to configured value (if needed)
hostname:
name: rocky10
when: current_hostname.stdout != "rocky10"
name: fedora-rawhide10
when: current_hostname.stdout != ansible_hostname