You're close Read over the getting started guide and you'll spot your mistakes. But to help get you going ...
You need to specify -i for that hosts txt file - do a --help to understand the switch.
-m specifies an ansible module - see module documentation at docs.ansible.com, or try ansible-doc -l. I suspect what you wanted to do there to test was -a - which is switches to a given module. If you don't specificy a module with -m it will default to the 'command' module.
You need to specify -i for that hosts txt file - do a --help to understand the switch.
I did this already with
`
export ANSIBLE_HOSTS=/path/to/file
`
Which should do the job of -i, right?
do there to test was -a - which is switches to a given module. If you don’t specificy a module with -m it will default to the ‘command’ module.
Unfortunately the VM where I´me testing is down for cloning right now. But if I´m understanding your answer correctly – and after a look into the module docs I´ve missed the -a switch … will try when the Server is back online.