Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 1a77e2fd authored by Jean-François HOVINNE's avatar Jean-François HOVINNE
Browse files

fix: Ansible home dir ownership (fixes #4)

parent 490965a5
No related branches found
No related tags found
1 merge request!3fix: Ansible home dir ownership (fixes #4)
...@@ -7,10 +7,11 @@ RUN yum update -y && \ ...@@ -7,10 +7,11 @@ RUN yum update -y && \
yum clean all -y && \ yum clean all -y && \
rm -rf /var/cache/yum rm -rf /var/cache/yum
RUN set -xe \ RUN set -xe && \
&& groupadd -r ${ANSIBLE_USER} \ groupadd -r ${ANSIBLE_USER} && \
&& groupadd -r ${DEPLOY_GROUP} \ groupadd -r ${DEPLOY_GROUP} && \
&& useradd -m -g ${ANSIBLE_USER} ${ANSIBLE_USER} \ useradd -m -g ${ANSIBLE_USER} ${ANSIBLE_USER} && \
&& usermod -aG ${SUDO_GROUP} ${ANSIBLE_USER} \ usermod -aG ${SUDO_GROUP} ${ANSIBLE_USER} && \
&& usermod -aG ${DEPLOY_GROUP} ${ANSIBLE_USER} \ usermod -aG ${DEPLOY_GROUP} ${ANSIBLE_USER} && \
&& sed -i "/^%${SUDO_GROUP}/s/ALL\$/NOPASSWD:ALL/g" /etc/sudoers sed -i "/^%${SUDO_GROUP}/s/ALL\$/NOPASSWD:ALL/g" /etc/sudoers && \
chown -R ${ANSIBLE_USER}:${ANSIBLE_USER} /home/${ANSIBLE_USER}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment