From a88f92e88e8b4e5c39e5fa946385253e2807074d Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Thu, 28 Aug 2014 22:53:49 +0000 Subject: [PATCH] Move library under playbooks for simplicity Ansible will always load modules from a directory called library that is off the root directory where playbooks are. Change-Id: Idd9643cb3b39f4d1bb2ef20737f9d2ef861525ff --- README.rst | 3 +-- {library/cloud => playbooks/library}/nova_rebuild | 0 {library/system => playbooks/library}/service_facts | 0 3 files changed, 1 insertion(+), 2 deletions(-) rename {library/cloud => playbooks/library}/nova_rebuild (100%) rename {library/system => playbooks/library}/service_facts (100%) diff --git a/README.rst b/README.rst index 6d43f51..61ffacd 100644 --- a/README.rst +++ b/README.rst @@ -84,13 +84,12 @@ subsituted into place. Current variables for passing the image variables in are nova_compute_rebuild_image_id and controller_rebuild_image_id which are passed into the chained playbook. - ansible-playbook -vvvv -u heat-admin -M library/cloud -i plugins/inventory/heat.py -e nova_compute_rebuild_image_id=1ae9fe6e-c0cc-4f62-8e2b-1d382b20fdcb -e controller_rebuild_image_id=2432dd37-a072-463d-ab86-0861bb5f36cc -e controllermgmt_rebuild_image_id=2432dd37-a072-463d-ab86-0861bb5f36cc -e swift_storage_rebuild_image_id=2432dd37-a072-463d-ab86-0861bb5f36cc playbooks/update_cloud.yml + ansible-playbook -vvvv -u heat-admin -i plugins/inventory/heat.py -e nova_compute_rebuild_image_id=1ae9fe6e-c0cc-4f62-8e2b-1d382b20fdcb -e controller_rebuild_image_id=2432dd37-a072-463d-ab86-0861bb5f36cc -e controllermgmt_rebuild_image_id=2432dd37-a072-463d-ab86-0861bb5f36cc -e swift_storage_rebuild_image_id=2432dd37-a072-463d-ab86-0861bb5f36cc playbooks/update_cloud.yml Below, we break down the above command so you can see what each part does: * -vvvv - Make Ansible very verbose. * -u heat-admin - Utilize the heat-admin user to connect to the remote machine. - * -M library/cloud - Sets the module location so the modules load for the playbooks to execute. * -i plugins/inventory/heat.py - Sets the inventory plugin. * -e nova_compute_rebuild_image_id=1ae9fe6e-c0cc-4f62-8e2b-1d382b20fdcb - Sets the compute node image ID. * -e controller_rebuild_image_id=2432dd37-a072-463d-ab86-0861bb5f36cc - Sets the controller node image ID. diff --git a/library/cloud/nova_rebuild b/playbooks/library/nova_rebuild similarity index 100% rename from library/cloud/nova_rebuild rename to playbooks/library/nova_rebuild diff --git a/library/system/service_facts b/playbooks/library/service_facts similarity index 100% rename from library/system/service_facts rename to playbooks/library/service_facts