[ansible-project] Re: aws_s3 module problem Ansible 2.4

2017-09-19 Thread Will Thames
On Wednesday, September 20, 2017 at 2:18:58 PM UTC+10, Will Thames wrote: > > > > On Wednesday, September 20, 2017 at 3:19:29 AM UTC+10, Arbab Nazar wrote: >> >> I have simple task to download file from s3 bucket which works fine with >> Ansible 2.3, when I have upgraded the ansible from 2.3 to

[ansible-project] Re: aws_s3 module problem Ansible 2.4

2017-09-19 Thread Will Thames
On Wednesday, September 20, 2017 at 3:19:29 AM UTC+10, Arbab Nazar wrote: > > I have simple task to download file from s3 bucket which works fine with > Ansible 2.3, when I have upgraded the ansible from 2.3 to 2.4, it complain > that I need to use the aws_s3 module instead of s3 which I did

Re: [ansible-project] Support looking up binary files as HTTP-based APIs are increasingly supporting uploading of BASE64 encoded binaries in JSON documents.

2017-09-19 Thread Brian Coca
Use the slurp task. lookups cannot do this because they are part of Jinja2 templating. -- -- Brian Coca -- 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

[ansible-project] Support looking up binary files as HTTP-based APIs are increasingly supporting uploading of BASE64 encoded binaries in JSON documents.

2017-09-19 Thread Behrang Saeedzadeh
Hi, This is in regards to #11594 . Many APIs these days allow embedding BASE64 encoded binary data in JSON documents. Here's an example from Databricks, wherein the "content" field

Re: [ansible-project] ansible 2.3.2.0 => 2.4.0.0 connection problems?

2017-09-19 Thread Brian Coca
Tracking bug here https://github.com/ansible/ansible/issues/27520 -- -- Brian Coca -- 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

Re: [ansible-project] Re: ANSIBLE_INVENTORY_ENABLED not picking up values

2017-09-19 Thread senorsmile
Running: ansible all -i inventory/backend/nodes.yml --list-hosts -vvv ansible 2.4.0.0 config file = /Users/shaun/Seafile/scripts/ansible/yaml_inventory/ansible.cfg configured module search path = ['/Users/shaun/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible

[ansible-project] Re: replace module. Please explain \1 \2

2017-09-19 Thread Gordon Messmer
Yes, those appear to be regex back-references. The documentation is here: http://docs.ansible.com/ansible/latest/replace_module.html -- 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] replace module. Please explain \1 \2

2017-09-19 Thread John Harmon
I am trying to use the replace module, and I see all of these examples with \1 and \2 in them. I assume these are for backrefs or soemthing? Can someone explain it to me? I am trying to append "sss" to my passwd and group lines in my nsswitch file. I haven't tested my code yet, but I would

Re: [ansible-project] Re: ANSIBLE_INVENTORY_ENABLED not picking up values

2017-09-19 Thread Brian Coca
could you run with -vvv and/or ANSIBLE_DEBUG=1? -- Brian Coca -- 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

Re: [ansible-project] AWX: Updating roles on project update/install

2017-09-19 Thread Mike Biancaniello
ahh, thank you. I will look there for answers. -- 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 post to this

Re: [ansible-project] AWX: Updating roles on project update/install

2017-09-19 Thread Andrew Latham
AWX has a mailing list https://groups.google.com/forum/#!forum/awx-project On Tue, Sep 19, 2017 at 3:15 PM, Mike Biancaniello wrote: > I am running AWX inside of some docker containers and can't get the > project_update job to install roles from my requirements.yml file. > >

[ansible-project] AWX: mounted playbook dir in docker

2017-09-19 Thread Mike Biancaniello
I am running AWX in docker containers and have mounted the playbooks directory (I modified local_docker/tasks/main.yml:"Activate AWX Task Container" to include a volume argument). I created a directory and a playbook and it shows up inside the container: $ docker exec -it awx_task /bin/ls -hal

[ansible-project] AWX: install python libs

2017-09-19 Thread Mike Biancaniello
I am playing around with AWX and want to load a role (or "project" I suppose is the new term) that has some custom libraries and filter_plugins. The problem is that these python scripts require py libs that were never installed in the docker image. Is there a way to configure an additional

[ansible-project] AWX: Updating roles on project update/install

2017-09-19 Thread Mike Biancaniello
I am running AWX inside of some docker containers and can't get the project_update job to install roles from my requirements.yml file. false . It successfully finds the file, but, for some reason, scm_full_checkout is always set to false. I modified

[ansible-project] Re: ANSIBLE_INVENTORY_ENABLED not picking up values

2017-09-19 Thread senorsmile
The items should NOT have quotes around them. Now I get the same as setting the env var from the cli: [WARNING]: Unable to parse > /Users/shaun_smiley/Seafile/scripts/ansible/yaml_inventory/inventory/backend/nodes.yml > > as an inventory source On Tuesday, September 19, 2017 at 1:03:12 PM

[ansible-project] Re: ANSIBLE_INVENTORY_ENABLED not picking up values

2017-09-19 Thread senorsmile
The ansible.cfg doesn't seem to be working either. I added the following to ansible.cfg enable_plugins = 'host_list', 'script', 'yaml' and now I see these errors: ansible all -i inventory/ --list-hosts [WARNING]: Failed to load inventory plugin, skipping 'host_list' > [WARNING]: Failed

Re: [ansible-project] ansible 2.3.2.0 => 2.4.0.0 connection problems?

2017-09-19 Thread Erik Purins
Ok Matt, Thanks for your advice. I'll get something posted shortly. -e On Tuesday, September 19, 2017 at 11:48:41 AM UTC-7, Matt Martz wrote: > > It looks like there may be a bug in the `reset_connection` meta task for > the ssh connection plugin. > > By the time `reset` is called, it looks like

[ansible-project] ANSIBLE_INVENTORY_ENABLED not picking up values

2017-09-19 Thread senorsmile
As specified here: https://github.com/ansible/ansible/issues/25321 we must now specify the inventory type, making yaml based inventory a higher precedence. I found the new cli env vars here: https://github.com/ansible/ansible/blob/stable-2.4/lib/ansible/config/base.yml I'm trying to

Re: [ansible-project] ansible 2.3.2.0 => 2.4.0.0 connection problems?

2017-09-19 Thread Matt Martz
It looks like there may be a bug in the `reset_connection` meta task for the ssh connection plugin. By the time `reset` is called, it looks like `self.host` is `None`, and as such, ssh is building an incorrect ControlPath. Please open an issue for this. On Tue, Sep 19, 2017 at 1:26 PM, Erik

[ansible-project] ansible 2.3.2.0 => 2.4.0.0 connection problems?

2017-09-19 Thread Erik Purins
Hi everyone, Today I made a new ansible virtualenv with 2.4.0.0 and dependencies. A task that worked before on 2.3.2.0 is stopping with a new error. After the task completes ok, the run stops with error: """ sending stop: ['ssh', '-vvv', '-C', '-o', 'ControlMaster=auto', '-o',

[ansible-project] aws_s3 module problem Ansible 2.4

2017-09-19 Thread Arbab Nazar
I have simple task to download file from s3 bucket which works fine with Ansible 2.3, when I have upgraded the ansible from 2.3 to 2.4, it complain that I need to use the aws_s3 module instead of s3 which I did and getting the following error: ─➤ansible-playbook -i localhost, playbook.yml

[ansible-project] Problem referencing variables

2017-09-19 Thread Dave Florek
Hi, I'm trying to see where I'm going wrong here: *Relevant code snippet:* - lineinfile: path: /home/"{{ new_user }}"/.ssh/ *Error message I get at execution:* ERROR! Syntax Error while loading YAML. The error appears to have been in '/opt/ansible/setup_scripts/create_user.yml':

Re: [ansible-project] I need a mentor

2017-09-19 Thread akshat ahuja
Thanks a lot for your help! On Sep 19, 2017 2:04 AM, "Stephen Granger" wrote: Hi, There are plenty of good documents to get started on contributing to Ansible http://docs.ansible.com/ansible/latest/dev_guide/index.html I'd start by looking at this, it will show you how

Re: [ansible-project] remote_tmp

2017-09-19 Thread Brian Coca
In some cases, mostly when you 'become' an unprivileged user, Ansible needs to use a 'system temp' which will be /tmp by default, /var/tmp if that is the configured remote_tmp. This is inconvenient because currently it is a global setting, we do plan to making it a connection variable to allow a

[ansible-project] remote_tmp

2017-09-19 Thread 'Siva' via Ansible Project
Hi, We have overridden the remote_tmp as "$HOME/.ansible/tmp" in the ansible_cfg but still ansible uses the '/tmp' and the entire execution fails because we dont have '/tmp' allocated with enough space to perform our execution. Can anyone help us where we might go wrong? Regards, Siva --

[ansible-project] Re: Ansible 2.4.0 FINAL has been released!

2017-09-19 Thread Toshio Kuratomi
One other important piece of information ffor those that don't read changelogs ;-) is that Ansible-2.4 drops support for Python-2.4 and Python-2.5 on the managed machines. This means that users who want to manage machines that have Python-2.4 or Python-2.5 on them will need to install Python-2.6

Re: [ansible-project] can ansible gather info on network different devices?

2017-09-19 Thread Ganesh Nalawade
Please refer this link http://docs.ansible.com/ansible/latest/list_of_network_modules.html for the list of available network modules. Use *_facts modules based on platform (eg: ios_facts, junos_facts) which will fetch device information that you are looking for. Regards, Ganesh On Sun, Sep 17,

[ansible-project] How to update or add string at the end of a line

2017-09-19 Thread phatak . salil
Hello Guys, I want to add /append a line using anisble .How can this be achieved. I have tried the lineinfile module ,but it dosen't seem to work .Is there a better way to do that ,Below is what I need to achieve Regards, Salil -- You received this message because you are subscribed to

Re: [ansible-project] Re: How to login to Avocent servers and run ansible playbooks on the Network devices which are connected serially

2017-09-19 Thread Ganesh Nalawade
Ansible does not support serial console connection. However, there are other ways to bootstrap a working ssh connection to the network device and that can be managed by Ansible. One possible way is you can use pyserial to write a script that connects to the

[ansible-project] How can Integrate Ansible Tower with Active Directory

2017-09-19 Thread Nuwan Vithanage
*HOW CAN I INTEGRATING ANSIBLE TOWER WITH LDAP / ACTIVE DIRECTORY Version Tower 3.1.5 * -- 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