summaryrefslogtreecommitdiff
path: root/base-image/base-image.yml
blob: 84d938f2fd69f9457840d4072617cb2eb38eed91 (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
- 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
  vars:
    hostname: bullseye
    ansible_python_interpreter: /usr/bin/python3