Advertisement
Guest User

Untitled

a guest
Apr 24th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. - name: Create instance
  2. hosts: "localhost"
  3. gather_facts: false
  4. user: root
  5. vars:
  6. node_hostname: ansible_inst1
  7. tasks:
  8. - name: launch a new instance
  9. nova_compute:
  10. state: present
  11. login_username: demo
  12. login_password: Password1
  13. login_tenant_name: demo
  14. name: {{node_hostname}}
  15. auth_url: http://controller:35357/v2.0
  16. image_id: 8c54095c-6f30-467c-b3f1-611085167d74
  17. key_name: demo-key
  18. wait_for: 200
  19. flavor_id: 2
  20. nics:
  21. - net-id: fb80b6ab-97e5-41ee-89a8-49d228a6039e
  22. meta:
  23. hostname: {{node_hostname}}
  24. group: ansible_group1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement