Created
November 6, 2018 16:07
-
-
Save maleck13/e0fad09b56e65fe7b09fb75f87b300c6 to your computer and use it in GitHub Desktop.
custom.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: master | |
remote_user: root | |
tasks: | |
- name: Retrieve cluster route subdomain | |
slurp: | |
src: "{{ eval_openshift_master_config_path }}" | |
register: openshift_master_config | |
become: yes | |
- set_fact: | |
oc_apps_domain: "{{ (openshift_master_config['content'] | b64decode | from_yaml)['routingConfig']['subdomain'] }}" | |
## based on var in inventories/group_vars/all/customisation.yaml | |
- name: Clean up any previous customisations | |
file: | |
state: absent | |
path: "/tmp/{{item.name}}" | |
loop: "{{customisation_repos}}" | |
- hosts: local | |
tasks: | |
- name: Clone customisation repos | |
git: | |
repo: '{{item.repo}}' | |
dest: /tmp/{{item.name}} | |
loop: "{{customisation_repos}}" | |
- name: Execute customisation playbook | |
import_playbook: "/tmp/example-custom-walkthrough/installation/install.yaml" | |
#loop: "{{customisation_repos}}" | |
#for each repo import playbook and execute |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment