ansible_host: Remove python 3.11 netaddr kludge
This commit is contained in:
parent
c077b5a41a
commit
f701cfd4c9
1 changed files with 2 additions and 22 deletions
|
@ -8,27 +8,7 @@
|
||||||
- ansible-collection-ansible-posix
|
- ansible-collection-ansible-posix
|
||||||
- ansible-collection-community-general
|
- ansible-collection-community-general
|
||||||
- python3.11-dns # required for lookup('dig', 'hostname')
|
- python3.11-dns # required for lookup('dig', 'hostname')
|
||||||
- python3-netaddr # required by iptables role
|
- python3.11-netaddr # required by iptables role
|
||||||
|
|
||||||
- name: Create python3.11 lib directories
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ item }}"
|
|
||||||
state: directory
|
|
||||||
mode: 0755
|
|
||||||
owner: root
|
|
||||||
group: "{{ ansible_wheel }}"
|
|
||||||
with_items:
|
|
||||||
- /usr/local/lib/python3.11
|
|
||||||
- /usr/local/lib/python3.11/site-packages
|
|
||||||
|
|
||||||
- name: Kludge to add netaddr to python3.11 until package is released
|
|
||||||
ansible.builtin.copy:
|
|
||||||
dest: /usr/local/lib/python3.11/site-packages/netaddr
|
|
||||||
src: /usr/lib/python3.9/site-packages/netaddr
|
|
||||||
mode: preserve
|
|
||||||
owner: root
|
|
||||||
group: "{{ ansible_wheel }}"
|
|
||||||
remote_src: true
|
|
||||||
|
|
||||||
- name: Create private directory and force permissions
|
- name: Create private directory and force permissions
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
@ -55,7 +35,7 @@
|
||||||
- name: Clone ansible repository
|
- name: Clone ansible repository
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
dest: /srv/ansible
|
dest: /srv/ansible
|
||||||
repo: https://git.foo.sh/ansible.git
|
repo: https://git.foo.sh/foo.sh/ansible.git
|
||||||
update: false
|
update: false
|
||||||
version: master
|
version: master
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue