diff --git a/Taskfile.yml b/Taskfile.yml index 015574c..12420bf 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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: