Skip to content

Commit

Permalink
Setup multiple (selectable) demos (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
l3acon authored Oct 16, 2023
1 parent 2ee334f commit 5f8bd89
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions multi_select_setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
- name: Setup multiple just more than one demo
hosts: localhost
gather_facts: false
vars:
launch_jobs:
name: "SETUP"
wait: true
tasks:
- name: Build controller launch jobs
ansible.builtin.set_fact:
controller_launch_jobs: "{{ (controller_launch_jobs | d([]))

Check warning on line 12 in multi_select_setup.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

jinja[spacing]

Jinja2 spacing could be improved: {{ (controller_launch_jobs | d([])) + \[launch_jobs | combine( {'extra_vars': { 'demo': item }})] }} -> {{ (controller_launch_jobs | d([])) + \[launch_jobs | combine({'extra_vars': {'demo': item}})] }}
+ [launch_jobs | combine( {'extra_vars': { 'demo': item }})] }}"
loop: "{{ demos }}"

- name: Default Components
ansible.builtin.include_role:
name: "redhat_cop.controller_configuration.job_launch"

0 comments on commit 5f8bd89

Please sign in to comment.