feat(tooling): added a new molecule:purge task

This commit is contained in:
NaeiKinDus 2024-12-30 00:00:00 +00:00
parent 437e6728e6
commit 846f5e693e

View file

@ -87,7 +87,6 @@ tasks:
DOCKERFILE: '{{.ITEM}}'
DOCKER_CONTEXT: images
IMAGE_TAG: '{{.ITEM | splitList "/" | last | replace "Dockerfile-" ""}}'
docker:build:image:
internal: true
sources:
@ -119,6 +118,18 @@ tasks:
dir: '{{.MOLECULE_DIR}}'
cmd: '{{.PYTHON_WRAPPER}} molecule {{.CLI_ARGS}}'
molecule:purge:
desc: purge libvirtd and reset firewall rules
vars:
VIRSH_CONNECT: '{{.VIRSH_CONNECT | default "qemu:///system"}}'
cmds:
- ./scripts/purge_virsh.sh
- task: 'molecule'
vars:
CLI_ARGS: 'destroy'
- sudo systemctl restart nftables.service
- sudo systemctl restart libvirtd.service
ansible:new:role:*:
desc: create a new role for the specified collection
vars: