mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
update awx.awx collection to allow remote project. (#12093)
This commit is contained in:
parent
677187a43e
commit
f50501cc2a
@ -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(),
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user