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:
2025-11-07 06:31:45 +01:00
parent 6107513f72
commit 505271fcba

View File

@@ -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: