Last active
June 7, 2021 13:19
-
-
Save yogesh174/d1f7085e85d658fc7d6ea048ac3301fe 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: gcp-k8s-nodes | |
gather_facts: no | |
tasks: | |
- name: "Wait for system to become reachable" | |
wait_for_connection: | |
- hosts: gcp-k8s-nodes | |
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