Changing users when running Molecule in Docker via GitLab CI #4013
-
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.
Replies: 1 comment
-
Ansible did need to be installed somewhere where the |
Beta Was this translation helpful? Give feedback.
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.