Ansible Module shell: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 6: | Line 6: | ||
* [[Ansible_Concepts#shell|Ansible Concepts]] | * [[Ansible_Concepts#shell|Ansible Concepts]] | ||
=Example= | |||
<syntaxhighlight lang='bash'> | |||
ansible -i ./hosts remote -b --become-user=root all -m shell -a 'apt-get install nginx' | |||
</syntaxhighlight> |
Revision as of 04:47, 12 December 2019
External
Internal
Example
ansible -i ./hosts remote -b --become-user=root all -m shell -a 'apt-get install nginx'