mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-19 19:46:38 +08:00
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
---
|
|
- hosts: localhost
|
|
user: root
|
|
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
|
|
|
|
tasks:
|
|
- name: Install the communishift packages
|
|
ansible.builtin.package:
|
|
name: "{{ communishift_package }}"
|
|
state: present
|
|
with_items: "{{ communishift_package_list }}"
|
|
loop_control:
|
|
loop_var: communishift_package
|
|
|
|
- name: Communishift Role
|
|
include_role:
|
|
name: communishift
|
|
tasks_from: deploy-communishift-authorization-operator
|
|
apply:
|
|
tags:
|
|
- deploy-operators
|
|
|
|
- name: Communishift Role
|
|
with_items: "{{ communishift_projects }}"
|
|
include_role:
|
|
name: communishift
|
|
tasks_from: main
|
|
apply:
|
|
tags:
|
|
- create_efs
|
|
loop: "{{ lookup('dict', communishift_projects) }}"
|
|
vars:
|
|
communishift_package_list:
|
|
- python3-kubernetes
|
|
- python3-boto3
|