Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import getpass
- import requests
- import json
- import urllib3
- from customFuncs import *
- from ansible.module_utils.basic import *
- urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
- def createVM():
- fields = {"user": {"required":True, "type": "str"},}
- module = AnsibleModule(argument_spec=fields)
- logIn("server1", module.params.get('user'), getpass.getpass())
- def main():
- createVM()
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement