Change default user
Some checks failed
Homelab/ansible-playbook-runner/pipeline/head There was a failure building this commit

This commit is contained in:
Jim Nicholson 2022-01-19 21:45:12 -08:00
parent 0f4a6381e1
commit dd96371917

View File

@ -8,9 +8,9 @@ RUN apk add --no-cache python3 py-pip openssl ca-certificates bash git sudo zip
&& apk --no-cache add sshpass openssh-client \
&& apk del build-dependencies
RUN addgroup -S ansible && adduser -S ansible -G ansible
USER ansible
WORKDIR /home/ansible
RUN addgroup -S jenkins && adduser -S jenkins -G jenkins && mkdir -p /home/jenkins/agent
USER jenkins
WORKDIR /home/jenkins/agent
CMD ["ansible-playbook", "--version"]