diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-07-11 15:10:33 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-07-11 15:10:33 +0300 |
commit | e25a1fa2d59d50ab5630f159a15dbd053e69f6c9 (patch) | |
tree | 935a1a2f715bb49a90ffa99d9bc8df09caf8b406 | |
parent | 7d15742c6ba6d3a5f79d5b3466ebaeea28b2e23d (diff) | |
download | ansibleness-e25a1fa2d59d50ab5630f159a15dbd053e69f6c9.tar.gz |
fix: install sudo on base image, allow debian user to use sudo
Sponsored-by: author
-rwxr-xr-x | ansible/stamina-vms.sh (renamed from ansible/exolobe5-vms.sh) | 0 | ||||
-rw-r--r-- | base-image/base-image.yml | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ansible/exolobe5-vms.sh b/ansible/stamina-vms.sh index 1f64ff5..1f64ff5 100755 --- a/ansible/exolobe5-vms.sh +++ b/ansible/stamina-vms.sh diff --git a/base-image/base-image.yml b/base-image/base-image.yml index 3a14b62..84d938f 100644 --- a/base-image/base-image.yml +++ b/base-image/base-image.yml @@ -10,7 +10,15 @@ - cloud-init - openssh-server - locales-all + - sudo install_recommends: no + - copy: + content: | + debian ALL=(ALL:ALL) NOPASSWD: ALL + dest: /etc/sudoers.d/debian + owner: root + group: root + mode: 0600 - shell: | apt clean vars: |