Cleanup network namespaces (vxlans)
This commit is contained in:
parent
3369b5d9d9
commit
e9c62529ad
7
nuke.yml
7
nuke.yml
|
@ -2,7 +2,7 @@
|
|||
# This playbook will reset the instalation to facilitate a new installation.
|
||||
# All data is lost!
|
||||
- hosts: all
|
||||
become: True
|
||||
become: true
|
||||
name: Dummy to gather facts
|
||||
tasks:
|
||||
- name: Stop docker service
|
||||
|
@ -13,11 +13,14 @@
|
|||
state: stopped
|
||||
- name: remove volumes
|
||||
shell: "rm -rf /srv"
|
||||
- name: remove network namespaces
|
||||
shell: "rm /var/run/netns/*"
|
||||
ignore_errors: true
|
||||
|
||||
|
||||
- hosts: nova-compute
|
||||
gather_facts: false
|
||||
become: True
|
||||
become: true
|
||||
tasks:
|
||||
- name: kill all vm's
|
||||
shell: "for machine in $(virsh list --uuid ); do virsh destroy $machine ; done"
|
||||
|
|
Loading…
Reference in New Issue