|
110 | 110 | when: |
111 | 111 | - ad_integration_manage_crypto_policies | bool |
112 | 112 | # Fedora and RHEL8+ |
113 | | - - (ansible_distribution == "Fedora" or |
114 | | - (ansible_distribution in __ad_integration_rh_distros and |
115 | | - ansible_distribution_version is version('8', '>='))) |
| 113 | + - (ansible_facts['distribution'] == "Fedora" or |
| 114 | + (ansible_facts['distribution'] in __ad_integration_rh_distros and |
| 115 | + ansible_facts['distribution_version'] is version('8', '>='))) |
116 | 116 |
|
117 | 117 | ## RHEL9 uses the AD-SUPPORT-LEGACY policy for RC4, |
118 | 118 | ## otherwise AD-SUPPORT allows it |
|
123 | 123 | crypto_policies_policy: "DEFAULT:AD-SUPPORT-LEGACY" |
124 | 124 | when: |
125 | 125 | - ad_integration_allow_rc4_crypto | bool |
126 | | - - ansible_distribution in __ad_integration_rh_distros |
127 | | - - ansible_distribution_version is version('9', '>=') |
| 126 | + - ansible_facts['distribution'] in __ad_integration_rh_distros |
| 127 | + - ansible_facts['distribution_version'] is version('9', '>=') |
128 | 128 |
|
129 | 129 | - name: Grab existing domain settings from sssd.conf if we want to merge |
130 | 130 | when: ad_integration_sssd_merge_duplicate_sections | bool |
|
347 | 347 | # For dynamic dns to work the machine either needs fqdn in hostname |
348 | 348 | # or ad_hostname needs to be defined. |
349 | 349 | - key: ad_hostname |
350 | | - value: "{{ ansible_hostname + '.' + ad_integration_realm | lower |
351 | | - | string if '.' not in ansible_hostname else '' }}" |
| 350 | + value: "{{ ansible_facts['hostname'] + '.' + ad_integration_realm | lower |
| 351 | + | string if '.' not in ansible_facts['hostname'] else '' }}" |
352 | 352 | when: |
353 | 353 | - ad_dyndns_update | bool |
354 | 354 | - item.value is not none |
|
0 commit comments