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
|
- hosts: localhost
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- "/srv/private/ansible/vars.yml"
|
- "/srv/private/ansible/vars.yml"
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
roles:
|
tasks:
|
||||||
- role: communishift
|
- name: Communishift Role
|
||||||
project_name: communishift-dev
|
with_items: "{{ communishift_projects }}"
|
||||||
project_description: CommuniShift Administration
|
include_role:
|
||||||
appowners:
|
name: communishift
|
||||||
- dkirwan
|
tasks_from: main
|
||||||
- lenkaseg
|
apply:
|
||||||
- patrikp
|
tags:
|
||||||
|
- create_efs
|
||||||
|
vars:
|
||||||
|
communishift_projects:
|
||||||
|
- communishift-dev-test
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
---
|
---
|
||||||
- include_tasks: create-efs.yml
|
- include_tasks: create-efs.yml
|
||||||
|
|
||||||
- name: Hello
|
- name: Print list of Communishift Projects
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "{{ item }}"
|
msg: "{{ item }}"
|
||||||
with_items: "{{ appowners }}"
|
with_items: "{{ communishift_projects }}"
|
||||||
|
run_once: true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue