Ansible Module shell: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
ansible -i ./hosts remote -b --become-user=root all -m shell -a ' | ansible -i ./hosts remote -b --become-user=root all -m shell -a 'la -al' | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 04:47, 12 December 2019
External
Internal
Example
ansible -i ./hosts remote -b --become-user=root all -m shell -a 'la -al'