tripleo-quickstart-extras/playbooks/cleanup-destructive.yml
Matt Young 44fbf3ea07 Update exported role location
When NFO is pulled into a quickstart invocation, quickstart is looking
for roles at:

usr/local/share/ansible/roles

The existing implementation (fixed by this commit) parks things here:

usr/local/share

and is not found.

This commit also updates the exported playbook (cleanup-destructive)
to invoke the role as "tripleo-cleanup-nfo" and exports the role to

usr/local/share/ansible/roles/tripleo-cleanup-nfo

Change-Id: I1be4ee1a38e1d6f09fc8c73c46e155fd921078a0
2016-06-17 10:46:24 -04:00

18 lines
421 B
YAML

---
- name: Add virthost to inventory
hosts: localhost
tasks:
- name: Add the virthost to the inventory
add_host:
name: "{{virthost}}"
groups: "virthost"
ansible_fqdn: "{{ virthost }}"
ansible_user: "root"
ansible_host: "{{ virthost }}"
- name: Clean up tripleo packages and libvirt
hosts: virthost
gather_facts: no
roles:
- { role: tripleo-cleanup-nfo }