From f701cfd4c9f7b90cedfa9ad2f52106fab5c6cbdb Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Sat, 16 Sep 2023 19:18:09 +0000 Subject: [PATCH] ansible_host: Remove python 3.11 netaddr kludge --- roles/ansible_host/tasks/main.yml | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/roles/ansible_host/tasks/main.yml b/roles/ansible_host/tasks/main.yml index 486e145..a5f93f1 100644 --- a/roles/ansible_host/tasks/main.yml +++ b/roles/ansible_host/tasks/main.yml @@ -8,27 +8,7 @@ - ansible-collection-ansible-posix - ansible-collection-community-general - python3.11-dns # required for lookup('dig', 'hostname') - - python3-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 + - python3.11-netaddr # required by iptables role - name: Create private directory and force permissions ansible.builtin.file: @@ -55,7 +35,7 @@ - name: Clone ansible repository ansible.builtin.git: dest: /srv/ansible - repo: https://git.foo.sh/ansible.git + repo: https://git.foo.sh/foo.sh/ansible.git update: false version: master