Re: [ansible-project] include_vars overrides subsequent role's vars/main.yml

2015-10-04 Thread t goto
well, in that case I will have to stay vigilant :( Thank you. 2015年10月4日日曜日 3時03分35秒 UTC+9 Dan Stillman: > > On 10/3/15 10:49 AM, t goto wrote: > > Thanks for info, Dan. > Glad to see that at least someone is already working on it :), and it > probably will be fixed i

Re: [ansible-project] include_vars overrides subsequent role's vars/main.yml

2015-10-03 Thread t goto
lear to me that it's not the wanted behavior. > > See also: > > https://groups.google.com/d/msg/ansible-project/4OIuDxRSv0M/RgW8HkuIKQAJ > > On 10/2/15 6:06 AM, t goto wrote: > > Hello, experts. > Let me ask you about weird behavior between include_vars and rol

[ansible-project] include_vars overrides subsequent role's vars/main.yml

2015-10-02 Thread t goto
Hello, experts. Let me ask you about weird behavior between include_vars and role variable. I have a couple of roles, "test_before" and "test_after" . `-- test_before |-- tasks | `-- main.yml `-- vars `-- RedHat.yml |-- test_after | |-- tasks | | `-- main.yml | `--

Re: [ansible-project] How do you parameterize ansible_eth* facts and use it?

2015-05-29 Thread t goto
Your code perfectly worked for me. ThankYOU!! Mr.benno. The reason it couldn't get through at first was because of mysql FLUSH PRIVILEGES. http://stackoverflow.com/questions/328/error-1396-hy000-operation-create-user-failed-for-jacklocalhost After FLUSH PRIVILEGES in mysql console ,

Re: [ansible-project] How do you parameterize ansible_eth* facts and use it?

2015-05-29 Thread t goto
it in template and other places via: bind-address={{ hostvars[inventory_hostname]['ansible_' + my_int].ipv4.address }} and in playbook as host={{ hostvars[item]['ansible_' + my_int].ipv4.address }} On Fri, May 29, 2015 at 10:12 AM, t goto tomoy...@gmail.com javascript: wrote: Hello

[ansible-project] How do you parameterize ansible_eth* facts and use it?

2015-05-28 Thread t goto
Hello, ansible experts. I'm trying to parameterize eth interface in `group_vars/all` so that I can use it in playbook easier. group_vars/all file looks like this. my_int_if: eth1 my_int_ip: {{ ansible_eth1.ipv4.address }} my_int_obj: {{ ansible_eth1 }} I could successfuly use those

Re: [ansible-project] Want to use private_key_file as varable in template file.

2015-05-10 Thread t goto
to specify private key. Thank you. --- t goto 2015年5月11日月曜日 5時51分32秒 UTC+9 Marcus Franke: Am 09.05.2015 07:36 schrieb t goto tomoy...@gmail.com javascript:: Sounds like a plan! :) I willl try this method, thanks! Hi, one thing I don't understand, why do you need to roll out

Re: [ansible-project] Want to use private_key_file as varable in template file.

2015-05-08 Thread t goto
Sounds like a plan! :) I willl try this method, thanks! 2015年5月8日金曜日 23時46分28秒 UTC+9 Brian Coca: something like: lookup('pipe', 'grep private_key_file /etc/ansible/ansible.cfg|cut -f2 -d=') -- Brian Coca -- You received this message because you are subscribed to the Google Groups

[ansible-project] Want to use private_key_file as varable in template file.

2015-05-07 Thread t goto
Hello. I want to use `private_key_file` in ansible.cfg as a variable in template file. Say, I have ansible.cfg like this.. [defaults] hostfile = hosts remote_user = ubuntu private_key_file = /home/test/.ssh/id_rsa And want to use it in Jinja2 format like this.. options[:user] ||= Etc.getlogin

[ansible-project] How to define all hosts but first in a group?

2014-11-19 Thread t goto
Hello, Ansible experts. I'm stuck with this and I need help. I have several servers in a group in inventory file. [webservers] web1 web2 web3 web4 . . And I want to do some tasks to all hosts except first one in webservers group. Unworkable pattern follows. :( - name: do something all

Re: [ansible-project] How to define all hosts but first in a group?

2014-11-19 Thread t goto
Thanks Mr.Tomasz I tried with following target, but it didn't work :( - name: do something all hosts but first in a webservers group hosts: webservers[1:] tasks: (snip) Just no host matched and skipped. -- You received this message because you are subscribed to the Google Groups

[ansible-project] How to access ansible_$interface where $interface is a registered value?

2014-06-26 Thread t goto
Hello, ansible experts. I have a question regarding accessing ansible facts. I have a system with interface named randomly and dynamically. I successfully retrieved int name and registered it to variable. Now, I want to know the IP address of it with ansible facts but how can I access it? I

Re: [ansible-project] How to access ansible_$interface where $interface is a registered value?

2014-06-26 Thread t goto
]['ansible_' + interface]['ipv4'].address }} Cheers, Maciej 2014-06-26 9:16 GMT+02:00 t goto tomoy...@gmail.com javascript:: Hello, ansible experts. I have a question regarding accessing ansible facts. I have a system with interface named randomly and dynamically. I successfully retrieved

Re: [ansible-project] Can't limit hosts to run with hosts: WEB[:1] in Ansible 1.5

2014-03-11 Thread t goto
/ansible/ansible/issues/6331https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fansible%2Fansible%2Fissues%2F6331sa=Dsntz=1usg=AFQjCNFyCWEJNePJNee--UOhmxJr1bLo4g On Mon, Mar 10, 2014 at 3:43 AM, t goto tomoy...@gmail.com javascript:wrote: Dear Ansible experts and developers. Hello, I've

[ansible-project] Can't limit hosts to run with hosts: WEB[:1] in Ansible 1.5

2014-03-10 Thread t goto
Dear Ansible experts and developers. Hello, I've got one question regarding Ansible1.5 . I've been using [:number] in hosts section of playbook so that I can limit the number of server to run. Below is an example. WEB group consists from 3 servers .. [WEB] server01 server02 server03 and I