Ansible Module shell
Jump to navigation
Jump to search
External
Internal
Example
ansible -i ./hosts remote -b --become-user=root all -m shell -a 'apt-get install nginx'
ansible -i ./hosts remote -b --become-user=root all -m shell -a 'apt-get install nginx'