blob: 9033b5ae0f5e2b95f138a7f873c94e61b0d76833 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
- hosts: image
tasks:
- file:
path: /etc/machine-id
state: absent
- apt:
name:
- acpid
- acpi-support-base
- 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
sed -i 's/^root:[^:]*:/root::/' /etc/shadow /etc/passwd
rm -f /etc/systemd/network/10-cloud-init-eth0.network
vars:
hostname: bullseye
ansible_python_interpreter: /usr/bin/python3
|