Last active
June 7, 2021 13:14
-
-
Save yogesh174/0c36363319c2a10f5d7b5c9b23e13102 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: aws-k8s-nodes | |
gather_facts: no | |
tasks: | |
- name: "Wait for system to become reachable" | |
wait_for_connection: | |
- hosts: aws-k8s-nodes | |
tasks: | |
- name: "Get the env var" | |
shell: "echo $IS_CONFIGURED" | |
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