Commit 6f3c4241 authored by Ioannis Tsafaras's avatar Ioannis Tsafaras

Minor path fix, reformat code

parent 0a716605
import inspect
import os
import tempfile
import ansible
......@@ -73,7 +74,6 @@ class Manager:
# print self.ansible_inventory.groups_list()
return self.ansible_inventory
def run_playbook(self, playbook_file, tags=None):
......@@ -103,6 +103,7 @@ if __name__ == "__main__":
'pk': 'Dummy pk',
u'subnet': {u'cidr': u'', u'gateway_ip': u'', u'id': u'142761'}}
script_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
manager = Manager(response)
# manager.run_playbook(playbook_file=script_path + "/../../ansible/playbooks/testinventory.yml", tags=['hosts'])
......@@ -15,7 +15,6 @@ if __name__ == "__main__":
parser.add_argument('--name', type=str, dest='name', default="to mikro debian sto livadi")
parser.add_argument('--slaves', type=int, dest='slaves', default=2)
parser.add_argument('--vcpus_master', type=int, dest='vcpus_master', default=4)
parser.add_argument('--vcpus_slave', type=int, dest='vcpus_slave', default=4)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment