mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 02:01:01 -03:30
update awx.awx collection to allow remote project. (#12093)
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user