diff --git a/tasks/RedHat/wireguard_install.yaml b/tasks/RedHat/wireguard_install.yaml index b39d97d..33688e4 100644 --- a/tasks/RedHat/wireguard_install.yaml +++ b/tasks/RedHat/wireguard_install.yaml @@ -1,5 +1,5 @@ - name: Install wireguard for RHEL 8 - when: distribution_major_version == '8' + when: ansible_facts['distribution_major_version'] == '8' block: - name: Install repos dnf: @@ -15,7 +15,7 @@ - wireguard-tools - name: Install wireguard for RHEL 9 - when: distribution_major_version == '9' + when: ansible_facts['distribution_major_version'] == '9' block: - name: Install repos dnf: