Skip to content

Instantly share code, notes, and snippets.

@mancdaz
Last active August 29, 2015 14:06
Show Gist options
  • Save mancdaz/b94409fbc4933190eee8 to your computer and use it in GitHub Desktop.
Save mancdaz/b94409fbc4933190eee8 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /root/ansible-lxc-rpc/rpc_deployment
ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/setup/destroy-containers.yml
ansible hosts -m shell -a 'rm -fr /openstack'
ansible hosts -m shell -a 'rm -fr /var/lib/lxc/*'
ansible hosts -m shell -a 'lvremove lxc -f'
rm /etc/rpc_deploy/rpc_inventory.json
ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/setup/host-setup.yml
ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/infrastructure/haproxy-install.yml
ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/infrastructure/infrastructure-setup.yml
ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/openstack/openstack-setup.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment