Ansible Module shell: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:


<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
ansible -i ./hosts -b --become-user=root all -m shell -a 'la -al'
ansible -i ./hosts -b --become-user=root all -m shell -a 'ls -al'
</syntaxhighlight>
</syntaxhighlight>

Revision as of 04:48, 12 December 2019

External

Internal

Example

ansible -i ./hosts -b --become-user=root all -m shell -a 'ls -al'