Talk:Ansible: Difference between revisions

Line 77:
shell: runs command on managed host through the local shell
copy: copy a file, change content on a remote host in a target file
 
ansible all -i inventory -m command -a id
ansible all -i inventory -m command -a id -o
ansible all -i inventory -m command -a env
ansible all -i inventory -m shell -a env
ansible server1 -m copy -a 'content="Ansible Managed\n" dest=/etc/motd'