Ansible Tower job_launch module (#22148)

* Ansible Tower job_launch module

* Added RETURN documentation and fixed import locations

* remove superfluos required attributes, make tags a list, and fix some typos

* only join tags if they are actually a list

* use isinstance instead of type, cleanup imports
This commit is contained in:
Wayne Witzel III 2017-03-01 14:57:35 -05:00 committed by John R Barker
commit b2d4eeb293
3 changed files with 241 additions and 0 deletions

View file

@ -75,3 +75,13 @@ def tower_check_mode(module):
module.exit_json(changed=True, tower_version='{0}'.format(result['version']))
except (exc.ServerError, exc.ConnectionError, exc.BadRequest) as excinfo:
module.fail_json(changed=False, msg='Failed check mode: {0}'.format(excinfo))
def tower_argument_spec():
return dict(
tower_host = dict(),
tower_username = dict(),
tower_password = dict(no_log=True),
tower_verify_ssl = dict(type='bool', default=True),
tower_config_file = dict(type='path'),
)