Re: [ansible-project] how can I override the ansible.cfg with command line argument

2013-11-27 Thread Brian Coca
-e is for ansible-playbook, sorry, i didn't realize you were using the oneliner -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@go

Re: [ansible-project] how can I override the ansible.cfg with command line argument

2013-11-27 Thread xiangjun
to Michael, I known add it to the group, but it is not best practice. to Brian, do you mean add -e in command line? I got an error that: ansible -i xcloud all -a 'w' -e 'ansible_ssh_port=22' Usage: ansible [options] ansible: error: no such option: -e On Wed, Nov 27, 2013 at 11:11 PM, Brian C

Re: [ansible-project] how can I override the ansible.cfg with command line argument

2013-11-27 Thread Brian Coca
you can also use extra vars: -e 'ansible_ssh_port=2343' -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. For mor

Re: [ansible-project] how can I override the ansible.cfg with command line argument

2013-11-26 Thread Michael DeHaan
Add it to a group then. On Tue, Nov 26, 2013 at 8:25 PM, xiangjun wrote: > My inventory file is big, I want to keep it clean, changing every line is > not so good. > > > On Wed, Nov 27, 2013 at 12:17 AM, David Karban wrote: > >> Hi, >> >> try ansible_ssh_port: http://www.ansibleworks.com/doc

Re: [ansible-project] how can I override the ansible.cfg with command line argument

2013-11-26 Thread xiangjun
My inventory file is big, I want to keep it clean, changing every line is not so good. On Wed, Nov 27, 2013 at 12:17 AM, David Karban wrote: > Hi, > > try ansible_ssh_port: http://www.ansibleworks.com/docs/faq.html#id2 > > > > 2013/11/26 xiangjun zhang > >> I have servers with different ssh po

Re: [ansible-project] how can I override the ansible.cfg with command line argument

2013-11-26 Thread David Karban
Hi, try ansible_ssh_port: http://www.ansibleworks.com/docs/faq.html#id2 2013/11/26 xiangjun zhang > I have servers with different ssh ports, the default port is configured in > ansible.cfg, how can I override the remote_port setting with command line > argument? thanks > > -- > You received t

[ansible-project] how can I override the ansible.cfg with command line argument

2013-11-26 Thread xiangjun zhang
I have servers with different ssh ports, the default port is configured in ansible.cfg, how can I override the remote_port setting with command line argument? thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this g