diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-04-24 09:17:48 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-04-24 09:17:48 +0300 |
commit | f1a3774c0fc2181877fd4d3798482d661b876775 (patch) | |
tree | 3bd936081f6e18f6d5c846c4d55643af8c9cf64a /roles | |
parent | a745a4e62fa068256f8a45be4b9f006a832d8216 (diff) | |
download | debian-ansible-f1a3774c0fc2181877fd4d3798482d661b876775.tar.gz |
fix: allow root to use sudo
Sponsored-by: author
Diffstat (limited to 'roles')
-rw-r--r-- | roles/sane_debian_system/tasks/apt.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/sane_debian_system/tasks/apt.yml b/roles/sane_debian_system/tasks/apt.yml index 3f1fd5e..bb9ccc2 100644 --- a/roles/sane_debian_system/tasks/apt.yml +++ b/roles/sane_debian_system/tasks/apt.yml @@ -48,6 +48,13 @@ name: - sudo +- name: "allow root to use sudo" + copy: + content: | + liw ALL=(ALL:ALL) NOPASSWD: ALL + dest: /etc/sudoers.d/root + mode: 0600 + - name: additional sources.list.d/* with_items: "{{ sane_debian_system_sources_lists }}" apt_repository: |