fix 🐛: Fixed Ansible host check for 'not in' condition
Updated the failed_when condition to use a single quote instead of double quotes, ensuring correct comparison with the addc_ansible_host variable.
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
ansible.builtin.command: host -t A {{ addc_hostname | lower }}.{{ addc_auth_domain | lower }}.
|
||||
register: a_record_check
|
||||
changed_when: false
|
||||
failed_when: '{{ addc_ansible_host }} not in a_record_check.stdout'
|
||||
failed_when: "'{{ addc_ansible_host }}' not in a_record_check.stdout"
|
||||
|
||||
- name: "Debug - Show A Record check result"
|
||||
ansible.builtin.debug:
|
||||
|
||||
Reference in New Issue
Block a user