We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b162465 commit fd44061Copy full SHA for fd44061
README.md
@@ -132,6 +132,24 @@ ansible nginx -m service -a "name=nginx state=stopped"
132
autoclean: yes
133
```
134
135
+#### Playbook: List Kubernetes Cluster Nodes
136
+
137
+```yml
138
+- name: Kubernetes Cluster Health Check
139
+ hosts: k8s
140
+ become: true
141
+ gather_facts: false
142
+ tasks:
143
+ - name: Checking the Kubernetes Nodes
144
+ shell:
145
+ kubectl get nodes
146
+ register: results
147
148
+ - name: Print the Kubernetes Nodes
149
+ debug:
150
+ msg: "{{ results.stdout.split('\n') }}"
151
+```
152
153
#### Sample Playbooks
154
155
```yaml
0 commit comments