communishift: configuration playbook to take project parameter list

Signed-off-by: David Kirwan <dkirwan@redhat.com>
Signed-off-by: Lenka Segura <lsegura@redhat.com>
Signed-off-by: Patrik Polakovic <ppolakov@redhat.com>
This commit is contained in:
David Kirwan 2022-08-11 14:03:04 +01:00
parent 65fdd58252
commit fa8a2f38df
2 changed files with 16 additions and 12 deletions

View file

@ -1,19 +1,22 @@
---
- hosts: localhost
user: root
gather_facts: True
gather_facts: false
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- role: communishift
project_name: communishift-dev
project_description: CommuniShift Administration
appowners:
- dkirwan
- lenkaseg
- patrikp
tasks:
- name: Communishift Role
with_items: "{{ communishift_projects }}"
include_role:
name: communishift
tasks_from: main
apply:
tags:
- create_efs
vars:
communishift_projects:
- communishift-dev-test

View file

@ -1,8 +1,9 @@
---
- include_tasks: create-efs.yml
- name: Hello
- name: Print list of Communishift Projects
ansible.builtin.debug:
msg: "{{ item }}"
with_items: "{{ appowners }}"
with_items: "{{ communishift_projects }}"
run_once: true