Last active
April 15, 2020 17:41
-
-
Save adduc/4b4784599549aac3222ebe6c6c9d9fb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
# https://cloudinit.readthedocs.io/en/latest/topics/modules.html#users-and-groups | |
users: | |
- name: ansible | |
uid: 999 | |
shell: /bin/bash | |
sudo: ['ALL=(ALL) NOPASSWD:ALL'] | |
ssh_authorized_keys: | |
- '[REDACTED]' | |
# Only needed if we go with RHEL/CentOS | |
write_files: | |
- path: /etc/sudoers.d/999-ansible-cloud-init-requiretty | |
permissions: 440 | |
content: | | |
Defaults:ansible !requiretty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment