[ansible-project] unexpected output while executing lengthy commands

2019-10-08 Thread SR
Have a playbook executes the below command looking for VPN session, and registers the output. When I execute commands which are longer ( here col len > 52 ) , the output gets messed up , as in, it's kind of printing the input as well (have attached the output for reference). Any pointers as in

Re: [ansible-project] Re: I have problems with de expect module

2019-10-08 Thread P. Varsha
once check your file name install-scanner.sh is correct? I’m protected online with Avast Free Antivirus. Get it here — it’s

[ansible-project] Re: win_shell command execution

2019-10-08 Thread 'J Hawkesworth' via Ansible Project
You would probably need to write like this: - win_shell: 'dir PackageDeploy*.* /b > {{directory}}\configurations\temp' args: executable: cmd chdir: '{{directory}}\configurations\jmxterm' register: list_out But its probably much better to use win_find module https://docs.a

Re: [ansible-project] Re: I have problems with de expect module

2019-10-08 Thread Javier Esparza
Here comes the error of my playbook.. TASK [Ejecutamos el script] > * > > fatal: [MP00402]: FAILED

Re: [ansible-project] Re: I have problems with de expect module

2019-10-08 Thread Dick Visser
As requested before, can you please send TEXT only and no pictures. Copy paste text. NO screen dumps. Thx On Tue, 8 Oct 2019 at 18:36, Javier Esparza wrote: > Friend I tryed he code that you given to me but i got some errors > > > [image: Screenshot_20191008_133306.png] > > > -- > You receive

[ansible-project] State of Multi-Role Repos

2019-10-08 Thread Uriel
What is the currently supported way of maintaining multi-role git repositories? I've been reading around the docs and I'm getting some contradictory or outdated information. I was initially looking at the new Collections format for storing and sharing roles but this seems to be built (at leas

[ansible-project] How to auto detect all drive partitions and pull facts from them?

2019-10-08 Thread Ryan
If i know the system configuration, I can set set variables from the facts using: - set_fact: drive0start={{ ansible_devices.sda.partitions.sda1.start }} register: drive0start - set_fact: drive0sectors={{ ansible_devices.sda.partitions.sda1.sectors }} register: drive0sectors - debug: msg="{

Re: [ansible-project] Re: I have problems with de expect module

2019-10-08 Thread Javier Esparza
> > Friend I tryed he code that you given to me but i got some errors [image: Screenshot_20191008_133306.png] -- 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

Re: [ansible-project] Re: I have problems with de expect module

2019-10-08 Thread Kai Stian Olstad
On 07.10.2019 23:16, Javier Esparza wrote: Anyone can help me I already did by giving you a working task in your previous thread. -- Kai Stian Olstad -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and s

Re: [ansible-project] Ansible role README generator

2019-10-08 Thread Vladimir Botka
On Tue, 8 Oct 2019 07:09:13 -0700 (PDT) Nick Kakouros wrote: > I think I have seen at some point a role that used a yaml array to specify > the contents of the REAMDE. That's all I remember. In any case, are there > tools to automatically generate a README for a role or based on a template > o

[ansible-project] Ansible role README generator

2019-10-08 Thread Nick Kakouros
I think I have seen at some point a role that used a yaml array to specify the contents of the REAMDE. That's all I remember. In any case, are there tools to automatically generate a README for a role or based on a template of some sort? Has anyone used anything? -- You received this message b

Re: [ansible-project] ansible - shell module using expect

2019-10-08 Thread James Cassell
On Tue, Oct 8, 2019, at 8:58 AM, Troy Cosson wrote: [re-ordered] > > > On Monday, October 7, 2019 at 4:12:36 PM UTC-5, James Cassell wrote:On > Mon, Oct 7, 2019, at 4:19 PM, Troy Cosson wrote: > > > I'm trying to get a Red Hat server (RHEL7) to join a Windows Active > > > Directory domain and

Re: [ansible-project] ansible - shell module using expect

2019-10-08 Thread Troy Cosson
I skimmed right over the --stdin-password from the man page. That's way simpler. - Thanks --- - hosts: 127.0.0.1 vars_prompt: - name: username prompt: "What is your Active Directory administrator username?" private: no - name: password prompt: "What is your admi

[ansible-project] dnf module problem with modularity appstreams and groups

2019-10-08 Thread mike _
Ansible 2.8.5 I'm having trouble with installing package groups and modularity appstreams on a CentOS 8 host using the dnf module. Whilst it mostly seems like two separate issues, the errors I'm getting make me wonder if it's one underlying issue. If I try to use the dnf module to install a m

[ansible-project] win_shell command execution

2019-10-08 Thread Uppara venkat
Hi all, I'm trying to list the files with the name of "PackageDeploy" using as below but getting all other files also in the directory. - win_shell: 'dir PackageDeploy*.* /b {{directory}}\configurations\jmxterm > {{directory}}\configurations\temp' args: executable: cmd regist