Fix disabling NetworkManager DNS management on Rocky Linux 10

Change-Id: I9e968eb26747d690f1dd0cf138497311e9360cff
Signed-off-by: Pierre Riteau <pierre@stackhpc.com>
This commit is contained in:
Pierre Riteau
2025-09-17 23:05:48 +02:00
parent c136c23dae
commit 44163326ed

View File

@@ -18,7 +18,7 @@
- option: rc-manager
value: unmanaged
when:
- ansible_facts.os_family == "RedHat" and ansible_facts.distribution_major_version == "9"
- ansible_facts.os_family == "RedHat" and ansible_facts.distribution_major_version | int >= 9
register: dns_config_task
- name: Reload NetworkManager with DNS config