Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import getpass
  4. import requests
  5. import json
  6. import urllib3
  7. from customFuncs import *
  8. from ansible.module_utils.basic import *
  9.  
  10. urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
  11.  
  12. def createVM():
  13. fields = {"user": {"required":True, "type": "str"},}
  14. module = AnsibleModule(argument_spec=fields)
  15.  
  16. logIn("server1", module.params.get('user'), getpass.getpass())
  17.  
  18. def main():
  19. createVM()
  20.  
  21. if __name__ == '__main__':
  22. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement