diff --git a/nuke.yml b/nuke.yml index 17bdf66..c01f505 100644 --- a/nuke.yml +++ b/nuke.yml @@ -1,7 +1,9 @@ --- - hosts: all + become: True name: Dummy to gather facts tasks: + - shell: "systemctl stop docker" - name: Stop docker service systemd: name: docker @@ -10,6 +12,7 @@ shell: "rm -rf /srv" - hosts: cinder-storage + become: True tasks: - name: wipe cinder storage. shell: "dd if=/dev/zero of={{ storage_volume }} bs=1M count=1 && sync"