mirror of
https://github.com/ansible/awx.git
synced 2026-02-04 19:18:13 -03:30
Merge pull request #5468 from Spredzy/playbook_modern_syntax
ansible playbook: move to modern syntax Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -15,7 +15,9 @@
|
|||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: remove build artifacts
|
- name: remove build artifacts
|
||||||
file: path="{{item}}" state=absent
|
file:
|
||||||
|
path: '{{item}}'
|
||||||
|
state: absent
|
||||||
register: result
|
register: result
|
||||||
with_items: "{{cleanup_dirs}}"
|
with_items: "{{cleanup_dirs}}"
|
||||||
until: result is succeeded
|
until: result is succeeded
|
||||||
|
|||||||
@@ -115,7 +115,8 @@
|
|||||||
- update_insights
|
- update_insights
|
||||||
|
|
||||||
- name: Repository Version
|
- name: Repository Version
|
||||||
debug: msg="Repository Version {{ scm_version }}"
|
debug:
|
||||||
|
msg: "Repository Version {{ scm_version }}"
|
||||||
tags:
|
tags:
|
||||||
- update_git
|
- update_git
|
||||||
- update_hg
|
- update_hg
|
||||||
@@ -130,7 +131,8 @@
|
|||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: detect requirements.yml
|
- name: detect requirements.yml
|
||||||
stat: path={{project_path|quote}}/roles/requirements.yml
|
stat:
|
||||||
|
path: '{{project_path|quote}}/roles/requirements.yml'
|
||||||
register: doesRequirementsExist
|
register: doesRequirementsExist
|
||||||
|
|
||||||
- name: fetch galaxy roles from requirements.yml
|
- name: fetch galaxy roles from requirements.yml
|
||||||
@@ -149,7 +151,8 @@
|
|||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: detect collections/requirements.yml
|
- name: detect collections/requirements.yml
|
||||||
stat: path={{project_path|quote}}/collections/requirements.yml
|
stat:
|
||||||
|
path: '{{project_path|quote}}/collections/requirements.yml'
|
||||||
register: doesCollectionRequirementsExist
|
register: doesCollectionRequirementsExist
|
||||||
|
|
||||||
- name: fetch galaxy collections from collections/requirements.yml
|
- name: fetch galaxy collections from collections/requirements.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user