Copy file to remote ansible

Push a local file to all hosts with specific permissions

ansible all -m copy -a 'src=./nginx.conf dest=/etc/nginx/nginx.conf owner=root mode=0644' -i inventory.ini
more ansible all 56 commands →