X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Froles%2Fdebian-sudo%2Ftasks%2Fmain.yml;h=c9bea00b85a00b44bc2e9a98a74f01144e8ca9b0;hb=7cd26fff474f13bf4f6993547ec23773509f8820;hp=05544b1a7c1d7d528bfdec4e55c7100da6617326;hpb=204a50bd1d0148ff845cf66773e65c5ec737eb82;p=ansible.git diff --git a/playbooks/roles/debian-sudo/tasks/main.yml b/playbooks/roles/debian-sudo/tasks/main.yml index 05544b1..c9bea00 100644 --- a/playbooks/roles/debian-sudo/tasks/main.yml +++ b/playbooks/roles/debian-sudo/tasks/main.yml @@ -5,13 +5,15 @@ name: sudo state: latest update_cache: yes + - name: Add user phd to group sudo become: true user: name: phd append: yes groups: sudo -- name: Allow passwordless operations + +- name: Allow passwordless operations for phd become: true copy: content: 'phd ALL=(ALL:ALL) NOPASSWD: ALL'