Last active
June 7, 2021 13:20
-
-
Save yogesh174/938673e0973f6869174b82cd514fdbe9 to your computer and use it in GitHub Desktop.
Multi-cloud K8s cluster with Terraform and Ansible
This file contains 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
- name: "Wait till nodes are reachable" | |
hosts: azure-k8s-nodes | |
gather_facts: no | |
tasks: | |
- name: "Wait for system to become reachable" | |
wait_for_connection: | |
- hosts: azure-k8s-nodes | |
gather_facts: no | |
tasks: | |
- name: "Get the env var" | |
shell: "source /etc/profile.d/terraform.sh; echo $IS_CONFIGURED" | |
args: | |
executable: /bin/bash | |
register: configured | |
- name: "Include require-config play" | |
import_playbook: "require-config.yaml" | |
when: configured.stdout | default(0) != '1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment