Changes between Version 12 and Version 13 of GEC21Agenda/ScalingUp/Procedure/Appendix
- Timestamp:
- 05/27/15 16:02:38 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEC21Agenda/ScalingUp/Procedure/Appendix
v12 v13 115 115 #!sh 116 116 $ ansible -i inventory all -m ping 117 client| success >> {117 server-1 | success >> { 118 118 "changed": false, 119 119 "ping": "pong" 120 120 } 121 121 122 server| success >> {122 host-1 | success >> { 123 123 "changed": false, 124 124 "ping": "pong" 125 125 } 126 }}} 126 127 rt-1 | success >> { 128 "changed": false, 129 "ping": "pong" 130 } 131 132 host-2 | success >> { 133 "changed": false, 134 "ping": "pong" 135 } 136 }}} 127 137 }}} 128 138 c. Try using the ping module in Ansible to only ping `server` or `client` by replacing `all` in the above with `server` or `client`.