diff --git a/roles/apcupsd/defaults/main.yml b/roles/apcupsd/defaults/main.yml index 16e23db598..d32eee9bb1 100644 --- a/roles/apcupsd/defaults/main.yml +++ b/roles/apcupsd/defaults/main.yml @@ -22,3 +22,4 @@ apcupsd_annoy: 300 apcupsd_annoydelay: 60 apcupsd_nologon: "disable" apcupsd_killdelay: 0 +apcupsd_device: "/dev/ttyUSB0" diff --git a/roles/apcupsd/molecule/default/molecule.yml b/roles/apcupsd/molecule/default/molecule.yml index e9b16b82cc..ef266baed9 100644 --- a/roles/apcupsd/molecule/default/molecule.yml +++ b/roles/apcupsd/molecule/default/molecule.yml @@ -4,3 +4,13 @@ provisioner: group_vars: all: apcupsd_enabled: true + apcupsd_data_directory: /tmp/apcupsd +platforms: + - name: instance + image: geerlingguy/docker-ubuntu2204-ansible:latest + volumes: + - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /var/run/docker.sock:/var/run/docker.sock + - /tmp:/tmp:rw + privileged: true + pre_build_image: true