[ansible-devel] extract stdout value

2021-03-23 Thread Heman Malve
Team, stdout line as shown below. "stdout": "var1:value1, var2:value2, var3:value3" I Would like to extract value3 from stdout , does it works with regexp or any other way to do this? pls suggest .. -- You received this message because you are subscribed to the Google Groups "Ansible Developm

[ansible-devel] extract stdout value

2021-03-23 Thread Heman Malve
Team, stdout line as shown below. "stdout": "var1:value1, var2:value2, var3:value3" I Would like to extract value3 from stdout , does it works with regexp or any other way to do this? pls suggest .. -- You received this message because you are subscribed to the Google Groups "Ansible Developm

[ansible-devel] Extracting value from ansible play

2021-03-15 Thread Heman Malve
Team, During ansible play one of the debug variable as shown below ok: [hostname] => { "variable name": [ "value" ] } /tmp/"{{value}}" ==> /tmp/\"[u'value']\" I want to use only value instead of u, \, [] now and expecting output as /tmp/value ; please suggest... --

[ansible-devel] characters limit of line: in lineinfile module

2021-03-08 Thread Heman Malve
Hi Team, Do we have any limit of line text in lineinfile module (text contains .,",- and space characters ) and also alternate way to combine the text , please suggest !! -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe

[ansible-devel] characters limit of line: in lineinfile module

2021-03-08 Thread Heman Malve
Hi Team, Do we have any limit of line text in lineinfile module (text contains .,",- and space characters ) and also alternate way to combine the text , please suggest !! -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe

[ansible-devel] Re: yml --> yml file invocation (ansible playbook)

2021-02-17 Thread Heman Malve
I'm able to do with import_playbook module .. On Thursday, 18 February 2021 at 11:52:16 UTC+5:30 Heman Malve wrote: > Team, > > Requirement is , > 1)define main yaml file with - hosts: localhost (its just execution in > localhost) and should contain ~10 yaml file

[ansible-devel] yml --> yml file invocation (ansible playbook)

2021-02-17 Thread Heman Malve
Team, Requirement is , 1)define main yaml file with - hosts: localhost (its just execution in localhost) and should contain ~10 yaml files which will perform individual activities based upon hosts {remote servers} entry I have tried using tasks, name & other modules but not succeeded. main.y

Re: [ansible-devel] Python invocation from Ansible

2021-01-21 Thread Heman Malve
e of the file" but connecting to a bunch of > servers, changing a few files and restarting their services is the bread & > butter of ansible and definitely doable without needing to use python at > all. > > On Thu, Jan 21, 2021 at 9:33 AM Heman Malve wrote: > >>

[ansible-devel] Python invocation from Ansible

2021-01-21 Thread Heman Malve
Hi Team, One of the file contains list of servers(centralized server) and related to Dev environment . Requirement is that connect each and every server remotely , execute stop command(s )of respective services and do manipulation of 2 or 3 conf files( add & remove lines) , start the services

[ansible-devel] Reg :Regex_search (or) regex_findall

2020-12-18 Thread Heman Malve
sion :/users/java/jdkx.x.x_xxx Would like to extract string jdkx.x.x_xxx from above line (2) tried couple of ways to extract string using regex_search/regex_findall but not succeeded. Could you please suggest here? Thanks . Regards Heman Malve -- You received this message because you are subscribe