feat(tooling): added a new molecule:purge
task
This commit is contained in:
parent
437e6728e6
commit
846f5e693e
1 changed files with 12 additions and 1 deletions
13
Taskfile.yml
13
Taskfile.yml
|
@ -87,7 +87,6 @@ tasks:
|
||||||
DOCKERFILE: '{{.ITEM}}'
|
DOCKERFILE: '{{.ITEM}}'
|
||||||
DOCKER_CONTEXT: images
|
DOCKER_CONTEXT: images
|
||||||
IMAGE_TAG: '{{.ITEM | splitList "/" | last | replace "Dockerfile-" ""}}'
|
IMAGE_TAG: '{{.ITEM | splitList "/" | last | replace "Dockerfile-" ""}}'
|
||||||
|
|
||||||
docker:build:image:
|
docker:build:image:
|
||||||
internal: true
|
internal: true
|
||||||
sources:
|
sources:
|
||||||
|
@ -119,6 +118,18 @@ tasks:
|
||||||
dir: '{{.MOLECULE_DIR}}'
|
dir: '{{.MOLECULE_DIR}}'
|
||||||
cmd: '{{.PYTHON_WRAPPER}} molecule {{.CLI_ARGS}}'
|
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:*:
|
ansible:new:role:*:
|
||||||
desc: create a new role for the specified collection
|
desc: create a new role for the specified collection
|
||||||
vars:
|
vars:
|
||||||
|
|
Loading…
Add table
Reference in a new issue