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
2 changed files with 16 additions and 2 deletions

View File

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

View File

@@ -195,6 +195,20 @@
that: that:
- result.changed - 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: always:
- name: Delete the test job_template - name: Delete the test job_template
job_template: job_template: