# Latest

**URL:** https://forum.ansible.com/latest.md?page=758

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

**Page:** 759

---

## [Some parameters are shown as illegal while running --check option in playbook](https://forum.ansible.com/t/some-parameters-are-shown-as-illegal-while-running-check-option-in-playbook/21531)

<div class="topic-metadata">

**Author:** [@santosh.ghosh](https://forum.ansible.com/u/santosh.ghosh)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 9:33pm UTC](https://forum.ansible.com/t/some-parameters-are-shown-as-illegal-while-running-check-option-in-playbook/21531 "2016-05-25T21:33:09Z")

</div>

Hi All, I am trying to do a syntax check on all my .yaml files before running ansible-playbook. I am using version 2.0.2.0. However some modules give error saying that they are “illegal parameters” in an Ansible play. I…

---

## [Assign the result from a powershell script to ansible playbook variable](https://forum.ansible.com/t/assign-the-result-from-a-powershell-script-to-ansible-playbook-variable/21556)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 4\
**Last updated:** [May 25, 2016, 8:26pm UTC](https://forum.ansible.com/t/assign-the-result-from-a-powershell-script-to-ansible-playbook-variable/21556 "2016-05-25T20:26:24Z")

</div>

Control Node: CentOS 7 Ansible 2.1 Remote Node: Windows 7 Powershell 3 I’m running a powershell script (from my playbook) that returns a number via stdout. How do I assign the result (6999) to my playbo…

---

## [ec2.results is not being defined](https://forum.ansible.com/t/ec2-results-is-not-being-defined/21524)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 8\
**Last updated:** [May 25, 2016, 7:36pm UTC](https://forum.ansible.com/t/ec2-results-is-not-being-defined/21524 "2016-05-25T19:36:23Z")

</div>

ansible ver=2.0.2 When I’m registering the ec2 var isn’t results suppose to be automatically defined as the results of what was registered in the variable. I’m getting this when trying to debug the ec2.results var: TAS…

---

## [Ansible with Windows - 401 Error](https://forum.ansible.com/t/ansible-with-windows-401-error/21452)

<div class="topic-metadata">

**Author:** [@Bud\_Calabrese](https://forum.ansible.com/u/Bud_Calabrese)\
**Replies:** 20\
**Last updated:** [May 25, 2016, 7:20pm UTC](https://forum.ansible.com/t/ansible-with-windows-401-error/21452 "2016-05-25T19:20:36Z")

</div>

I am working on getting Windows with Ansible working. I have a CentOS 7 control machine joined to my AD domain. I ran through the steps http://docs.ansible.com/ansible/intro\_windows.html. When I tried the \[bud@ansible a…

---

## [Playbook help - syntax](https://forum.ansible.com/t/playbook-help-syntax/21554)

<div class="topic-metadata">

**Author:** [@Bud\_Calabrese](https://forum.ansible.com/u/Bud_Calabrese)\
**Replies:** 4\
**Last updated:** [May 25, 2016, 7:02pm UTC](https://forum.ansible.com/t/playbook-help-syntax/21554 "2016-05-25T19:02:37Z")

</div>

I am working on a Ansible file that will update our Windows boxes instead of using SCCM. I keep getting an error. Here is my playbook. --- - hosts: Windows connection: winrm tasks: - name: Install Critical Updat…

---

## [Changing UFW rules](https://forum.ansible.com/t/changing-ufw-rules/21567)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 5:55pm UTC](https://forum.ansible.com/t/changing-ufw-rules/21567 "2016-05-25T17:55:52Z")

</div>

Does anyone have a solution for dealing with changes to UFW rules in Ansible? The issue is that occasionally, I have to change a rule in some way (change IPs/networks, change port) but the old rule still remains. I could…

---

## [Error when using mysql\_db to assign privileges in MySQL on RDS.](https://forum.ansible.com/t/error-when-using-mysql-db-to-assign-privileges-in-mysql-on-rds/21557)

<div class="topic-metadata">

**Author:** [@Daniel\_McQuillen](https://forum.ansible.com/u/Daniel_McQuillen)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 3:29pm UTC](https://forum.ansible.com/t/error-when-using-mysql-db-to-assign-privileges-in-mysql-on-rds/21557 "2016-05-25T15:29:31Z")

</div>

Hi all, I’ve been working with Ansible as I try to set up a specific configuration for Open EdX (the open source MOOC) to work with MySQL hosted by Amazon’s RDS service. At one point in the Open EdX ansible plays, it t…

---

## [Ansible playbook help](https://forum.ansible.com/t/ansible-playbook-help/21545)

<div class="topic-metadata">

**Author:** [@aaron.trujillo](https://forum.ansible.com/u/aaron.trujillo)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 3:25pm UTC](https://forum.ansible.com/t/ansible-playbook-help/21545 "2016-05-25T15:25:17Z")

</div>

I am attempting to add a task within my playbook that alters a conf file. I want to add text within a selected line. I don’t want to delete the line and then add the line back with the added text I need the line to remai…

---

## [Ansible 2.1.0 RC4 is ready for testing](https://forum.ansible.com/t/ansible-2-1-0-rc4-is-ready-for-testing/21515)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 2\
**Last updated:** [May 25, 2016, 3:22pm UTC](https://forum.ansible.com/t/ansible-2-1-0-rc4-is-ready-for-testing/21515 "2016-05-25T15:22:28Z")

</div>

Hi all, we’re happy to announce that RC4 for 2.1.0 is now available for testing. This updated release candidate fixes two more bugs (one very long standing and one a result of a change in this release): Fixes a bug wh…

---

## [Ansible 2.2 ios modules are failing with message "Failed to connect to the host via ssh."](https://forum.ansible.com/t/ansible-2-2-ios-modules-are-failing-with-message-failed-to-connect-to-the-host-via-ssh/21548)

<div class="topic-metadata">

**Author:** [@davis\_mathew\_kuriako](https://forum.ansible.com/u/davis_mathew_kuriako)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 3:22pm UTC](https://forum.ansible.com/t/ansible-2-2-ios-modules-are-failing-with-message-failed-to-connect-to-the-host-via-ssh/21548 "2016-05-25T15:22:09Z")

</div>

I’m not able to run ios\_command module in Ansible 2.1 for executing commands on my cisco routers. I’ve written a playbook for testing ios\_command module on cisco routers. Following is the playbook I wrote \`

---

## [how to use insertbefore/after correctly?](https://forum.ansible.com/t/how-to-use-insertbefore-after-correctly/21555)

<div class="topic-metadata">

**Author:** [@aaron.trujillo](https://forum.ansible.com/u/aaron.trujillo)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 2:55pm UTC](https://forum.ansible.com/t/how-to-use-insertbefore-after-correctly/21555 "2016-05-25T14:55:31Z")

</div>

lineinfile: dest=/etc/rsyslog.conf insertafter=“\*.\*;auth,authpriv.none” regexp=“\*.\*;auth,authpriv.none” line=“Listen 8080” The only thing that happens here is Listen 8080 replaces the .;auth,authpriv.none line. should i…

---

## [append users to another group](https://forum.ansible.com/t/append-users-to-another-group/21560)

<div class="topic-metadata">

**Author:** [@Marc\_Roelofs](https://forum.ansible.com/u/Marc_Roelofs)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 2:55pm UTC](https://forum.ansible.com/t/append-users-to-another-group/21560 "2016-05-25T14:55:28Z")

</div>

I am trying to figure out how to generate a list of users on a remote machine who are currently already a member of group A , and append them all to group B Is this possible ? Could not find a way to lookup existing us…

---

## [Run custom lookups in a file a then copy this file to another destination](https://forum.ansible.com/t/run-custom-lookups-in-a-file-a-then-copy-this-file-to-another-destination/21566)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [May 25, 2016, 2:49pm UTC](https://forum.ansible.com/t/run-custom-lookups-in-a-file-a-then-copy-this-file-to-another-destination/21566 "2016-05-25T14:49:23Z")

</div>

Custom lookup should still be invoked using the lookup function, something like: myproperty={{ lookup(‘my\_custom\_lookup’, my\_custom\_var1) }} And you would need to use the template module as a task to get that templatin…

---

## [Whitespace in comma-delimited lists](https://forum.ansible.com/t/whitespace-in-comma-delimited-lists/21544)

<div class="topic-metadata">

**Author:** [@Ricky](https://forum.ansible.com/u/Ricky)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 2:47pm UTC](https://forum.ansible.com/t/whitespace-in-comma-delimited-lists/21544 "2016-05-25T14:47:20Z")

</div>

I was hunting down the cause to an error message I received when adding a user to some groups. - name: users | create app remote user user: name: "{{ app\_remote\_user }}" groups: adm, wheel createhome: yes…

---

## [Ansible 2.1.0.0-1 FINAL has been released!](https://forum.ansible.com/t/ansible-2-1-0-0-1-final-has-been-released/21564)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 1:56pm UTC](https://forum.ansible.com/t/ansible-2-1-0-0-1-final-has-been-released/21564 "2016-05-25T13:56:54Z")

</div>

Hi all, we’re very happy to announce that Ansible 2.1 has been released! On the networking front, we’ve included managing networking infrastructure as first-order feature set in Ansible–no separate download required. We…

---

## [Issue 15405 : Synchronized failed with delegate\_to and sudo password](https://forum.ansible.com/t/issue-15405-synchronized-failed-with-delegate-to-and-sudo-password/21335)

<div class="topic-metadata">

**Author:** [@Guillaume\_Dufour](https://forum.ansible.com/u/Guillaume_Dufour)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 1:53pm UTC](https://forum.ansible.com/t/issue-15405-synchronized-failed-with-delegate-to-and-sudo-password/21335 "2016-05-25T13:53:25Z")

</div>

Hello, i found a regression (maybe it’s a normal change of API) on the synchronized module on the 2.0.1. I try on 1.9.5 and it’ work. My use case is : i have a bastion to access to all host and my ssh config use the…

---

## [Group vars lookup pipe](https://forum.ansible.com/t/group-vars-lookup-pipe/21541)

<div class="topic-metadata">

**Author:** [@Meher\_Garda](https://forum.ansible.com/u/Meher_Garda)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 1:42pm UTC](https://forum.ansible.com/t/group-vars-lookup-pipe/21541 "2016-05-25T13:42:41Z")

</div>

In my group\_vars folder , I have a file which has the following scheduletime: 2016-09-01 08:41:15 stime: “{{lookup(‘pipe’,‘date +%Y-%m-%dT%H:%M:%SZ -d ‘+{{ scheduletime }}+’’)}}” I want to provide human readable time …

---

## [Why items automaticaly skipped when i use with\_items in "include" module ??](https://forum.ansible.com/t/why-items-automaticaly-skipped-when-i-use-with-items-in-include-module/21559)

<div class="topic-metadata">

**Author:** [@Clement\_VALENTIN](https://forum.ansible.com/u/Clement_VALENTIN)\
**Replies:** 0\
**Last updated:** [May 25, 2016, 9:46am UTC](https://forum.ansible.com/t/why-items-automaticaly-skipped-when-i-use-with-items-in-include-module/21559 "2016-05-25T09:46:21Z")

</div>

Hi, I encounter a bug when i want to use “with\_items” in include file when module “include” already use 'with\_items"… Exemple : tasks/main.yml : include: ‘includes/filesystem.yml’ vars: project\_config: “{{ item }}…

---

## [Using make to install](https://forum.ansible.com/t/using-make-to-install/21558)

<div class="topic-metadata">

**Author:** [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Replies:** 1\
**Last updated:** [May 25, 2016, 8:22am UTC](https://forum.ansible.com/t/using-make-to-install/21558 "2016-05-25T08:22:35Z")

</div>

Hello, I am trying to install perl module for nagiosgraph-1.5.2 with ansible which can be installed manually with three steps 1\> perl Makefile.PL 2\> gmake 3\> gmake install afetr 3\> gmake install nagiosgraph asking …

---

## [Q: How to use "major" portion of {{ ansible\_distribution\_version }} for conditional imports?](https://forum.ansible.com/t/q-how-to-use-major-portion-of-ansible-distribution-version-for-conditional-imports/13166)

<div class="topic-metadata">

**Author:** [@Dale\_Quigg](https://forum.ansible.com/u/Dale_Quigg)\
**Replies:** 4\
**Last updated:** [May 25, 2016, 1:16am UTC](https://forum.ansible.com/t/q-how-to-use-major-portion-of-ansible-distribution-version-for-conditional-imports/13166 "2016-05-25T01:16:47Z")

</div>

Looking at the Conditional Imports section of the Advanced Playbook docs, I see this example vars\_files: “vars/common.yml” \[ “vars/{{ ansible\_os\_family }}.yml”, “vars/os\_defaults.yml” \] I need to differentiate betwee…

---

## [Ansible Expect Module](https://forum.ansible.com/t/ansible-expect-module/21530)

<div class="topic-metadata">

**Author:** [@Veda\_K](https://forum.ansible.com/u/Veda_K)\
**Replies:** 2\
**Last updated:** [May 24, 2016, 8:29pm UTC](https://forum.ansible.com/t/ansible-expect-module/21530 "2016-05-24T20:29:08Z")

</div>

Hi, I am new to ansible and ambari. I am trying to set up ambari-server using ansible expect module to respond to questions/options. My code snippet of expect module is : expect: command: ambari-server setup response…

---

## [Writing PowerShell modules with support for "check mode"](https://forum.ansible.com/t/writing-powershell-modules-with-support-for-check-mode/21549)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 6\
**Last updated:** [May 24, 2016, 7:26pm UTC](https://forum.ansible.com/t/writing-powershell-modules-with-support-for-check-mode/21549 "2016-05-24T19:26:32Z")

</div>

I’d like to support “check mode” in some of my PowerShell-based modules for Ansible on Windows. Is this currently supported? We’re not using the AnsibleModule object at all, so how can I implement this? Any thought and …

---

## [Applying dot notation against lookup results in one command?](https://forum.ansible.com/t/applying-dot-notation-against-lookup-results-in-one-command/21553)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 0\
**Last updated:** [May 24, 2016, 6:26pm UTC](https://forum.ansible.com/t/applying-dot-notation-against-lookup-results-in-one-command/21553 "2016-05-24T18:26:18Z")

</div>

Is there a way to apply dot notation against the ‘environment\_id’ variable so that I do it once and not have to apply it multiple times within my file? What I really want is the value after I “grep” for the last two char…

---

## [What's correct Jinja2 operator to do "less than" on a string?](https://forum.ansible.com/t/whats-correct-jinja2-operator-to-do-less-than-on-a-string/21550)

<div class="topic-metadata">

**Author:** [@Robert\_F](https://forum.ansible.com/u/Robert_F)\
**Replies:** 5\
**Last updated:** [May 24, 2016, 6:13pm UTC](https://forum.ansible.com/t/whats-correct-jinja2-operator-to-do-less-than-on-a-string/21550 "2016-05-24T18:13:42Z")

</div>

I’m setting an Ansible fact like this: set\_fact: server\_num={{ ansible\_hostname\[-2:\] }} server\_num can take these values: ‘00’ ‘01’ ‘02’ ‘03’ ‘04’ ad infinitum If I want a conditional that will evaluate to True …

---

## [ansible tries to parse files in  \<INVENTORY\_DIR\>/host\_vars and \<HOME\_DIR\>/host\_vars even if they don't exist](https://forum.ansible.com/t/ansible-tries-to-parse-files-in-inventory-dir-host-vars-and-home-dir-host-vars-even-if-they-dont-exist/21552)

<div class="topic-metadata">

**Author:** [@saraiva.joao](https://forum.ansible.com/u/saraiva.joao)\
**Replies:** 0\
**Last updated:** [May 24, 2016, 6:02pm UTC](https://forum.ansible.com/t/ansible-tries-to-parse-files-in-inventory-dir-host-vars-and-home-dir-host-vars-even-if-they-dont-exist/21552 "2016-05-24T18:02:44Z")

</div>

Hi, I’m using dynamic inventory and I pull the host list/groups from an external source (anonymous ldap query to freeipa). I have no host\_vars directories but every time I run ansible it tries to read the .yml, .yaml, .…

---

## [Undefined variables and loops](https://forum.ansible.com/t/undefined-variables-and-loops/21551)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [May 24, 2016, 5:58pm UTC](https://forum.ansible.com/t/undefined-variables-and-loops/21551 "2016-05-24T17:58:10Z")

</div>

I’ve run into a deprecation error related to an undefined variable in a with\_items loop. The task definition is below: name: template syslog config snippets template: src: “{{ item }}.conf.j2” dest: “/etc/rsyslog.d/{…

---

## [Using raw with path with whitespace in it](https://forum.ansible.com/t/using-raw-with-path-with-whitespace-in-it/21543)

<div class="topic-metadata">

**Author:** [@Mike\_Fennemore](https://forum.ansible.com/u/Mike_Fennemore)\
**Replies:** 1\
**Last updated:** [May 24, 2016, 4:23pm UTC](https://forum.ansible.com/t/using-raw-with-path-with-whitespace-in-it/21543 "2016-05-24T16:23:52Z")

</div>

raw: 'powershell.exe -Nologo -file C:\\Program Files\\App\\install-service.ps1' "module\_name": "raw"}, "rc": 1, "stderr": "Processing -File 'C:\\Program' failed because the file does not have a '.ps1' extension. Specify a v…

---

## [Validation on Config files in Windows](https://forum.ansible.com/t/validation-on-config-files-in-windows/21546)

<div class="topic-metadata">

**Author:** [@Mark\_Matthews](https://forum.ansible.com/u/Mark_Matthews)\
**Replies:** 1\
**Last updated:** [May 24, 2016, 4:10pm UTC](https://forum.ansible.com/t/validation-on-config-files-in-windows/21546 "2016-05-24T16:10:29Z")

</div>

Hi I have a situation where I have several web servers that are load balanced and are updated daily through Octopus. Although we still have issues when uses will go onto the Windows machines and manually edit config fi…

---

## [unable to run a remote script with Ansible](https://forum.ansible.com/t/unable-to-run-a-remote-script-with-ansible/21540)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 5\
**Last updated:** [May 24, 2016, 3:55pm UTC](https://forum.ansible.com/t/unable-to-run-a-remote-script-with-ansible/21540 "2016-05-24T15:55:06Z")

</div>

Hello, Here is my issue. I have a script start.sh with the following lines: #!/bin/ksh dispatcher.sh --command=start --directory=… returnCode=$? exit $returnCode the both scripts are in the same directory, with th…

---

## [/usr/bin/env on Python Azure dynamic inventory](https://forum.ansible.com/t/usr-bin-env-on-python-azure-dynamic-inventory/21528)

<div class="topic-metadata">

**Author:** [@Andre\_Cruz](https://forum.ansible.com/u/Andre_Cruz)\
**Replies:** 8\
**Last updated:** [May 24, 2016, 3:28pm UTC](https://forum.ansible.com/t/usr-bin-env-on-python-azure-dynamic-inventory/21528 "2016-05-24T15:28:20Z")

</div>

Hello. I submitted a PR https://github.com/ansible/ansible/pull/15965 to use /usr/bin/env instead of referring to a specific Python executable in the Azure dynamic inventory. This was rejected on the basis that all ansi…

[Previous page](https://forum.ansible.com/latest.md?page=757)

[Next page](https://forum.ansible.com/latest.md?page=759)
