Changing users when running Molecule in Docker via GitLab CI #4013
Answered
by
chriscroome
chriscroome
asked this question in
Q&A
-
I'm running Molecule tests via GitLab CI in Docker containers which have an However I have a PostgreSQL role which has: - name: PostgreSQL info
community.postgresql.postgresql_info:
login_user: postgres
filter:
- databases
- roles
- version
register: postgresql_info
become: true
become_user: postgres I have set: ANSIBLE_SHELL_ALLOW_WORLD_READABLE_TEMP: "1" For GitLab CI to get around on issue but now I have:
Am I correct in thinking that I need to install Ansible to, for example |
Beta Was this translation helpful? Give feedback.
Answered by
chriscroome
Aug 21, 2023
Replies: 1 comment
-
Ansible did need to be installed somewhere where the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chriscroome
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ansible did need to be installed somewhere where the
ansible
user could access it, however in order to get systemd running in the container it has to run as root in any case.