diff --git a/dockerfile b/dockerfile index 109ac2c..d7eee01 100644 --- a/dockerfile +++ b/dockerfile @@ -1,3 +1,5 @@ +ARG TARGETPLATFORM=linux/amd64 + FROM --platform=$TARGETPLATFORM python:3.11-bullseye # Ansible chucks a wobbler without. see: https://github.com/ansible/ansible/issues/78283 @@ -7,6 +9,8 @@ ENV DEBIAN_FRONTEND noninteractive ENV ANSIBLE_PLAYBOOK_DIR=/etc/ansible/playbooks +ENV ANSIBLE_COLLECTIONS_PATHS=/etc/ansible/collections + COPY includes / @@ -48,6 +52,9 @@ RUN apt update \ openssh-client \ git \ sshpass \ + postgresql-common \ + postgresql-client \ + mariadb-client \ && mkdir -p /etc/ansible/roles \ && mkdir -p /etc/ansible/collections \ && mkdir -p /workdir \ @@ -71,12 +78,13 @@ RUN pip install --index-url https://gitlab.com/api/v4/projects/45741845/packages RUN ansible-galaxy collection install \ - awx.awx \ - kubernetes.core \ - # community.general.gitlab_* - community.general \ # ansible.posix.authorized_key for SSH ansible.posix \ + awx.awx \ + # community.general.gitlab_* + community.general \ # docker managment community.docker \ - community.mysql \ No newline at end of file + community.mysql \ + community.postgresql \ + kubernetes.core \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 44dc928..2b8c3ce 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,8 @@ ansible-lint==6.15.0 ansible-runner==2.3.4 # Required for community.general.gitlab_* -python_gitlab==3.14.0 \ No newline at end of file +python_gitlab==3.14.0 +# community.postgresql +psycopg2==2.9.9 +# community.mysql +PyMySQL==1.1.0