You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.6 KiB
YAML
51 lines
1.6 KiB
YAML
---
|
|
#############################################################
|
|
# Creating inventory dynamically for given parameters
|
|
#############################################################
|
|
|
|
- import_playbook: pmci-inventory-cluster.yml
|
|
|
|
#############################################################
|
|
# Creating realms for created inventory
|
|
#############################################################
|
|
|
|
- hosts: "pmci_server_selector"
|
|
serial: "{{ serial_number | default(1) }}"
|
|
gather_facts: false
|
|
connection: local
|
|
|
|
pre_tasks:
|
|
- name: "Import autodiscover pre-tasks"
|
|
import_tasks: tasks/autodiscover_pre_tasks.yml
|
|
become: false
|
|
tags:
|
|
- always
|
|
|
|
- name: "Setting default variables pre-tasks"
|
|
import_tasks: tasks/pmci_set_default_variables.yml
|
|
become: false
|
|
tags:
|
|
- always
|
|
|
|
- name: "Setting pmci connect variables"
|
|
ansible.builtin.set_fact:
|
|
connect_client_admin_password: "{{ data.connect.admin.password }}" # legacy paramater, backwards compatibility
|
|
when:
|
|
- data.connect is defined
|
|
|
|
- name: "Setting pmci wordpress variables"
|
|
ansible.builtin.set_fact:
|
|
connect_wordpress_admin_password: "{{ data.wordpress.admin.password }}" # legacy paramater, backwards compatibility
|
|
when:
|
|
- data.wordpress is defined
|
|
|
|
roles:
|
|
- role: connect_realm
|
|
when: '"connect" in group_names'
|
|
|
|
#############################################################
|
|
# Sending smardigo management message to process
|
|
#############################################################
|
|
|
|
- import_playbook: pmci-callback.yml
|