Re: [ansible-project] Creating users in VCD Unsupported API version

2020-07-20 Thread Abhijeet Kasurde
Hi Nagesh, Where is this vcd_user module coming from? Could you please also paste playbook? On Tue, Jul 21, 2020 at 8:35 AM Nagesh sheregar wrote: > Hi taem, > > did you guys see this error ? > > API version is 34 > > Unsupported API version. Received '{api_version}' but \"\n >

Re: [ansible-project] Re: authenticity of host cant be established

2020-07-20 Thread Tony Wong
thanks for catching that. now getting this 192.168.0.127 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 192.168.0.127 port 22: Operation not permitted", "unreachable": true } 192.168.0.151 | UNREACHABLE! => { "changed":

Re: [ansible-project] Re: authenticity of host cant be established

2020-07-20 Thread ej
Please change ansible_ssh_pass=vagrant to ansible_ssh_user=vagrant -- 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] Creating users in VCD Unsupported API version

2020-07-20 Thread Nagesh sheregar
Hi taem, did you guys see this error ? API version is 34 Unsupported API version. Received '{api_version}' but \"\n ^\nSyntaxError: invalid syntax\n TASK [vcd : VCD USER creation]

[ansible-project] New Ansible release 2.9.11

2020-07-20 Thread Rick Elrod
Hi all- we're happy to announce that the general release of Ansible 2.9.11 is now available! How do you get it? -- $ pip install ansible==2.9.11 --user The tar.gz of the release can be found here: * 2.9.11 https://releases.ansible.com/ansible/ansible-2.9.11.tar.gz SHA256:

Re: [ansible-project] Re: authenticity of host cant be established

2020-07-20 Thread Tony Wong
Thanks now getting a different message (ansible) Tonys-MacBook-Pro:ansible tonywong$ ansible -m ping -i hosts servers 192.168.0.127 | FAILED! => { "msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program" } 192.168.0.151 | FAILED! => { "msg": "to use

Re: [ansible-project] Re: authenticity of host cant be established

2020-07-20 Thread ej
Also, check this YouTube video by Jeff Geerling that covers inventory files and Vagrant: https://youtu.be/7kVfqmGtDL8?t=1226(builds an inventory) https://youtu.be/7kVfqmGtDL8?t=601 (builds a Vagrantfile) I highly recommend watching his whole Ansible 101 series and getting his

Re: [ansible-project] Re: authenticity of host cant be established

2020-07-20 Thread Tony Wong
ansible -m ping -i hosts all ansible_ssh_private_key=~/.vagrant.d/insecure_private_key | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname ansible_ssh_private_key=~/.vagrant.d/insecure_private_key: nodename nor servname

Re: [ansible-project] Re: authenticity of host cant be established

2020-07-20 Thread Tony Wong
(ansible) Tonys-MacBook-Pro:ansible tonywong$ ansible -m ping -i hosts servers The authenticity of host '192.168.0.151 (192.168.0.151)' can't be established. ECDSA key fingerprint is SHA256:7qu28ehihcaflJvAR+UT9g4bAK4khkIh1gAZluMC1fg. Are you sure you want to continue connecting

Re: [ansible-project] Help on uri module

2020-07-20 Thread Gajendra Gaikwad
Thank you Matt and Visser I will check and let you know. On Tue, 21 Jul 2020, 01:48 Matt Martz, wrote: > Are you actually running into a problem? Also, the `timeout` parameter > affects all blocking operations, including recv/read. > > The optional *timeout* parameter specifies a timeout in

Re: [ansible-project] Help on uri module

2020-07-20 Thread Matt Martz
Are you actually running into a problem? Also, the `timeout` parameter affects all blocking operations, including recv/read. The optional *timeout* parameter specifies a timeout in seconds for blocking operations like the connection attempt (if not specified, the global default timeout setting

Re: [ansible-project] Help on uri module

2020-07-20 Thread Gajendra Gaikwad
request. *timeout* integer *Default:* 30 The socket level timeout in seconds "Socket Timeouts. ... Socket timeouts can occur when attempting to connect to a remote server, or during communication, especially

Re: [ansible-project] Help on uri module

2020-07-20 Thread Dick Visser
https://docs.ansible.com/ansible/latest/modules/uri_module.html#parameter-timeout On Mon, 20 Jul 2020 at 20:38, Gajendra Gaikwad wrote: > > Hello All, > I would like to fetch some data using uri module, but little concern is that > uri module should wait for 30 second to complete to load the

Re: [ansible-project] Reduce duplicate/repeated steps in playbook

2020-07-20 Thread Gajendra Gaikwad
Yes check if this logic works 1. Create a one group in inventory with all child group masters, organization and doxy So that you can run the restart role 2. Set the variables on group level masters, organization and doxy So that your role will automatically read this variables while executing

[ansible-project] Re: authenticity of host cant be established

2020-07-20 Thread ej
OK. Please post your inventory file. Also, try running "*ansible -m ping -i inventory app -vvv*" so we can see more detail. And, can you be sure that the private key file is good by doing "*ssh -i ~/.vagrant.d/insecure_private_key vagrant@**192.168.0.183*"? If you can ssh to the managed

[ansible-project] Help on uri module

2020-07-20 Thread Gajendra Gaikwad
Hello All, I would like to fetch some data using uri module, but little concern is that uri module should wait for 30 second to complete to load the page (page has same dynamic data which required 30 second to load (asp) ) How do i meet this requirement. Thanks in Advance. Regards GG. --

Re: [ansible-project] Re: authenticity of host cant be established

2020-07-20 Thread Tony Wong
i did. thats what i have On Mon, Jul 20, 2020 at 9:01 AM ej wrote: > From what you've said, I think you just need to point to the vagrant > private key in your hosts file. > > ansible_user=vagrant > ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key > > On Monday, July 20, 2020 at

Re: [ansible-project] Ansible AWX on Amazon Linux 2?

2020-07-20 Thread Dick Visser
The reason you didn't get a response might be that this list is for Ansible, the tool that is used by awx and tower. Both of them have their own support channels. On Mon, 20 Jul 2020 at 19:08, Daniel wrote: > I tried this question before with different Subject line last week with no > success.

[ansible-project] Need some assistance with Jina templates

2020-07-20 Thread ameya agashe
https://stackoverflow.com/questions/63000499/unable-to-deploy-cloud-formation-via-ansible-as-jinja-templates Thanks and Regards Ameya -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails

[ansible-project] Ansible AWX on Amazon Linux 2?

2020-07-20 Thread Daniel
I tried this question before with different Subject line last week with no success. This time I will try with a more direct subject line. I have a task to evaluate Ansible AWX to replace CHEF community edition. I spun up an Amazon Linux to use for the Eval of Ansible Tower, no go, but we are

Re: [ansible-project] The following modules failed to execute: setup

2020-07-20 Thread Nagesh sheregar
Hi Matt, i have enabled the scl python27 and it worked, is this not recommended ? scl enable python27 bash i have installed the pip using below process: https://access.redhat.com/solutions/1519803 Thanks and Regards Nagesh On Mon, Jul 20, 2020 at 11:05 AM Matt Martz wrote: > It sounds

Re: [ansible-project] Reduce duplicate/repeated steps in playbook

2020-07-20 Thread Pawan Kumar
Hi Team Any thoughts on reducing this repetition !! Thanks On Mon, 20 Jul 2020, 00:28 Pawan Kumar, wrote: > > > > > > Hi ,Team > > Require your help to reduce repeated steps , in the following playbook ,3 > roles are common ,but 2 roles( permission.yml & reload_base_service.yml) > variable

Re: [ansible-project] The following modules failed to execute: setup

2020-07-20 Thread Matt Martz
It sounds like you have a `_io.so` file that was compiled against a different python version, from that which is attempting to use it. Using python from an SCL as your ansible_python_interpreter is not just an easy 1 and done, by using the correct path. An SCL sets things like LD_LIBRARY_PATH

[ansible-project] Re: authenticity of host cant be established

2020-07-20 Thread ej
>From what you've said, I think you just need to point to the vagrant private key in your hosts file. ansible_user=vagrant ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key On Monday, July 20, 2020 at 8:58:20 AM UTC-6, Tony Wong wrote: > > I setup a few vagrant vms and I ccan ssh

[ansible-project] The following modules failed to execute: setup

2020-07-20 Thread Nagesh sheregar
Hi Team, did anyone face this issue, it was working fine but today i am getting below error not sure what happened: fatal: [localhost]: FAILED! => { "ansible_facts": {}, "changed": false, "failed_modules": { "setup": { "exception": "Traceback (most recent call

Re: [ansible-project] Formatting registered output

2020-07-20 Thread Albert Short
Vladimir, finally got some time to look at this again & I have the following questions: The fix you provided works by giving me the output, however I am having trouble getting to use it. First the output looks as follows: TASK [debug]

[ansible-project] hostname as a variable in 'groups' magic variable

2020-07-20 Thread David A
I'm trying to set a fact on the localhost (the ansible control node) about a remote hosts ip using magic variables. After searching online someone suggested to do the following - name: set my_fact_var fact set_fact: my_fact_var: "{{ hostvars[item]['ansible_default_ipv4']['address']