updated to debian 11, include non-free and contrib, improved sudo-stuff

This commit is contained in:
Alexander Gabriel 2021-10-08 17:09:50 +02:00
parent ae42fb0f97
commit 6c5fb8c584
4 changed files with 14 additions and 3 deletions

1
files/sudoers Normal file
View File

@ -0,0 +1 @@
alegab ALL=(ALL:ALL) NOPASSWD:ALL

View File

@ -69,6 +69,11 @@
src: files/authorized_keys
dest: /opt/ansiblepackages/debianunattended/isofiles/authorized_keys
- name: copy sudoers file
copy:
src: files/sudoers
dest: /opt/ansiblepackages/debianunattended/isofiles/sudoers
- name: compress isofiles/install.amd/initrd
command: gzip isofiles/install.amd/initrd
args:

View File

@ -1,4 +1,9 @@
#!/bin/sh
mkdir -p /target/root/.ssh
cp /cdrom/authorized_keys /target/root/.ssh
chmod 700 /target/root/.ssh -R
chmod 700 /target/root/.ssh -R
mkdir -p /target/home/{{ debianunattended_username }}/.ssh
cp /cdrom/authorized_keys /target/home/{{ debianunattended_username }}/.ssh
chown 1000:1000 /target/home/{{ debianunattended_username }}/.ssh -R
chmod 700 /target/home/{{ debianunattended_username }}/.ssh -R
cp /cdrom/sudoers /target/etc/sudoers.d/{{ debianunattended_username }}

View File

@ -316,8 +316,8 @@ d-i partman/confirm_nooverwrite boolean true
### Apt setup
# You can choose to install non-free and contrib software.
#d-i apt-setup/non-free boolean true
#d-i apt-setup/contrib boolean true
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
# Uncomment this if you don't want to use a network mirror.
#d-i apt-setup/use_mirror boolean false
# Select which update services to use; define the mirrors to be used.