Skip to content

Instantly share code, notes, and snippets.

@yogesh174
Last active June 7, 2021 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yogesh174/0c36363319c2a10f5d7b5c9b23e13102 to your computer and use it in GitHub Desktop.
Save yogesh174/0c36363319c2a10f5d7b5c9b23e13102 to your computer and use it in GitHub Desktop.
Multi-cloud K8s cluster with Terraform and Ansible
- 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