blob: d53df263e245a6cbd9934192280aba42cee38877 (
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
|
- 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
vars:
hostname: bullseye
ansible_python_interpreter: /usr/bin/python3
|