[ansible-project] Re: "msg": "Local object for PUT does not exist"

2020-04-15 Thread Serin Abraham
thank you Dick it worked. I'm using root since its just for practise. anyway I will be mindful of that. but the thing is I was able to install a ec2 and create a s3 bucket without localhost. anyway will need to dig-in deeper. thanks again and appreciate it and thanks David for your help as-w

Re: [ansible-project] Re: Need some suggestion

2020-04-15 Thread Rahul Kumar
Any update on this ? Hope this question is still alive and not lost? Rahul On Wed, 15 Apr 2020 at 17:41, Rahul Kumar wrote: > THanks Racke , I would be waiting for same ! > > Rahul > > On Wed, 15 Apr 2020 at 15:08, Stefan Hornburg (Racke) > wrote: > >> On 4/15/20 11:23 AM, Rahul Kumar wrote: >

Re: [ansible-project] telnet issue

2020-04-15 Thread Kai Stian Olstad
On Mon, Apr 13, 2020 at 01:37:13AM -0700, Zaldy B wrote: > playbook is just straight forward: > > > --- > - name: Telnet do show version for IOS > hosts: Cisco_Telnet > gather_facts: false > connection: local > > tasks: > - name: show version > telnet: > user: "{{ usern

Re: [ansible-project] Re: "msg": "Local object for PUT does not exist"

2020-04-15 Thread Dick Visser
According to the docs aws modules should be run against localhost: https://docs.ansible.com/ansible/latest/scenario_guides/guide_aws.html Please try that. Also running ansible as root is both unnecessary and unsafe. So once you got things to work at all, take it a step further and fix that as w

[ansible-project] Re: "msg": "Local object for PUT does not exist"

2020-04-15 Thread Serin Abraham
root@master:~/playbook# cat create_s3.yml --- - hosts: ubuntu remote_user: root vars_files: - keys.yml tasks: - name: create a s3 bucket aws_s3: aws_access_key: "{{ AWS_ACCESS_KEY_ID }}" aws_secret_key: "{{ AWS_SECRET_ACCESS_KEY }}" ec2_region: "{{ AWS_REGION }}"

[ansible-project] Re: "msg": "Local object for PUT does not exist"

2020-04-15 Thread Serin Abraham
permission: public-read -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit

Re: [ansible-project] run_once not working to register value of curl

2020-04-15 Thread Dan Linder
When you say "variable is not available between plays in the same playbook", that is a different question than the one originally asked in this thread. I'd suggest you post a very minimal playbook showing the error so we can reproduce it and assist you further with that problem. You wrote "I t

[ansible-project] "msg": "Local object for PUT does not exist"

2020-04-15 Thread David Foley
Remote_user I would do connection: local, also what's the folder permission on that playbook folder? -- 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 ans

[ansible-project] "msg": "Local object for PUT does not exist"

2020-04-15 Thread Serin Abraham
Hi, I just started using ansible for sometime now. Not sure what I'm doing wrong. I already created a s3 bucket successfully and then trying to upload a file(awscliv2.zip) to s3 bucket but it fails with below error *""msg": "Local object for PUT does not exist"* playbook looks like below

[ansible-project] "msg": "Local object for PUT does not exist"

2020-04-15 Thread serin abraham
Hi, I just started using ansible for sometime now. Not sure what I'm doing wrong. I already created a s3 bucket successfully and then trying to upload a file to s3 bucket but it fails with below error ""msg": "Local object for PUT does not exist" playbook looks like below: - name: uplo

Re: [ansible-project] Re: [HOSTVARS][MERGED] Unexpected behavior with merge variables of different host which are in several groups

2020-04-15 Thread Stefan Hornburg (Racke)
On 4/15/20 8:41 PM, Baptiste Doublet wrote: > Hi, > > thanks for your reply. > > Yeah that's it. etcd_ip and postgresql_ip are in separate host. But I don't > understand, there are already on the host > part, aren't it ? > what is the syntax you think of ? Try to remove vars: from your inventor

Re: [ansible-project] Need help on json query call in ansible

2020-04-15 Thread Stefan Hornburg (Racke)
On 4/15/20 3:52 PM, Suresh Karpurapu wrote: > Hi Ansible Guru's > > I am using the CSV file as below for nfs volume migration as we have 1000 > servers with 100 volumes. Hence, i would like > to make to host inventory using add_host file instead using inventory file. > However, the loop is faili

[ansible-project] Re: [HOSTVARS][MERGED] Unexpected behavior with merge variables of different host which are in several groups

2020-04-15 Thread Baptiste Doublet
Hi, thanks for your reply. Yeah that's it. etcd_ip and postgresql_ip are in separate host. But I don't understand, there are already on the host part, aren't it ? what is the syntax you think of ? This is the playbook which should get the etcd_ip ``` - hosts: etcd_cluster become: true become_m

[ansible-project] Need help on json query call in ansible

2020-04-15 Thread Suresh Karpurapu
Hi Ansible Guru's I am using the CSV file as below for nfs volume migration as we have 1000 servers with 100 volumes. Hence, i would like to make to host inventory using add_host file instead using inventory file. However, the loop is failing when i use add_host module. Hence, i tried using jso

Re: [ansible-project] Need Assistance With Ansible Error

2020-04-15 Thread Andrew Latham
I have seen issues with usernames or home directories that include spaces, I see your home directory has a dot "g.james". Try this in another path. On Tue, Apr 14, 2020 at 9:46 PM George James wrote: > I am new to ansible. > > I create an inventory file > > [web] > 167.172.xxx.xxx ansible_connec

Re: [ansible-project] Need help regarding Ansible Role/Playbooks documentation

2020-04-15 Thread Andrew Latham
It is just YAML you can do something like https://pypi.org/project/sphinxcontrib-yaml/ and I am sure there are parsing rules that could address variables. On Tue, Apr 14, 2020 at 7:46 AM Rahul Kumar wrote: > Hi Ansible Gurus, > I have many Ansible Roles and I want to document each and every vari

Re: [ansible-project] Re: Need some suggestion

2020-04-15 Thread Rahul Kumar
THanks Racke , I would be waiting for same ! Rahul On Wed, 15 Apr 2020 at 15:08, Stefan Hornburg (Racke) wrote: > On 4/15/20 11:23 AM, Rahul Kumar wrote: > > Thanks Dick , would you like to suggest some thing on this ? > > > > Rahul > > Your request is rather theoretical. I would add some use c

Re: [ansible-project] Re: Tower - Github CI/CD Unidirectional

2020-04-15 Thread Stefan Hornburg (Racke)
On 4/15/20 1:54 PM, Mixou Mangamba wrote: > Anybody can say if this is possible or not? > > At any rate, Tower is not a subject of this list. Please contact RedHat support. Regards Racke > On Monday, April 13, 2020 at 1:18:56 AM UTC-4, Mixou Mangamba wrote: > > Hi, > > I am

Re: [ansible-project] Re: Tower - Github CI/CD Unidirectional

2020-04-15 Thread Kai Stian Olstad
On Wed, Apr 15, 2020 at 04:54:26AM -0700, Mixou Mangamba wrote: > Anybody can say if this is possible or not? This list is for Ansible and not Tower. Contact Redhat support for help on Tower. -- Kai Stian Olstad -- You received this message because you are subscribed to the Google Groups "Ans

[ansible-project] Re: Tower - Github CI/CD Unidirectional

2020-04-15 Thread Mixou Mangamba
Anybody can say if this is possible or not? On Monday, April 13, 2020 at 1:18:56 AM UTC-4, Mixou Mangamba wrote: > > Hi, > > I am using Tower 2.9.5 to try to reproduce the CI/CD setup documented > here: > https://keithtenzer.com/2019/06/24/ci-cd-with-ansible-tower-and-github/ > I have the workf

[ansible-project] Re: Send data from Google Compute Engine to Google Pub/Sub using Ansible

2020-04-15 Thread 'Jam Volkov' via Ansible Project
The executable path is different from the module location path. So I worked with virtualenv and it's ok now. On Tuesday, April 14, 2020 at 8:39:17 PM UTC+2, Jam Volkov wrote: > > I would like to send data from Google vm instance to Google Pub/Sub using > Ansible. > Ansible playbook > > --- > -

[ansible-project] Re: Send data from Google Compute Engine to Google Pub/Sub using Ansible

2020-04-15 Thread 'Jam Volkov' via Ansible Project
The executable path is different from the module location path. So I worked with virtualenv and it's ok now. On Tuesday, April 14, 2020 at 8:39:17 PM UTC+2, Jam Volkov wrote: > > I would like to send data from Google vm instance to Google Pub/Sub using > Ansible. > Ansible playbook > > --- > -

Re: [ansible-project] ansible-2.5.9 install detailed error

2020-04-15 Thread Dick Visser
Hi Use python3 instead of python2. On a related note - what is the reason for installing an unmaintained and EOL version of ansible? On Wed, 15 Apr 2020 at 11:41, Xiaocui Li wrote: > > > Installed /usr/local/lib/python2.7/dist-packages/paramiko-2.7.1-py2.7.egg > Searching for jinja2 > Reading h

Re: [ansible-project] What is the proper way to check for required variables?

2020-04-15 Thread TOHID MANER
Hi, You can try below solution to check all required parameter (the parameter user has to specify while running the playbook/script) 1. Your var file - required_vars.yml required_vars: - var1 - var2 - var3 2. In task, include your var file - include_vars: ../vars/required_vars.yml 3. Task

[ansible-project] ansible-2.5.9 install detailed error

2020-04-15 Thread Xiaocui Li
Installed /usr/local/lib/python2.7/dist-packages/paramiko-2.7.1-py2.7.egg Searching for jinja2 Reading https://pypi.python.org/simple/jinja2/ Downloading https://files.pythonhosted.org/packages/36/cc/5cd404a00f1b93bc830505c7a78553d9f49f7152c336466fc206790cc26c/Jinja2-3.0.0a1.tar.gz#sha256=c922560

Re: [ansible-project] Re: Need some suggestion

2020-04-15 Thread Stefan Hornburg (Racke)
On 4/15/20 11:23 AM, Rahul Kumar wrote: > Thanks Dick , would you like to suggest some thing on this ? > > Rahul Your request is rather theoretical. I would add some use cases to increase chances on (sensible) answers. Regards Racke > > On Tue, 14 Apr 2020 at 13:31, Dick Visser

[ansible-project] ansible-2.5.9 install error

2020-04-15 Thread Xiaocui Li
I tried to install ansible 2.5.9 on debian9 os:python-2.7 install steps: 1. wget https://releases.ansible.com/ansible/ansible-2.5.9.tar.gz2. tar zxvf ansible-2.5.9.tar.gz3. cd ansible-2.5.9.tar.gz4. python setup.py build5. python setup.py install it find Best match: Jinja2 3.0.0a1, which need

Re: [ansible-project] Re: Need some suggestion

2020-04-15 Thread Rahul Kumar
Thanks Dick , would you like to suggest some thing on this ? Rahul On Tue, 14 Apr 2020 at 13:31, Dick Visser wrote: > On Tue, 14 Apr 2020 at 07:08, Rahul Kumar wrote: > > > > Guys any help on this ? > > Not yet apparently, but given that this list is run by volunteers and > it's Easter holiday

[ansible-project] REmote script does not run on some hosts

2020-04-15 Thread Pooja
Hello , I am new to Ansible and not sure if am doing anything wrong. I have an ansible playbook to start the cassandra process. I see that the remote init script runs perfectly on some hosts and does not on other. The script just does not start the process nor does print any error. Help me out

Re: [ansible-project] run_once not working to register value of curl

2020-04-15 Thread Nicola Contu
I am sorry Dan, I think I did not understand what you want to debug. This playbook does not work and I can't make it working. Sorry about that. Btw, the issue is that the variable is not available between plays in the same playbook. I just want to know how to pass those variable to the next play

[ansible-project] Re: Need Assistance With Ansible Error

2020-04-15 Thread David Foley
It's not refusing the connection, but no harm in trying; Did you add the key to known hosts file? https://www.techrepublic.com/article/how-to-easily-add-an-ssh-fingerprint-to-your-knownhosts-file-in-linux/ -- You received this message because you are subscribed to the Google Groups "Ansible