update awx.awx collection to allow remote project. (#12093)

This commit is contained in:
Sean Sullivan 2022-04-26 14:07:29 -05:00 committed by GitHub
parent 677187a43e
commit f50501cc2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 2 deletions

View File

@ -45,7 +45,7 @@ options:
scm_type:
description:
- Type of SCM resource.
choices: ["manual", "git", "svn", "insights"]
choices: ["manual", "git", "svn", "insights", "archive"]
default: "manual"
type: str
scm_url:
@ -256,7 +256,7 @@ def main():
new_name=dict(),
copy_from=dict(),
description=dict(),
scm_type=dict(choices=['manual', 'git', 'svn', 'insights'], default='manual'),
scm_type=dict(choices=['manual', 'git', 'svn', 'insights', 'archive'], default='manual'),
scm_url=dict(),
local_path=dict(),
scm_branch=dict(),

View File

@ -195,6 +195,20 @@
that:
- result.changed
- name: Set project to remote archive and test that it updates correctly.
project:
name: "{{ project_name3 }}"
organization: Default
scm_type: archive
scm_url: https://github.com/ansible/test-playbooks/archive/refs/tags/1.0.0.tar.gz
wait: true
update_project: true
register: result
- assert:
that:
- result is changed
always:
- name: Delete the test job_template
job_template: