We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was looking at this exapmpe. I can fork and PR if you want. https://molecule.readthedocs.io/en/latest/examples.html
# Create ansibleuser with sudo permissions and membership inDEPLOY_GROUP ENV ANSIBLE_USER=ansible SUDO_GROUP=sudo DEPLOY_GROUP=deployer RUN set -xe \ && groupadd -r ${ANSIBLE_USER} \ && groupadd -r ${DEPLOY_GROUP} \ && useradd -m -g ${ANSIBLE_USER} ${ANSIBLE_USER} \ && usermod -aG ${SUDO_GROUP} ${ANSIBLE_USER} \ && usermod -aG ${DEPLOY_GROUP} ${ANSIBLE_USER} \ && sed -i "/^%${SUDO_GROUP}/s/ALL\$/NOPASSWD:ALL/g" /etc/sudoers
# Create
user with sudo permissions and membership in
ENV ANSIBLE_USER=ansible SUDO_GROUP=sudo DEPLOY_GROUP=deployer RUN set -xe \ && groupadd -r ${ANSIBLE_USER} \ && groupadd -r ${DEPLOY_GROUP} \ && useradd -m -g ${ANSIBLE_USER} ${ANSIBLE_USER} \ && usermod -aG ${SUDO_GROUP} ${ANSIBLE_USER} \ && usermod -aG ${DEPLOY_GROUP} ${ANSIBLE_USER} \ && sed -i "/^%${SUDO_GROUP}/s/ALL\$/NOPASSWD:ALL/g" /etc/sudoers
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was looking at this exapmpe. I can fork and PR if you want.
https://molecule.readthedocs.io/en/latest/examples.html
# Create
ansibleuser with sudo permissions and membership in
DEPLOY_GROUPENV ANSIBLE_USER=ansible SUDO_GROUP=sudo DEPLOY_GROUP=deployer RUN set -xe \ && groupadd -r ${ANSIBLE_USER} \ && groupadd -r ${DEPLOY_GROUP} \ && useradd -m -g ${ANSIBLE_USER} ${ANSIBLE_USER} \ && usermod -aG ${SUDO_GROUP} ${ANSIBLE_USER} \ && usermod -aG ${DEPLOY_GROUP} ${ANSIBLE_USER} \ && sed -i "/^%${SUDO_GROUP}/s/ALL\$/NOPASSWD:ALL/g" /etc/sudoers
The text was updated successfully, but these errors were encountered: