- 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