diff --git a/tasks/verify.yml b/tasks/verify.yml index a32129d..2ed259c 100644 --- a/tasks/verify.yml +++ b/tasks/verify.yml @@ -5,13 +5,13 @@ state: started enabled: true -- name: Create the reverse DNS zone {{ addc_reverse_zone_name }} +- name: "Create the reverse DNS zone {{ addc_reverse_zone_name }}" community.general.expect: # Note: The 'expect' module is in the 'community.general' collection - command: 'samba-tool dns zonecreate {{ addc_ansible_host }} {{ addc_reverse_zone_name }} -U Administrator' + command: "samba-tool dns zonecreate {{ addc_ansible_host }} {{ addc_reverse_zone_name }} -U Administrator" responses: # Use the '(?i)' flag for case-insensitive matching of the prompt. - '(?i)password for.*:': '{{ addc_admin_password }}' + '(?i)password for.*:': "{{ addc_admin_password }}" no_log: true # Highly recommended to prevent the password from appearing in logs - name: Create the PTR (reverse) DNS record