Last active
August 29, 2015 14:06
-
-
Save mancdaz/b94409fbc4933190eee8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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