How to change remote hosts' terminal screen size/resolution in Ansible

410 views
Skip to first unread message

Samir Kothawade

unread,
Apr 18, 2020, 5:15:18 AM4/18/20
to Ansible Project
Hi, 

Here is the brief about scenario: 

1. login to Debian host machine using ansible
2. Go to corresponding directory where the binary is and execute that binary. (This binary is written in c and C++. After execution it ask for the userid & password) 
3. After login into that binary's shell, it  has several commands which displays statistics. Those stats are lengthy and does not fit in current screen resolution. For seen seeing all the stats we have to press Down arrow Key or Enter key multiple time until we reach to last stat line.

How I am doing this: 

- hosts: sam
  gather_facts: no
  tasks:
  - name: capture all stats
    ignore_errors: yes
    expect:
      command: /opt/abc/xyz_Platform/bin/go_xyz_cli
      responses:
        (.*)Username:(.*): "admin"
        (.*)Password:(.*): "admin"
        (.*)xyz_cli>(.*): display all debug stats
        (.*):(.*): '' 
    register: stats
  - local_action: copy content="{{ stats.stdout}}" dest="/home/sam/quickstats/stats.txt"
    ignore_errors: yes
    

Issues Facing : 

1. Multiple similar line gets copied in stats.txt file when above reaches to ==>>  (.*):(.*): ''  (See above code section marked in blue). Using this method to press <enter> key.  
2. Actual stats counts are of line 500 hundred but above code returns 2k + stats with repetitive stats and some garbage values appended.
3. If i removes this  portion   (.*):(.*): ''  from code, then above script only copies 20-30 lines which currently are displayed on screen or which displayed in current screen size. 


I guess I can achieve this by changing remote servers' screen size. but I could not able to get any such way in ansible. 


May I request you to help me in this ?

Samir Kothawade

unread,
Apr 18, 2020, 5:50:34 AM4/18/20
to Ansible Project
Also, There is a limitation on remote host - It does not have xrandr module. So, changing screen size with xrandr will not be  available :( 

Stefan Hornburg (Racke)

unread,
Apr 18, 2020, 6:03:20 AM4/18/20
to ansible...@googlegroups.com
On 4/18/20 11:50 AM, Samir Kothawade wrote:
> Also, There is a limitation on remote host - It does not have xrandr module. So, changing screen size with xrandr will
> not be  available :(

You need to configure the size of the remote terminal, so xrandr won't be the correct tool. So you can try
to manipulate the terminal with shell commands (resize, stty).

But I wonder why you can't tell this binary to write output in a file.

Regards
Racke

>
> On Saturday, 18 April 2020 14:45:18 UTC+5:30, Samir Kothawade wrote:
>
> Hi, 
>
> *_Here is the brief about scenario: _*
>
> 1. login to Debian host machine using ansible
> 2. Go to corresponding directory where the binary is and execute that binary. (This binary is written in c and C++.
> After execution it ask for the userid & password) 
> 3. After login into that binary's shell, it  has several commands which displays statistics. Those stats are lengthy
> and does not fit in current screen resolution. For seen seeing all the stats we have to press Down arrow Key or
> Enter key multiple time until we reach to last stat line.
>
> _*How I am doing this: *_
>
> /-//hosts: sam/
> /  gather_facts: no/
> /  tasks:/
> /  - name: capture all stats/
> /    ignore_errors: yes/
> /    expect:/
> /      command: /opt/abc/xyz_Platform/bin/go_xyz_cli/
> /      responses:/
> /        (.*)Username:(.*): "admin"/
> /        (.*)Password:(.*): "admin"/
> /        (.*)xyz_cli>(.*): display all debug stats/
> /  *      (.*):(.*): ''*//* */
> /    register: stats/
> /  - local_action: copy content="{{ stats.stdout}}" dest="/home/sam/quickstats/stats.txt"/
> /    ignore_errors: yes/
>     
>
> *_Issues Facing : _*
>
> 1. Multiple similar line gets copied in stats.txt file when above reaches to ==>>/  *(.*):(.*): ''*//* */ (See above
> code section marked in blue). Using this method to press <enter> key.  
> 2. Actual stats counts are of line 500 hundred but above code returns 2k + stats with repetitive stats and some
> garbage values appended.
> 3. If i removes this  portion /*  (.*):(.*): ''*/ from code, then above script only copies 20-30 lines which
> currently are displayed on screen or which displayed in current screen size. 
>
>
> I guess I can achieve this by changing remote servers' screen size. but I could not able to get any such way in
> ansible. 
>
>
> May I request you to help me in this ?
>
> --
> 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-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/1ee2dc0f-11c5-4644-b1fb-dec87ade59ed%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/1ee2dc0f-11c5-4644-b1fb-dec87ade59ed%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

signature.asc

Karl Auer

unread,
Apr 18, 2020, 6:16:06 AM4/18/20
to ansible-project
How exactly are the stats output on the host?

If the programs that produce them send them to standard output, then one option would be to run the commands and redirect their outputs to a file. When all the programs have been run, copy that file to wherever you need it. Remember to append for all but the first command.

Also, I don't understand what you mean about (.*):(.*): ''

A better mechanism (IMHO) would be to write a shell script that generates all the stats in the order you want them, and either have that script write to a file or redirect its output to a file. Then just grab that file. If the stats are to be obtained from multiple machines you could copy the script to each with Ansible and then execute it. If it's just one host, you could leave the script on that host. It depends on where would be the most appropriate place to maintain the script.

Regards, K.




--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1ee2dc0f-11c5-4644-b1fb-dec87ade59ed%40googlegroups.com.


--

Karl Auer { manager, systems support }
P: 1300 759 975
E: ka...@2pisoftware.com
2pisoftware.com

GPG/PGP : DF6A 43E5 FB9D D884 C6CA CD7F 5278 212D E80F C107
Previous: 301B 1F4E 624D AD99 242C 7A68 EC24 7113 E854 4A4E

Samir Kothawade

unread,
Apr 18, 2020, 9:38:32 AM4/18/20
to Ansible Project


On Saturday, 18 April 2020 15:46:06 UTC+5:30, Karl Auer wrote:
How exactly are the stats output on the host?

Actual Output received in stats.txt file though method which is I am using.

  "OPR>display debug info PP ip 192.168.30.26 port 8686 data", 
        "\u001b[H\u001b[JSending command to get debug data from {192.168.30.26:8686} PP", 
        "", 
        " Current counters in PP:", 
        "", 
        "Data Counters Summary:", 
        "\u001b[5GTotal Pkt Received\u001b[6;49H{ 10202784 PPS }", 
        "\u001b[7G3G pkt Rvcd\u001b[7;49H{ 5101392 PPS }", 
        "\u001b[7G4G pkt Rvcd\u001b[8;49H{ 0 PPS }", 
        "\u001b[7Gunknown rat type pkt Rvcd\u001b[9;49H{ 5101392 PPS }", 
        "\u001b[5GArp-Rsp Pkt Drop\u001b[10;49H{ 0 PPS }", 
        "\u001b[5GArp-Req Pkt process\u001b[11;49H{ 549683392 PPS }", 
        "\u001b[5GICMP-Req Pkt process\u001b[12;49H{ 32765 PPS }", 
        "", 

Note: there are 2K lines below (as I described in my initial comment)

Expected results -- or output displayed when we hit the command manually.

 Current counters in PP:

Data Counters Summary:
    Total Pkt Received                          { 10202784 PPS }
      3G pkt Rvcd                               { 5101392 PPS }
      4G pkt Rvcd                               { 0 PPS }
      unknown rat type pkt Rvcd                 { 5101392 PPS }
    Arp-Rsp Pkt Drop                            { 0 PPS }
    Arp-Req Pkt process                         { 3508911440 PPS }
    ICMP-Req Pkt process                        { 32765 PPS }

  Pkt BB PP License Expired                     { 0 PPS }
 
Pkt BB Configuration not recieved { 5101392 PPS }


Note : There are 500 lines below...not adding all here.
 

If the programs that produce them send them to standard output, then one option would be to run the commands and redirect their outputs to a file. When all the programs have been run, copy that file to wherever you need it. Remember to append for all but the first command.

Also, I don't understand what you mean about (.*):(.*): ''

 >>This method is to scroll down or go to next line. Ref:  https://blog.linuxserver.io/2018/03/23/ansible-tip-expect-module/ 
 
A better mechanism (IMHO) would be to write a shell script that generates all the stats in the order you want them, and either have that script write to a file or redirect its output to a file. Then just grab that file. If the stats are to be obtained from multiple machines you could copy the script to each with Ansible and then execute it. If it's just one host, you could leave the script on that host. It depends on where would be the most appropriate place to maintain the script.


>>This binary has its own commands it does not allow our routine bash commands. If you type date command there, it wont work. After pressing  \q in that utility, it takes user to bash cli prompt i.e sam@golden:~# 
>>So, coping that output is little tricky.  
 
Regards, K.




To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.

Samir Kothawade

unread,
Apr 18, 2020, 9:42:16 AM4/18/20
to Ansible Project
As shown, there is some garbage data coming that file, we can remove that using regex. My initial objective it to capture all 500 stats lines in variable - stats

Samir Kothawade

unread,
Apr 18, 2020, 9:46:56 AM4/18/20
to Ansible Project
H[i, I tried with stty but that could  not help. output remained the same.

Here is how i used that : 


- hosts: opr
  gather_facts: no
  tasks:
  - name: set the winsize
    shell: stty cols 500 rows 500
  - name: Get the debug status
    ignore_errors: yes
   
...and kept rest script same.

Samir Kothawade

unread,
Apr 18, 2020, 11:04:36 AM4/18/20
to Ansible Project


>> Could you please explain how can use xterm command : xterm --tn dumb -cm -dc -e this is your command
   Fustratigly, xterm is not present in remote  machine and I am not allowed to install xterm utility on targeted remote machine. Still, is there any way to run it through ansible conroller?


On Saturday, 18 April 2020 14:45:18 UTC+5:30, Samir Kothawade wrote:

Karl Auer

unread,
Apr 18, 2020, 11:57:54 AM4/18/20
to ansible-project
What shell are you using on the remote machine? And what kind of terminal is it running in? I have a suspicion that it is just running on a pty, and that your program is blindly putting out control sequences. If it is, then there's nothing you can do about it except strip them using regexp or similar.

Is there any way to redirect the output from your program into a file? That bypasses the terminal stuff completely , though as I said, if your program is blindly colourising its output OR blindly waiting after every 24 lines, there's nothing much you can do about it. The duplicate output is strange - can you provide a sample? It may be the program trying to output bold text or something.

Right about now I would be contacting the people responsible for a) the Debian host and b) this program you are trying to run to see if there is some way to solve this problem neatly.

Were you able to find out about possible additional command line controls on the program? Anything Ansible can do, you can do too, so try manually logging in and seeing what you can find out.

Regards, K.


--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2f760261-f3ca-420b-86a5-d9eb2ed85206%40googlegroups.com.

Karl Auer

unread,
Apr 18, 2020, 12:23:42 PM4/18/20
to ansible-project
You *might* be able to convince the console on the remote system to be a dumb terminal by doing this as your command:

TERM-dumb ; sh -c your_command

This works in gnome-terminal as well - it seems to suppress most control sequences except CR/LF and similar.

Or in Ansible, setting the environment variable TERM to "dumb" then running your command in a new shell. In my experiments here, when I set TERM=dumb and ran sh from within a console or from within gnome-terminal, the colourisation went away. However the console still had a fixed number of lines.

Regards, K.

On Sun, Apr 19, 2020 at 1:04 AM Samir Kothawade <kothawa...@gmail.com> wrote:
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2f760261-f3ca-420b-86a5-d9eb2ed85206%40googlegroups.com.

Samir Kothawade

unread,
Apr 18, 2020, 12:34:29 PM4/18/20
to ansible...@googlegroups.com
bash: TERM-dumb: command not found.

gnome-terminal utility not available on remote  machine


Samir Kothawade

unread,
Apr 18, 2020, 12:40:47 PM4/18/20
to ansible...@googlegroups.com
Duplicate entries when I provide  (.*):(.*): ''         But this method atleast return complete data. 
When I comment-out  (.*):(.*): '' it shows 23 lines displayed on screen + garbage data +  no duplicate lines/stats
image.png

Karl Auer

unread,
Apr 18, 2020, 7:54:52 PM4/18/20
to ansible-project
TERM=dumb

Sorry, I mistyped. The minus sign should have been an equals sign.

The idea is to set the environment variable TERM to the value "dumb" immediately before starting the shell in which your program will be run.

Also can you please answer the question about whether you can redirect the output of this program?

I strongly suggest you experiment manually rather than with Ansible. You need to find out how to achieve what you want, then duplicate that in Ansible. Doing both at once is very painful.

Regards, K.

Samir Kothawade

unread,
Apr 19, 2020, 2:26:21 AM4/19/20
to ansible...@googlegroups.com
On Sun, 19 Apr 2020 at 05:24, Karl Auer <ka...@2pisoftware.com> wrote:
TERM=dumb

Sorry, I mistyped. The minus sign should have been an equals sign.

>> >> Can you please help me where I can use this in my code and see the content in a text file ? Here is  my anible code...pasting it here again
 - hosts: sam
  gather_facts: no
  tasks:
  - name: capture all stats
    ignore_errors: yes
    expect:
      command: /opt/abc/xyz_Platform/bin/go_xyz_cli
      responses:
        (.*)Username:(.*): "admin"
        (.*)Password:(.*): "admin"
        (.*)xyz_cli>(.*): display all debug stats
        (.*):(.*): '' 
    register: stats
  - local_action: copy content="{{ stats.stdout}}" dest="/home/sam/quickstats/stats.txt"
    ignore_errors: yes 
The idea is to set the environment variable TERM to the value "dumb" immediately before starting the shell in which your program will be run.

Also can you please answer the question about whether you can redirect the output of this program?

>> NO. There no support on that binary to copy or to point the output to some file. Shell commads like " >>abc.txt " does not work.

I strongly suggest you experiment manually rather than with Ansible. You need to find out how to achieve what you want, then duplicate that in Ansible. Doing both at once is very painful.


>>  Yes. I have done this manually.
For collecting stats manually here is the procedure :
1. I use mouse > Select the area of stats appeared on screen (after selecting area, termius utility copy the selected area automatically) >
2. Paste it manually by pressing ctr+v into sublime text editor 
3. Again go to remote machine and press down key/Enter key to collect remaining stats and copy-paste the status in similarly way as mentioed in step 1 and 2. 
4. I have to perform step 1,2,3 multiple times untill I copy all the status, as window can display only 25-30 lines/rows. Some times for doing it quickly, I use zoom-out (Ctr++), by this I can copy more lines. 
    But I want to do this operation through automation.    

Stefan Hornburg (Racke)

unread,
Apr 19, 2020, 2:39:34 AM4/19/20
to ansible...@googlegroups.com
On 4/19/20 8:25 AM, Samir Kothawade wrote:
>
>

Hello Samir,

this is now really off topic. Try to figure out to wrangle the data out of this rather unhelpful binary
by means of "expect" or similar software, but your problem is not related to Ansible.

Regards
Racke

> On Sun, 19 Apr 2020 at 05:24, Karl Auer <ka...@2pisoftware.com <mailto:ka...@2pisoftware.com>> wrote:
>
> TERM=dumb
>
> Sorry, I mistyped. The minus sign should have been an equals sign.
>
>>> >> Can you please help me where I can use this in my code and see the content in a text file ? Here is  my anible
> code...pasting it here again
>  /-// hosts: sam/
> /  gather_facts: no/
> /  tasks:/
> /  - name: capture all stats/
> /    ignore_errors: yes/
> /    expect:/
> /      command: /opt/abc/xyz_Platform/bin/go_xyz_cli/
> /      responses:/
> /        (.*)Username:(.*): "admin"/
> /        (.*)Password:(.*): "admin"/
> /        (.*)xyz_cli>(.*): display all debug stats/
> /  *      (.*):(.*): ''*//* */
> /    register: stats/
> /  - local_action: copy content="{{ stats.stdout}}" dest="/home/sam/quickstats/stats.txt"/
> /    ignore_errors: yes/ 
>
> The idea is to set the environment variable TERM to the value "dumb" immediately before starting the shell in which
> your program will be run.
>
> Also can you please answer the question about whether you can redirect the output of this program?
>
>
>>> NO. There no support on that binary to copy or to point the output to some file. Shell commads like " >>abc.txt "
> does not work.
>
>
> I strongly suggest you experiment manually rather than with Ansible. You need to find out how to achieve what you
> want, then duplicate that in Ansible. Doing both at once is very painful.
>
>
>>>  Yes. I have done this manually.
> *_For collecting stats manually here is the procedure :_*
> 1. I use mouse > Select the area of stats appeared on screen (after selecting area, termius utility copy the selected
> area automatically) >
> 2. Paste it manually by pressing ctr+v into sublime text editor 
> 3. Again go to remote machine and press down key/Enter key to collect remaining stats and copy-paste the status in
> similarly way as mentioed in step 1 and 2. 
> 4. I have to perform step 1,2,3 multiple times untill I copy all the status, as window can display only 25-30
> lines/rows. Some times for doing it quickly, I use zoom-out (Ctr++), by this I can copy more lines. 
>     But I want to do this operation through automation.    
>
> Regards, K.
>
> On Sun, Apr 19, 2020 at 2:34 AM Samir Kothawade <kothawa...@gmail.com <mailto:kothawa...@gmail.com>> wrote:
>
> bash: TERM-dumb: command not found.
>
> gnome-terminal utility not available on remote  machine
>
>
> On Sat, 18 Apr 2020 at 21:53, Karl Auer <ka...@2pisoftware.com <mailto:ka...@2pisoftware.com>> wrote:
>
> You *might* be able to convince the console on the remote system to be a dumb terminal by doing this as your
> command:
>
> TERM-dumb ; sh -c your_command
>
> This works in gnome-terminal as well - it seems to suppress most control sequences except CR/LF and similar.
>
> Or in Ansible, setting the environment variable TERM to "dumb" then running your command in a new shell. In
> my experiments here, when I set TERM=dumb and ran sh from within a console or from within gnome-terminal,
> the colourisation went away. However the console still had a fixed number of lines.
>
> Regards, K.
>
> On Sun, Apr 19, 2020 at 1:04 AM Samir Kothawade <kothawa...@gmail.com
> <mailto:kothawa...@gmail.com>> wrote:
>
>
>
> >> Could you please explain how can use xterm command : xterm --tn dumb -cm -dc -e this is your command
>    Fustratigly, xterm is not present in remote  machine and I am not allowed to install xterm utility on
> targeted remote machine. Still, is there any way to run it through ansible conroller?
>
>
> On Saturday, 18 April 2020 14:45:18 UTC+5:30, Samir Kothawade wrote:
>
> Hi, 
>
> *_Here is the brief about scenario: _*
>
> 1. login to Debian host machine using ansible
> 2. Go to corresponding directory where the binary is and execute that binary. (This binary is
> written in c and C++. After execution it ask for the userid & password) 
> 3. After login into that binary's shell, it  has several commands which displays statistics. Those
> stats are lengthy and does not fit in current screen resolution. For seen seeing all the stats we
> have to press Down arrow Key or Enter key multiple time until we reach to last stat line.
>
> _*How I am doing this: *_
>
> /-//hosts: sam/
> /  gather_facts: no/
> /  tasks:/
> /  - name: capture all stats/
> /    ignore_errors: yes/
> /    expect:/
> /      command: /opt/abc/xyz_Platform/bin/go_xyz_cli/
> /      responses:/
> /        (.*)Username:(.*): "admin"/
> /        (.*)Password:(.*): "admin"/
> /        (.*)xyz_cli>(.*): display all debug stats/
> /  *      (.*):(.*): ''*//* */
> /    register: stats/
> /  - local_action: copy content="{{ stats.stdout}}" dest="/home/sam/quickstats/stats.txt"/
> /    ignore_errors: yes/
>     
>
> *_Issues Facing : _*
>
> 1. Multiple similar line gets copied in stats.txt file when above reaches to ==>>/  *(.*):(.*):
> ''*//* */ (See above code section marked in blue). Using this method to press <enter> key.  
> 2. Actual stats counts are of line 500 hundred but above code returns 2k + stats with repetitive
> stats and some garbage values appended.
> 3. If i removes this  portion /*  (.*):(.*): ''*/ from code, then above script only copies 20-30
> lines which currently are displayed on screen or which displayed in current screen size. 
>
>
> I guess I can achieve this by changing remote servers' screen size. but I could not able to get any
> such way in ansible. 
>
>
> May I request you to help me in this ?
>
> --
> 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-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/2f760261-f3ca-420b-86a5-d9eb2ed85206%40googlegroups.com <https://groups.google.com/d/msgid/ansible-project/2f760261-f3ca-420b-86a5-d9eb2ed85206%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
>
>
> --
> *
> *
> *Karl Auer* { manager, systems support }
> P: 1300 759 975
> E: ka...@2pisoftware.com <mailto:ka...@2pisoftware.com>
> 2pisoftware.com <https://2pisoftware.com>
>
> GPG/PGP : DF6A 43E5 FB9D D884 C6CA CD7F 5278 212D E80F C107
> Previous: 301B 1F4E 624D AD99 242C 7A68 EC24 7113 E854 4A4E
>
> --
> 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-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CA%2B%2BT08SQ_etTQUJ%2BfTYMb1Jn-u-rd8m4BTJBnaoFhOf%2BL70Fbg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CA%2B%2BT08SQ_etTQUJ%2BfTYMb1Jn-u-rd8m4BTJBnaoFhOf%2BL70Fbg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> 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-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAA%3Dr5yczMNb4QMRUxG5S5wKE9PF04_0VSx21D%3Duo0CLXGWd6dQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAA%3Dr5yczMNb4QMRUxG5S5wKE9PF04_0VSx21D%3Duo0CLXGWd6dQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
>
>
> --
> *
> *
> *Karl Auer* { manager, systems support }
> P: 1300 759 975
> E: ka...@2pisoftware.com <mailto:ka...@2pisoftware.com>
> 2pisoftware.com <https://2pisoftware.com>
>
> GPG/PGP : DF6A 43E5 FB9D D884 C6CA CD7F 5278 212D E80F C107
> Previous: 301B 1F4E 624D AD99 242C 7A68 EC24 7113 E854 4A4E
>
> --
> 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-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CA%2B%2BT08TpNfzdFb4WkkKAaL4iH36w1dr2_HuE2WC5kad6jygFog%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CA%2B%2BT08TpNfzdFb4WkkKAaL4iH36w1dr2_HuE2WC5kad6jygFog%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> 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-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAA%3Dr5ydHjjaDdjDCDZVxc%3DL6tuSgkNgZyF0%2BQWmQhhC2Y2DOkA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAA%3Dr5ydHjjaDdjDCDZVxc%3DL6tuSgkNgZyF0%2BQWmQhhC2Y2DOkA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
signature.asc

Karl Auer

unread,
Apr 19, 2020, 3:01:11 AM4/19/20
to ansible-project
I've offered all the help I can. Your best bet is to contact the people who wrote the program you are trying to use.

You may find it easier to do things like set environment variables and redirect output using the shell module:


Also, it would be a VERY good idea to test things out manually before trying to do them in Ansible.

Good luck, K.


Reply all
Reply to author
Forward
0 new messages