mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 21:30:22 -07:00
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:
parent
392d9e2aa6
commit
b2d4eeb293
3 changed files with 241 additions and 0 deletions
|
@ -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'),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue