37 lines
1,007 B
YAML
37 lines
1,007 B
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: Configure the communishift virtualenv
|
|
ansible.builtin.pip:
|
|
name: "{{ communishift_package }}"
|
|
with_items: "{{ communishift_package_list }}"
|
|
loop_control:
|
|
loop_var: communishift_package
|
|
|
|
- name: Communishift Retrieve FASJSON data
|
|
include_role:
|
|
name: communishift
|
|
tasks_from: retrieve-communishift-admin-data
|
|
|
|
- name: Communishift Cluster Cleanup Tasks
|
|
with_items: "{{ communishift_projects }}"
|
|
include_role:
|
|
name: communishift
|
|
tasks_from: cleanup-administration-tasks
|
|
apply:
|
|
tags:
|
|
- cleanup-administration-tasks
|
|
loop: "{{ lookup('dict', communishift_projects) }}"
|
|
|
|
vars:
|
|
communishift_package_list:
|
|
- kubernetes
|
|
- boto3
|