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:
parent
65fdd58252
commit
fa8a2f38df
2 changed files with 16 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue