FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
appendix:fabric-vs-others.html [2019/02/13 22:55] kurihara |
appendix:fabric-vs-others.html [2020/02/20 23:46] (current) kurihara |
||
---|---|---|---|
Line 26: | Line 26: | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | $ fab -H x.x.x.x | + | $ fab -H x.x.x.x |
- | $ fab -H x.x.x.x | + | |
vs | vs | ||
Line 35: | Line 34: | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | $ fab -H x.x.x.x | + | $ fab -H x.x.x.x |
vs | vs | ||
Line 96: | Line 95: | ||
==== Example ==== | ==== Example ==== | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | $ ansible -i 127.0.0.1, all -u user01 | + | $ ansible -i 192.168.0.10, all -a " |
+ | $ ansible -i 192.168.0.10, | ||
+ | |||
+ | $ ansible | ||
+ | $ ansible -i 192.168.0.10, | ||
</ | </ | ||
+ | \\ | ||
+ | >The given command will be executed on all selected nodes. It will not be processed through the shell, so variables like $HOME and operations like “<”, “>”, “|”, “;” and “&” will not work (use the shell module if you need these features). | ||
+ | |||
+ | <sxh bash toolbar: | ||
+ | $ ansible -i 192.168.0.30, | ||
+ | $ ansible -i 192.168.0.30, | ||
+ | </ | ||
+ | |||
+ | \\ | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | $ ansible -i 127.0.0.1, all -u root -k -a "whoami" | + | $ ansible -i 192.168.0.10, all |
SSH password: | SSH password: | ||
- | 127.0.0.1 | SUCCESS | rc=0 >> | + | 192.168.0.10 | SUCCESS | rc=0 >> |
root | root | ||
</ | </ |
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.