From 7b1c0401711e17dcd7c3cdc6a408da468bd951c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Tom=C3=A1=C5=A1ek?= Date: Mon, 21 Oct 2024 12:43:05 +0200 Subject: [PATCH] adds support for debian fixes #10 --- .github/workflows/ansible.yml | 2 ++ meta/main.yml | 5 +++++ molecule/default/molecule.yml | 18 ++++++++++++++++++ vars/debian.yml | 5 +++++ 4 files changed, 30 insertions(+) create mode 100644 vars/debian.yml diff --git a/.github/workflows/ansible.yml b/.github/workflows/ansible.yml index b31a5e3..62977c9 100644 --- a/.github/workflows/ansible.yml +++ b/.github/workflows/ansible.yml @@ -28,6 +28,8 @@ jobs: - archlinux - ubuntu-focal - ubuntu-jammy + - debian-bullseye + - debian-bookworm steps: - uses: actions/checkout@v4 diff --git a/meta/main.yml b/meta/main.yml index e52b0bf..fcdc96d 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -23,6 +23,11 @@ galaxy_info: - focal - jammy + - name: Debian + versions: + - bookworm + - bullseye + galaxy_tags: - ntp - systemd diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 376a334..f0be9fc 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -32,6 +32,24 @@ platforms: privileged: yes pre_build_image: yes + - name: debian-bullseye + image: geerlingguy/docker-debian11-ansible + command: ${MOLECULE_DOCKER_COMMAND:-""} + volumes: + - /sys/fs/cgroup:/sys/fs/cgroup:rw + cgroupns_mode: host + privileged: yes + pre_build_image: yes + + - name: debian-bookworm + image: geerlingguy/docker-debian12-ansible + command: ${MOLECULE_DOCKER_COMMAND:-""} + volumes: + - /sys/fs/cgroup:/sys/fs/cgroup:rw + cgroupns_mode: host + privileged: yes + pre_build_image: yes + provisioner: name: ansible inventory: diff --git a/vars/debian.yml b/vars/debian.yml new file mode 100644 index 0000000..259a9a6 --- /dev/null +++ b/vars/debian.yml @@ -0,0 +1,5 @@ +--- + +__systemd_timesyncd_package: systemd-timesyncd + +...