bifrost/playbooks/cleanup-deployment-images.yaml
Julia Kreger 1c486131cd Add playbook to remove deployment images from the system
In the event of redeployments on installations that have been
in-place for some time, it may be necessary to clean the
master_images folder along with the deployment kernel and
ramdisk to ensure that fresh images are downloaded during
the next installation.

Updated troubleshooting documentation to mention availability of
the playbook and the potential case when it may be needed.
2015-04-16 16:21:00 -04:00

11 lines
350 B
YAML

---
- hosts: localhost
connection: local
name: "Removes the master_images folder and deployment kernel/ramdisk for clean redeployments when testing."
sudo: yes
gather_facts: yes
tasks:
- file: path=/tftpboot/master_images state=absent
- file: path="{{deploy_kernel}}" state=absent
- file: path="{{deploy_ramdisk}}" state=absent