mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 18:36:53 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user