From 9d849ecb95b8ac543fc96c3313911ee63f4b5917 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 12 Jun 2025 16:22:03 -0700 Subject: [PATCH] proxy101/110.rdu3: use random mac generated on install Signed-off-by: Kevin Fenzi --- inventory/host_vars/proxy101.rdu3.fedoraproject.org | 2 +- inventory/host_vars/proxy110.rdu3.fedoraproject.org | 2 +- roles/web-data-analysis/tasks/main.yml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inventory/host_vars/proxy101.rdu3.fedoraproject.org b/inventory/host_vars/proxy101.rdu3.fedoraproject.org index 2ad4a4afe6..fe01275f9d 100644 --- a/inventory/host_vars/proxy101.rdu3.fedoraproject.org +++ b/inventory/host_vars/proxy101.rdu3.fedoraproject.org @@ -11,7 +11,7 @@ freezes: true has_ipv4: yes ks_repo: https://infrastructure.fedoraproject.org/pub/fedora/linux/releases/42/Server/x86_64/os/ ks_url: https://infrastructure.fedoraproject.org/repo/rhel/ks/kvm-fedora -mac0: 52:54:00:1F:48:0A +mac0: "{{ ansible_default_ipv4.macaddress }}" mem_size: 16384 network_connections: - autoconnect: yes diff --git a/inventory/host_vars/proxy110.rdu3.fedoraproject.org b/inventory/host_vars/proxy110.rdu3.fedoraproject.org index f4841b633b..2d6af4e7e7 100644 --- a/inventory/host_vars/proxy110.rdu3.fedoraproject.org +++ b/inventory/host_vars/proxy110.rdu3.fedoraproject.org @@ -11,7 +11,7 @@ freezes: true has_ipv4: yes ks_repo: https://infrastructure.fedoraproject.org/pub/fedora/linux/releases/42/Server/x86_64/os/ ks_url: https://infrastructure.fedoraproject.org/repo/rhel/ks/kvm-fedora -mac0: 52:54:00:1F:48:0A +mac0: "{{ ansible_default_ipv4.macaddress }}" mem_size: 16384 network_connections: - autoconnect: yes diff --git a/roles/web-data-analysis/tasks/main.yml b/roles/web-data-analysis/tasks/main.yml index 5e2c27673e..dad85501e2 100644 --- a/roles/web-data-analysis/tasks/main.yml +++ b/roles/web-data-analysis/tasks/main.yml @@ -4,6 +4,7 @@ tags: - packages - web-data + when: ansible_distribution_major_version|int <= 9 - name: Make sure the /usr/local/share/web-data-analysis directory exists ansible.builtin.file: path=/usr/local/share/web-data-analysis state=directory