chore 📦: Update Ansible playbook to include pip and pexpect dependencies

Added python3-pip and pexpect dependencies to the Ansible playbook to ensure proper installation of required tools for reverse DNS zone creation.
This commit is contained in:
2025-11-07 05:58:27 +01:00
parent 47cdaee59c
commit a6bdc70932

View File

@@ -9,6 +9,16 @@
ansible.builtin.debug:
msg: "{{ addc_reverse_zone_name }} {{ addc_ansible_host }} {{ addc_admin_password }} {{ addc_ip_last_octet }} {{ addc_hostname }} {{ addc_auth_domain }}"
- name: Ensure python3-pip is installed
ansible.builtin.package:
name: python3-pip
state: present
- name: Ensure pexpect is installed
ansible.builtin.pip:
name: pexpect
executable: pip3
- name: "Create the reverse DNS zone {{ addc_reverse_zone_name }}"
ansible.builtin.expect:
command: "samba-tool dns zonecreate {{ addc_ansible_host }} {{ addc_reverse_zone_name }} -U Administrator"