-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Allow specifying python and ansible versions per component (#21…
…)" This reverts commit 66bf915.
- Loading branch information
Showing
4 changed files
with
15 additions
and
73 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
gather_facts: true | ||
gather_facts: false | ||
tasks: | ||
- name: Debug -- list all components to be executed | ||
ansible.builtin.debug: | ||
msg: "{{ item.name }}" | ||
with_items: "{{ lookup('env', 'components') }}" | ||
|
||
- name: Run component | ||
ansible.builtin.include_tasks: _run_component.yml | ||
- name: Test the component by executing it using ansible on the workspace | ||
Check warning on line 11 in converge.yml GitHub Actions / Ansible Lintjinja[spacing]
|
||
ansible.builtin.command: > | ||
ansible-playbook -c local -v -b {{ remote_plugin.arguments }} --extra-vars='{{ remote_plugin.parameters }}' /rsc/plugins/{{ item.name}}/{{ item.path }} | ||
register: ansible_on_workspace | ||
changed_when: "ansible_on_workspace.stdout_lines is not defined or 'changed=0' not in ansible_on_workspace.stdout_lines[-1]" | ||
vars: | ||
remote_plugin: | ||
script_type: Ansible PlayBook | ||
arguments: -i 127.0.0.1, --skip-tags {{ ansible_skip_tags | join(',') }} | ||
parameters: "{{ item.parameters | default({}) | to_json }}" | ||
with_items: "{{ lookup('env', 'components') }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters