Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amaurybsouza/7a0cdcaf878c0b8f1048ebc03ccf1226 to your computer and use it in GitHub Desktop.
Save amaurybsouza/7a0cdcaf878c0b8f1048ebc03ccf1226 to your computer and use it in GitHub Desktop.
Ansible_playbook_tasks
gather_facts: false
tasks:
- name: Checking the Kubernetes Nodes
shell:
kubectl get nodes
register: results
- name: Print the Kubernetes Nodes
debug:
msg: "{{ results.stdout.split('\n') }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment