You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
credential rollover playbooks - admin access to experiment #8
- name: Add {{ sudo_user }} user
user:
name: "practable"
groups: sudo
append: true
state: present
createhome: true
- name: Make sudo without password for practable user
copy:
dest: /etc/sudoers.d/80-ansible-sudo-user
content: "practable ALL=(ALL) NOPASSWD:ALL"
mode: 0440
- name: Set up authorized keys for the practable user
authorized_key: user=practable key="{{item}}"
with_file:
- {{EXPT_SECRETS}}/expt_rsa.pub
Note we'll want to use a modified version of the jump-playbook command to test this on a single host first, but jump-playbook does not yet pass the --limit option as referenced here:
Activity