refactor ♻️: Update package installation for python3-pip and pexpect
Updated package installation to use apt instead of pip, adding optional dependency on python3-pip. Also updated the become flag for pip and expect tasks.
This commit is contained in:
@@ -9,15 +9,17 @@
|
||||
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 python3-pip is installed (optional)
|
||||
# ansible.builtin.apt:
|
||||
# name: python3-pip
|
||||
# state: present
|
||||
# become: true
|
||||
|
||||
- name: Ensure pexpect is installed
|
||||
ansible.builtin.pip:
|
||||
name: pexpect
|
||||
executable: pip3
|
||||
- name: Ensure pexpect is installed (via apt)
|
||||
ansible.builtin.apt:
|
||||
name: python3-pexpect
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: "Create the reverse DNS zone {{ addc_reverse_zone_name }}"
|
||||
ansible.builtin.expect:
|
||||
|
||||
Reference in New Issue
Block a user