[ansible-project] Kernel panic on rhel4 -- ansible-playbook.

2014-11-22 Thread Darup tek
I know rhel4 is not supported, but I do not have choice. Installed python27 in /opt and trying to get the playbook running. I am using the ansible_python_interpreter /opt/python2.7/bin/python2.7 Just regular ansible x -a "date" command works fine. But, when I try using the playbook, it causes

[ansible-project] Re: How to get the ouput into one json file or json output

2014-11-10 Thread Darup tek
d tweak it for your use case. There are two > variations, one that makes one giant JSON file or one to make one json file > per host. > > Credit to James Martin for helping me out with this a while back. > > > On Sunday, November 9, 2014 1:28:23 AM UTC-5, Darup tek wrote:

[ansible-project] Re: Executing playbooks from callback, It became slow all of sudden,

2014-11-10 Thread Darup tek
And regular: ansible-playbook command works fine when the playbook is pointed. -- 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

[ansible-project] Executing playbooks from callback, It became slow all of sudden,

2014-11-10 Thread Darup tek
I am using the below function for the past 4 months to orchestrate the installations/depolyments and it was quick. It was working fine and all of a sudden, it became dead slow. I do not remember tweaking settings. def run_playbook(listVMs, playbook, user, extra_vars=None, key_file=None): pr

[ansible-project] Re: How to get the ouput into one json file or json output

2014-11-08 Thread Darup tek
I managed it using the ansible.runner Is it the right way to do it ?? On Saturday, November 8, 2014 9:34:40 PM UTC-8, Darup tek wrote: > > I am trying to gather information about some 200 servers using the setup > command. > I would like to get the output as one json data. I could

[ansible-project] How to get the ouput into one json file or json output

2014-11-08 Thread Darup tek
I am trying to gather information about some 200 servers using the setup command. I would like to get the output as one json data. I could see 200 json outputs. How do I get all the date into one json file with 200 servers information. Appreciate the help. -- You received this message because

Re: [ansible-project] Strange issue with the copy speed of a 1.5G large file.

2014-09-02 Thread Darup tek
ally provide a lot of debugging help beyond the above. > > We do support the REST API in Tower to a much greater extent, though I'd > possibly suggest looking through /usr/bin/ansible and ansible-playbook and > seeing how they construct things, with an expectation this is related t

Re: [ansible-project] Playbook -- How to read a value from another yaml file ?

2014-09-02 Thread Darup tek
t; > > On Sun, Aug 31, 2014 at 2:42 AM, Darup tek wrote: > >> Thanks, I solved the problem by using extra-vars. >> >> >> On Saturday, August 30, 2014 12:05:18 PM UTC-7, Henry Finucane wrote: >> >>> I'm not 100% sure if I understand the question, bu

[ansible-project] Re: Strange issue with the copy speed of a 1.5G large file.

2014-08-31 Thread Darup tek
I swapped copy module to synchronize and it worked like charm. But , it is still puzzling me why copy module behaves differently in those 2 scenarios. > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and st

[ansible-project] Strange issue with the copy speed of a 1.5G large file.

2014-08-30 Thread Darup tek
I am using the following snippet to execute the playbook, this is the only way I can solve the deployment of servers for the first time as the inventory is not present at that time and lot of orchestration is needed to deploy the cluster with several nodes. def run_playbook(listVMs, playbook, u

Re: [ansible-project] Playbook -- How to read a value from another yaml file ?

2014-08-30 Thread Darup tek
ntation is fairly reasonable: > http://docs.ansible.com/intro_inventory.html (group_vars are what you > want, and are discussed at the end) > > As an aside, the Ansible convention for global defaults is the "all" > group. > > On Fri, Aug 29, 2014 at 11:43 PM, Dar

[ansible-project] Re: Change bash_profile dynamically.

2014-08-29 Thread Darup tek
of your template file would > be: > > export HOST_NAME*={{ ansible_hostname }}* > > You can read more about facts at > http://docs.ansible.com/playbooks_variables.html#information-discovered-from-systems-facts > . > > Hope that helps. > > Michael > > O

[ansible-project] Playbook -- How to read a value from another yaml file ?

2014-08-29 Thread Darup tek
I have this playbook which changes the xml file on a remote server. This playbook needs to read a value from another yaml file. For example source yaml file: main.yml cluster: onecluster product: someproduct playbook.yml -replace: dest=/a/b/cd.xml regexp=something replace=<<< value of *clus

[ansible-project] Re: Change bash_profile dynamically.

2014-08-29 Thread Darup tek
> > currently,I am solving this problem making it as a script and using > - script: script_change_bash_profile.sh Is there a better way than this. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop r

[ansible-project] Change bash_profile dynamically.

2014-08-29 Thread Darup tek
I am little clueless on how to solve this issue. There are couple of hosts I need to remotely change the .bash_profile. Locally I run the command this way. echo ""# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment

Re: [ansible-project] Re: best way to add multiple lines to a file.

2014-08-29 Thread Darup tek
ipv4.tcp_keepalive_probes = 4' > notify: Reload sysctl > handlers: > - name: Reload sysctl.conf > shell: sysctl -p > > > 2014年8月29日金曜日 3時25分15秒 UTC+9 David Karban: > >> Hí Darup, >> >> i believe that Brian thougth sysctl module: >

[ansible-project] Re: best way to add multiple lines to a file.

2014-08-28 Thread Darup tek
I am currently doing this, want a better one :) - name: Changes to sysctl.conf lineinfile: dest=/tmp/1 regexp="{{ item.regexp }}" line="{{ item.line }}" with_items: - { regexp: '^net.ipv6.conf.all.disable_ipv6', line: 'net.ipv6.conf.all.disable_ipv6 = 1' } - { r

[ansible-project] best way to add multiple lines to a file.

2014-08-28 Thread Darup tek
I would like to add these lines to a file at the end sysctl.conf net.ipv6.conf.all.disable_ipv6=1 net.ipv4.tcp_no_metrics_save = 1 net.ipv4.tcp_moderate_rcvbuf = 1 net.ipv4.tcp_fin_timeout = 15 net.ipv4.tcp_keepalive_time = 1800 net.ipv4.tcp_keepalive_probes = 4 I am adding these using seve

[ansible-project] Re: Problem setting up the bash environment with playbook.

2014-08-13 Thread Darup tek
mmands one after the other after from one section ? On Wednesday, August 13, 2014 3:17:44 PM UTC-7, Darup tek wrote: > > I am trying to execute the commands over playbook. > > - name: Configure open-pbis > action: command /opt/pbis/bin/config LoginShellTemplate /bin/bash >

[ansible-project] Problem setting up the bash environment with playbook.

2014-08-13 Thread Darup tek
I am trying to execute the commands over playbook. - name: Configure open-pbis action: command /opt/pbis/bin/config LoginShellTemplate /bin/bash action: command /opt/pbis/bin/config AssumeDefaultDomain true It is not setting the bash environment when I execute it with anisble-playbook