Created
June 19, 2022 18:21
-
-
Save amaurybsouza/7a0cdcaf878c0b8f1048ebc03ccf1226 to your computer and use it in GitHub Desktop.
Ansible_playbook_tasks
This file contains hidden or 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
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