RE: Re: [ansible-project] Another Ansible Question

2020-03-16 Thread Michael Cooper
Thanks Phil, I appreciate it. -- Michael A CooperLinux Certified / Docker Certifiedhttp://www.coopfire.com From: Phil GriffithsSent: Monday, March 16, 2020 4:19 PMTo: Ansible ProjectSubject: Re: [ansible-project] Another Ansible Question Hi Michael You might want to check out ansible-runner: 

RE: [ansible-project] Re: Another Ansible Question

2020-03-16 Thread Michael Cooper
Thank you, This looks very promising. -- Michael A CooperLinux Certified / Docker Certifiedhttp://www.coopfire.com From: Claudia de LunaSent: Monday, March 16, 2020 10:54 PMTo: Ansible ProjectSubject: [ansible-project] Re: Another Ansible Question See if this helps at all 

[ansible-project] passing variable in another playbook

2020-03-16 Thread mahesh g o
i have created the list using set_fact and i want use this list in another playbook. i have stored the value in the ouput. how do i use it in another playbook?? tasks: - name: Initialize an empty list for our strings set_fact: test: [] - name: second set_fact:

Re: [ansible-project] Another Ansible Question

2020-03-16 Thread Michael Mullay
I created a docker container to install Ansible for testing different versions, etc. As folks here have mentioned, it's not really the purpose of the ansible/ansible image. However, I just run it with a sleep command at run time, for like 29000 seconds (eight hours) since the container has to

[ansible-project] Re: Another Ansible Question

2020-03-16 Thread Claudia de Luna
See if this helps at all https://gratuitous-arp.net/ansible-server-in-docker-for-network-engineers/ On Monday, March 16, 2020 at 3:02:18 AM UTC-7, Michael Cooper wrote: > > Hey Guys, > >I am trying to get ansible working on docker. The image that I am > using is ansible/ansible and

[ansible-project] Re: Ansible - errno 101 network is unreachable

2020-03-16 Thread Santhosh Ganesan
Found a way through setting up my proxy under environment: in ansible playbook, now facing this error FAILED! => {"changed": false, "msg": "Failed to download packages: Cannot download 7.6.1/elasticsearch-7.6.1-x86_64.rpm: All mirrors were tried", "results": []} any clue to this? On Monday,

Re: [ansible-project] Ansible - errno 101 network is unreachable

2020-03-16 Thread Santhosh Ganesan
Command : ansible-playbook elk-playbook.yml Output: PLAY [all] * TASK [Gathering Facts] * ok: [172.28.158.115] TASK [ping]

Re: [ansible-project] Another Ansible Question

2020-03-16 Thread Phil Griffiths
Hi Michael You might want to check out ansible-runner: https://ansible-runner.readthedocs.io/en/latest/container.html There's also something like molecule which is designed for testing roles, and can be used with docker: https://molecule.readthedocs.io/en/latest/index.html If you want to see

Re: [ansible-project] ansible-freeipa client install error

2020-03-16 Thread Dick Visser
Ah OK I see. In this case it's best to seek help from the author(s) of those roles. As a start, you could submit an issue at https://github.com/freeipa/ansible-freeipa/issues Regards On Mon, 16 Mar 2020 at 16:14, Andrew Meyer wrote: > > I am trying to install the the FreeIPA client on CentOS

Re: [ansible-project] ansible-freeipa client install error

2020-03-16 Thread Andrew Meyer
I am trying to install the the FreeIPA client on CentOS and RHEL 6,7,8 servers. I am using the ansible-freeipa module https://github.com/freeipa/ansible-freeipa The only problem I have encountered is the one I pasted regarding the keytabs or otp. Here is the command I used: ansible-playbook

Re: [ansible-project] Creating a AWS VPC with IPv6 addresses

2020-03-16 Thread Dick Visser
On Mon, 16 Mar 2020 at 15:21, Ralf Weber wrote: > Thanks a lot that worked fine for me also. Now given the issue list I may > run into other problems with getting IPv6 deployed, but I’ll try anyway. Good to hear. We are running many dual stack environments that are deployed with ansible. They do

Re: [ansible-project] Creating a AWS VPC with IPv6 addresses

2020-03-16 Thread Ralf Weber
Moin! On 14 Mar 2020, at 9:07, Dick Visser wrote: > This is indeed not supporting by the ec2_vpc_net module. > I am using an aws cli helper task, which needs to be conditional to > prevent adding the prefix when it's already there: > > - name: Ensure VPC is available > ec2_vpc_net: > name:

Re: [ansible-project] Another Ansible Question

2020-03-16 Thread Michael Cooper
Hello Felix, I kind of figured that was going to be the story. It would be nice if there was an easy way to do this, I am tring to get away from the VM route and go with containers. I will have to keep researching. Thanks, On Monday, March 16, 2020 at 6:17:07 AM UTC-4, Felix Fontein wrote: >

Re: [ansible-project] Win_ping failing with Correct Credentials

2020-03-16 Thread Piyush Bansal
Hello Jon, Thanks for writing to me..!! The memory leak hotfix is for PowerShellv3 but I am facing issues with PowerShellv4. Below are the connection variables I am using: ansible_ssh_port=5986 ansible_connection=winrm ansible_winrm_server_cert_validation=ignore ansible_winrm_transport=ssl

Re: [ansible-project] Another Ansible Question

2020-03-16 Thread 'Felix Fontein' via Ansible Project
Hi, according to the description on https://hub.docker.com/r/ansible/ansible the Docker image ansible/ansible is "[...] for automated testing of Ansible. They do not include Ansible and are not for end users." So please don't use that image if you want to run Ansible. I'm not sure whether there

[ansible-project] Another Ansible Question

2020-03-16 Thread Michael Cooper
Hey Guys, I am trying to get ansible working on docker. The image that I am using is ansible/ansible and there are no instructions for a run line on it. So this is what I tried but it doesn't work. docker run -dit --name cfANS --ip xxx.xxx.x.xx --network=CFSNET -p 22:22 -v

Re: [ansible-project] unable to create directory using ansible file module

2020-03-16 Thread Shifa Shaikh
@Dick your suggestion helped !! it works. On Monday, March 16, 2020 at 1:27:14 PM UTC+5:30, Dick Visser wrote: > > Ah OK yes, i see, you're right. > The issue is your quoting, as indicated by the error message. > Instead of: > >- file: path="{{ playbook_dir }}/dashboard/{{ my_result.name

Re: [ansible-project] Re: how to run one role out of a playbook host by host in serial one instead of linear or free

2020-03-16 Thread klingac
You can use throttle on block, hovewer it will not work as you need https://github.com/ansible/ansible/issues/64659#issuecomment-564604298 Dne neděle 15. března 2020 16:57:44 UTC+1 Kai Stian Olstad napsal(a): > > On 14.03.2020 14:06, Jelle de Jong wrote: > > I would like to request the feature

Re: [ansible-project] unable to create directory using ansible file module

2020-03-16 Thread Dick Visser
Ah OK yes, i see, you're right. The issue is your quoting, as indicated by the error message. Instead of: - file: path="{{ playbook_dir }}/dashboard/{{ my_result.name }} state=directory recurse=yes" Do this: - file: path="{{ playbook_dir }}/dashboard/{{ my_result.name }}" state=directory

Re: [ansible-project] unable to create directory using ansible file module

2020-03-16 Thread Vivek Kothawale
Hi shifa, Can you please check whether dashboard dir is present on remote server? Thanks, Vivek On Mon, Mar 16, 2020, 1:11 PM Shifa Shaikh wrote: > Dick Hi, The issue is not with the loop as I can see the correct value > populated using debug. > > Aslo, the correct value shows up in the error

Re: [ansible-project] unable to create directory using ansible file module

2020-03-16 Thread Shifa Shaikh
Dick Hi, The issue is not with the loop as I can see the correct value populated using debug. Aslo, the correct value shows up in the error output from the loop ... see below: fatal: [localhost]: FAILED! => {"changed": false, "msg": "file (/tmp/dashboard/APP state=directory recurse=yes) is

Re: [ansible-project] unable to create directory using ansible file module

2020-03-16 Thread Dick Visser
Hi you've missed a few basic things. The vars file contains a duplicate variable layers - that won't work. Also, you appear to want to loop over the variable layers, but you don't actually use it. Have a look at this URL, it has some nice examples of how loops work:

Re: [ansible-project] Ansible - errno 101 network is unreachable

2020-03-16 Thread Dick Visser
Hi Thanks for using ansible. To answer your question more information is needed. Could you please describe clearly all of the below: - Which commands did you run, and what actual output did you get (copied as plain text - not as screenshots, images, or other binary attachments). - What do the

[ansible-project] unable to create directory using ansible file module

2020-03-16 Thread Shifa Shaikh
Here is my variable file: cat vars.yml --- layers: - name: APP layers: - name: WLS Here is my playbook cat varloop.yml --- hosts: localhost vars_files: - vars.yml tasks: - name: Create sublinks based of bad.txt files include_tasks: "{{