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 remote -b --become-user=root all -m shell -a 'la -al'
ansible -i ./hosts all -b --become-user=root all -m shell -a 'la -al'
</syntaxhighlight>
</syntaxhighlight>

Revision as of 04:48, 12 December 2019

External

Internal

Example

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