From e48800bf8ea2922a37992770a9b63ea6ca425cd4 Mon Sep 17 00:00:00 2001 From: Jon Date: Sun, 4 Jun 2023 14:03:44 +0930 Subject: [PATCH 1/3] feat(ansible): add galaxy collection ansible.posix this collection is required so that ssh auth_keys can be used !24 nofusscomputing/infrastructure/config#22 nofusscomputing/infrastructure/config!27 --- dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index c88be36..4751606 100644 --- a/dockerfile +++ b/dockerfile @@ -62,4 +62,6 @@ RUN ansible-galaxy collection install \ awx.awx \ kubernetes.core \ # community.general.gitlab_* - community.general \ No newline at end of file + community.general \ + # ansible.posix.authorized_key for SSH + ansible.posix \ No newline at end of file -- 2.49.0 From 369987eaf5755c193b9d1fd53f614799139acdd4 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 5 Jun 2023 09:35:00 +0930 Subject: [PATCH 2/3] feat(ansible): add galaxy collection community.docker this collection is required so that docker containers can be managed !24 nofusscomputing/infrastructure/config#22 nofusscomputing/infrastructure/config!27 --- dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index 4751606..8fff713 100644 --- a/dockerfile +++ b/dockerfile @@ -64,4 +64,6 @@ RUN ansible-galaxy collection install \ # community.general.gitlab_* community.general \ # ansible.posix.authorized_key for SSH - ansible.posix \ No newline at end of file + ansible.posix \ + # docker managment + community.docker \ No newline at end of file -- 2.49.0 From e82f96a40269b42a5421360724e93768b2958bdb Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 5 Jun 2023 09:56:50 +0930 Subject: [PATCH 3/3] fix(python): linked ansible used python to 3.11 see nofusscomputing/projects/ansible/execution_environment#9 for issue WRT the python version !24 nofusscomputing/infrastructure/config#22 nofusscomputing/infrastructure/config!27 nofusscomputing/projects/ansible/execution_environment#9 --- dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index 8fff713..9b9cd9e 100644 --- a/dockerfile +++ b/dockerfile @@ -44,7 +44,10 @@ RUN export DEBIAN_FRONTEND=noninteractive \ && mkdir -p /etc/ansible/roles \ && mkdir -p /etc/ansible/collections \ && mkdir -p /workdir \ - && apt list --installed + && apt list --installed \ + # see issue https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/issues/9 for following two lines + && rm /usr/bin/python3 \ + && ln -s /usr/local/bin/python3.11 /usr/bin/python3 WORKDIR /workdir -- 2.49.0