# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=542

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

**Page:** 543

---

## [Facing Problem while creating Kinesis event source mapping for Lambda](https://forum.ansible.com/t/facing-problem-while-creating-kinesis-event-source-mapping-for-lambda/22887)

<div class="topic-metadata">

**Author:** [@Bharath\_Kumar1](https://forum.ansible.com/u/Bharath_Kumar1)\
**Replies:** 2\
**Last updated:** [October 26, 2016, 4:35pm UTC](https://forum.ansible.com/t/facing-problem-while-creating-kinesis-event-source-mapping-for-lambda/22887 "2016-10-26T16:35:26Z")

</div>

Hello, Can any one help with the following error ? “msg”: “Module alias error: internal error: required and default are mutually exclusive for event\_source”

---

## [Modify variables during the playbook](https://forum.ansible.com/t/modify-variables-during-the-playbook/22891)

<div class="topic-metadata">

**Author:** [@Pujan\_Shah1](https://forum.ansible.com/u/Pujan_Shah1)\
**Replies:** 0\
**Last updated:** [October 26, 2016, 3:19pm UTC](https://forum.ansible.com/t/modify-variables-during-the-playbook/22891 "2016-10-26T15:19:56Z")

</div>

Is it possible to modify nested variables when playbook is executing. nested\_variable: { ip: 1.2.3.4, port: 80, host: ‘example.com’, ssl: { enabled: true, port: 443, }, } During the playbook based on other c…

---

## [I want to use the "target" also as a variable not just for hosts file](https://forum.ansible.com/t/i-want-to-use-the-target-also-as-a-variable-not-just-for-hosts-file/22890)

<div class="topic-metadata">

**Author:** [@Gad](https://forum.ansible.com/u/Gad)\
**Replies:** 0\
**Last updated:** [October 26, 2016, 3:07pm UTC](https://forum.ansible.com/t/i-want-to-use-the-target-also-as-a-variable-not-just-for-hosts-file/22890 "2016-10-26T15:07:07Z")

</div>

ansible-playbook msi\_install.yml -vvv The problems( in red) the find command is OK but instead of getting the value of the target host like “199.121.121.1” i am getting “win\_host1” where should I define the varible “r…

---

## [How can i specify the same target host twice or more in my playbook ?](https://forum.ansible.com/t/how-can-i-specify-the-same-target-host-twice-or-more-in-my-playbook/22888)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [October 26, 2016, 1:31pm UTC](https://forum.ansible.com/t/how-can-i-specify-the-same-target-host-twice-or-more-in-my-playbook/22888 "2016-10-26T13:31:47Z")

</div>

I have a situation for which we have decided to allow multiple instances of the same app to run on same host machines. I do not want to modify my playbook or inventory to incorporate this temporary hack and was wondering…

---

## [Seeking community review for new extras module](https://forum.ansible.com/t/seeking-community-review-for-new-extras-module/22889)

<div class="topic-metadata">

**Author:** [@James\_Hogarth](https://forum.ansible.com/u/James_Hogarth)\
**Replies:** 0\
**Last updated:** [October 26, 2016, 9:07am UTC](https://forum.ansible.com/t/seeking-community-review-for-new-extras-module/22889 "2016-10-26T09:07:13Z")

</div>

Hi all, I’ve submitted a module to build on automating jenkins installs and it’s currently at the stage where it needs to community reviews to proceed https://github.com/ansible/ansible-modules-extras/pull/3068 This m…

---

## [Not able to load the credentials](https://forum.ansible.com/t/not-able-to-load-the-credentials/22865)

<div class="topic-metadata">

**Author:** [@Girish\_Kumar\_Mayigow](https://forum.ansible.com/u/Girish_Kumar_Mayigow)\
**Replies:** 3\
**Last updated:** [October 26, 2016, 5:38am UTC](https://forum.ansible.com/t/not-able-to-load-the-credentials/22865 "2016-10-26T05:38:29Z")

</div>

Hi, I am trying to create a storage account and below is the play book and the error, please let me know what am missing. i have created a file credentials.ini under etc/home/.azure \`

---

## [Lambda Kinesis stream event mapping](https://forum.ansible.com/t/lambda-kinesis-stream-event-mapping/22886)

<div class="topic-metadata">

**Author:** [@Bharat\_K](https://forum.ansible.com/u/Bharat_K)\
**Replies:** 0\
**Last updated:** [October 26, 2016, 2:16am UTC](https://forum.ansible.com/t/lambda-kinesis-stream-event-mapping/22886 "2016-10-26T02:16:55Z")

</div>

I am creating lambda trigger for kinesis stream however getting below error. “msg”: “Module alias error: internal error: required and default are mutually exclusive for event\_source” Code: hosts: control gather\_fact…

---

## [Ansible target not logging to syslog](https://forum.ansible.com/t/ansible-target-not-logging-to-syslog/22032)

<div class="topic-metadata">

**Author:** [@Ed\_S](https://forum.ansible.com/u/Ed_S)\
**Replies:** 5\
**Last updated:** [October 26, 2016, 1:38am UTC](https://forum.ansible.com/t/ansible-target-not-logging-to-syslog/22032 "2016-10-26T01:38:14Z")

</div>

Hello, I’m running ansible 2.1.0.0 and when running a playbook against a target system(machine B), there are no messages logged to syslog on the target machine(machine b) during the run. Are there settings necessary to …

---

## [module (setup) is missing interpreter line error while running the python api](https://forum.ansible.com/t/module-setup-is-missing-interpreter-line-error-while-running-the-python-api/22884)

<div class="topic-metadata">

**Author:** [@Oguz\_Yarimtepe](https://forum.ansible.com/u/Oguz_Yarimtepe)\
**Replies:** 0\
**Last updated:** [October 25, 2016, 6:35pm UTC](https://forum.ansible.com/t/module-setup-is-missing-interpreter-line-error-while-running-the-python-api/22884 "2016-10-25T18:35:58Z")

</div>

Hi, After struggling to fix the problem i am back to the list again. Seems i have a problem about reading my Inventory. I am not able to find the problem so i need help:

---

## [Ansible 2.1.3 RC3 is ready for testing](https://forum.ansible.com/t/ansible-2-1-3-rc3-is-ready-for-testing/22883)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [October 25, 2016, 3:47pm UTC](https://forum.ansible.com/t/ansible-2-1-3-rc3-is-ready-for-testing/22883 "2016-10-25T15:47:09Z")

</div>

Hi all, we’re happy to announce that RC3 for 2.1.3 is now available for testing. This release candidate addresses the following bugs: Fixed a bug where a custom module could overwrite connection-based variables. Fixed…

---

## [How do I execute ALL the task in a YML file locally?](https://forum.ansible.com/t/how-do-i-execute-all-the-task-in-a-yml-file-locally/22881)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 3\
**Last updated:** [October 25, 2016, 3:44pm UTC](https://forum.ansible.com/t/how-do-i-execute-all-the-task-in-a-yml-file-locally/22881 "2016-10-25T15:44:50Z")

</div>

I have a role whose main.yml file includes several \*.yml files, e.g., \` main.yml

---

## [How to use version\_compare Jinja filter to only compare major and minor releases?](https://forum.ansible.com/t/how-to-use-version-compare-jinja-filter-to-only-compare-major-and-minor-releases/22880)

<div class="topic-metadata">

**Author:** [@Tadej\_Janez](https://forum.ansible.com/u/Tadej_Janez)\
**Replies:** 3\
**Last updated:** [October 25, 2016, 3:11pm UTC](https://forum.ansible.com/t/how-to-use-version-compare-jinja-filter-to-only-compare-major-and-minor-releases/22880 "2016-10-25T15:11:55Z")

</div>

Hi! I was a bit puzzled when trying to use version\_compare Jinja filter to check that the major and minor Ansible versions are equal to some desired value. Here is an example playbook: - hosts: localhost connection…

---

## [Some questions about the new module vmware\_guest](https://forum.ansible.com/t/some-questions-about-the-new-module-vmware-guest/22878)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 0\
**Last updated:** [October 25, 2016, 9:37am UTC](https://forum.ansible.com/t/some-questions-about-the-new-module-vmware-guest/22878 "2016-10-25T09:37:00Z")

</div>

Hello, I would like to ask some queststions about the new module vmware\_guest which will be included in release 2.2. In the given example the parameter hardware is used to specify osid and scsi method. What are possibl…

---

## [vmware\_guest: "unsupported parameter for module: datacenter"](https://forum.ansible.com/t/vmware-guest-unsupported-parameter-for-module-datacenter/22877)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 2\
**Last updated:** [October 25, 2016, 9:27am UTC](https://forum.ansible.com/t/vmware-guest-unsupported-parameter-for-module-datacenter/22877 "2016-10-25T09:27:52Z")

</div>

Hello folks, I’m having difficulties using the vmware\_guest module to create a guest vm on my VMware vCenter 6. My playbook looks as follows: \` Create a new VM on an ESX server hosts: localhost tasks: vsphere\_guest: …

---

## [Role Includes When Statement](https://forum.ansible.com/t/role-includes-when-statement/22874)

<div class="topic-metadata">

**Author:** [@steve5](https://forum.ansible.com/u/steve5)\
**Replies:** 1\
**Last updated:** [October 25, 2016, 2:22am UTC](https://forum.ansible.com/t/role-includes-when-statement/22874 "2016-10-25T02:22:12Z")

</div>

I am on the most recent version of the devel branch, and I have a role dependency in the meta of that role, and when I set it I have a when statement. Now it skips everything when it runs except a task with\_items, and it…

---

## [Cumulative group variables?](https://forum.ansible.com/t/cumulative-group-variables/22871)

<div class="topic-metadata">

**Author:** [@Cody\_John](https://forum.ansible.com/u/Cody_John)\
**Replies:** 2\
**Last updated:** [October 25, 2016, 1:26am UTC](https://forum.ansible.com/t/cumulative-group-variables/22871 "2016-10-25T01:26:34Z")

</div>

I’m working on modeling our datacenter top-of-rack switches in Ansible, and have run into a potential problem with my approach. The basic idea is to use a hierarchal group structure that starts with general purpose (tor)…

---

## [Dynamic Includes + Tags = Failures](https://forum.ansible.com/t/dynamic-includes-tags-failures/22873)

<div class="topic-metadata">

**Author:** [@steve5](https://forum.ansible.com/u/steve5)\
**Replies:** 0\
**Last updated:** [October 25, 2016, 1:19am UTC](https://forum.ansible.com/t/dynamic-includes-tags-failures/22873 "2016-10-25T01:19:43Z")

</div>

I am on the latest of the devel branch, and I am not entirely sure if this is expected behavior or not. I have a couple issues, where in my main.yml in my playbook, I have roles that are tagged at the top level and then …

---

## [auto package version selection?](https://forum.ansible.com/t/auto-package-version-selection/22867)

<div class="topic-metadata">

**Author:** [@david1](https://forum.ansible.com/u/david1)\
**Replies:** 1\
**Last updated:** [October 24, 2016, 11:38pm UTC](https://forum.ansible.com/t/auto-package-version-selection/22867 "2016-10-24T23:38:18Z")

</div>

Hi, I’m deploying an application via Ansible on Ubuntu. The application’s .deb requires several php modules but misses some so in my playbook I have the following. name: Install php packages apt: name={{item}} state=…

---

## [Ansible powershell module to be run on remote powershell on Linux machine.](https://forum.ansible.com/t/ansible-powershell-module-to-be-run-on-remote-powershell-on-linux-machine/22856)

<div class="topic-metadata">

**Author:** [@Raj3](https://forum.ansible.com/u/Raj3)\
**Replies:** 10\
**Last updated:** [October 24, 2016, 8:05pm UTC](https://forum.ansible.com/t/ansible-powershell-module-to-be-run-on-remote-powershell-on-linux-machine/22856 "2016-10-24T20:05:44Z")

</div>

Has anybody successfully run powershell on Linux as an ansible module? Well, I have an ansible on one machine ServerAnsible. And, I have a powershell and powercli core installed on my linux machine ServerPS. I would like…

---

## [inventory not being able to read when using ansible 2 api](https://forum.ansible.com/t/inventory-not-being-able-to-read-when-using-ansible-2-api/22866)

<div class="topic-metadata">

**Author:** [@Oguz\_Yarimtepe](https://forum.ansible.com/u/Oguz_Yarimtepe)\
**Replies:** 4\
**Last updated:** [October 24, 2016, 6:14pm UTC](https://forum.ansible.com/t/inventory-not-being-able-to-read-when-using-ansible-2-api/22866 "2016-10-24T18:14:00Z")

</div>

Here is my structure. ✗ tree -L 2 . ├── ansible.cfg ├── ansible.cfg.bak ├── group\_vars │ ├── default │ └── default.bak ├── hosts ├── playbook.yml ├── playbook\_hostname.yml ├── playbook\_ip.yml ├── roles │ ├──…

---

## [Unable to pass the value for a variable in included playbook via another variable in the calling playbook](https://forum.ansible.com/t/unable-to-pass-the-value-for-a-variable-in-included-playbook-via-another-variable-in-the-calling-playbook/22870)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 0\
**Last updated:** [October 24, 2016, 3:36pm UTC](https://forum.ansible.com/t/unable-to-pass-the-value-for-a-variable-in-included-playbook-via-another-variable-in-the-calling-playbook/22870 "2016-10-24T15:36:40Z")

</div>

I have a playbook which requires to perform some actions for each string in a comma separated list. So i put the repeatable tasks in another playbook and included that in a master playbook using with\_items: include:inc…

---

## [Exec command before/during/after "expect"](https://forum.ansible.com/t/exec-command-before-during-after-expect/22868)

<div class="topic-metadata">

**Author:** [@Benjamin\_Redling](https://forum.ansible.com/u/Benjamin_Redling)\
**Replies:** 0\
**Last updated:** [October 24, 2016, 2:16pm UTC](https://forum.ansible.com/t/exec-command-before-during-after-expect/22868 "2016-10-24T14:16:00Z")

</div>

Hi everybody, I'm trying to script around an ugly installer that expects to run from a DVD. I copied the DVDs and mounted them as loop device. The problem I face is that after the first DVD finished and it outputs a …

---

## [When more than one play in a playbook, how to define an order for running one before others](https://forum.ansible.com/t/when-more-than-one-play-in-a-playbook-how-to-define-an-order-for-running-one-before-others/22827)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 4\
**Last updated:** [October 24, 2016, 1:38pm UTC](https://forum.ansible.com/t/when-more-than-one-play-in-a-playbook-how-to-define-an-order-for-running-one-before-others/22827 "2016-10-24T13:38:12Z")

</div>

Hello, in my inventory file, I will use aliases to deploy differents applications for the same user: \[reference\] refweb1 PARAM=“\[‘tomweb’,‘7.30.05005.1334’,‘1’\]” refqry1 PARAM=“\[‘query’,‘7.30.05005.1334’,‘1’\]” refwe…

---

## [Want to run ansible tasks on remote host](https://forum.ansible.com/t/want-to-run-ansible-tasks-on-remote-host/22849)

<div class="topic-metadata">

**Author:** [@deepak.dimri2016](https://forum.ansible.com/u/deepak.dimri2016)\
**Replies:** 3\
**Last updated:** [October 24, 2016, 1:27pm UTC](https://forum.ansible.com/t/want-to-run-ansible-tasks-on-remote-host/22849 "2016-10-24T13:27:46Z")

</div>

In my scenario i have inventory of three machines localhost, host2 and host3. I want to run some tasks/commands on host3 while my ansible playbook is still playing on host2 without switching from host2 to host3 - is that…

---

## [How can i include other var files in a yaml file with only variables defined](https://forum.ansible.com/t/how-can-i-include-other-var-files-in-a-yaml-file-with-only-variables-defined/22864)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [October 24, 2016, 1:26pm UTC](https://forum.ansible.com/t/how-can-i-include-other-var-files-in-a-yaml-file-with-only-variables-defined/22864 "2016-10-24T13:26:58Z")

</div>

Hi, I use simple YAML files for defining some constant values to be used in my playbooks. A typical file would look like this: var1: abc var2: xyz var3: item1 item2 var4: 4.1: a 4.2: b I simply include the the …

---

## [A new maintainer wanted for the hostname module](https://forum.ansible.com/t/a-new-maintainer-wanted-for-the-hostname-module/22744)

<div class="topic-metadata">

**Author:** [@Hiroaki\_Nakamura](https://forum.ansible.com/u/Hiroaki_Nakamura)\
**Replies:** 3\
**Last updated:** [October 23, 2016, 9:04pm UTC](https://forum.ansible.com/t/a-new-maintainer-wanted-for-the-hostname-module/22744 "2016-10-23T21:04:49Z")

</div>

Though I created the hostname module, I have never used it myself. I would like to resign as a hostname module maintainer since I would like to spend my spare time for other things. So could someone take over as a mai…

---

## [How to maintein particula order via host groups and/or playbook](https://forum.ansible.com/t/how-to-maintein-particula-order-via-host-groups-and-or-playbook/22863)

<div class="topic-metadata">

**Author:** [@tinyzais](https://forum.ansible.com/u/tinyzais)\
**Replies:** 0\
**Last updated:** [October 23, 2016, 6:27pm UTC](https://forum.ansible.com/t/how-to-maintein-particula-order-via-host-groups-and-or-playbook/22863 "2016-10-23T18:27:26Z")

</div>

Hello, I dont know how to implement group ordering in the right way. Example: Start or Stop application with database. When starting: i need to start DB first, then APP itself When stopping: i need to do reverse ord…

---

## [is it possible to add multiple security group rules to a security group using os\_security\_group & os\_security\_group\_rule?](https://forum.ansible.com/t/is-it-possible-to-add-multiple-security-group-rules-to-a-security-group-using-os-security-group-os-security-group-rule/22862)

<div class="topic-metadata">

**Author:** [@Glyn\_Davies](https://forum.ansible.com/u/Glyn_Davies)\
**Replies:** 0\
**Last updated:** [October 23, 2016, 8:17am UTC](https://forum.ansible.com/t/is-it-possible-to-add-multiple-security-group-rules-to-a-security-group-using-os-security-group-os-security-group-rule/22862 "2016-10-23T08:17:58Z")

</div>

Hi Folks, I am wondering if it is possible to add multiple rules to an openstack security group using a loop mechanism such as with\_items or with\_dict? I gave found examples of where this is possible in AWS using somth…

---

## [ansible skips roles alphabetically-wise](https://forum.ansible.com/t/ansible-skips-roles-alphabetically-wise/22858)

<div class="topic-metadata">

**Author:** [@Marcos\_Cano](https://forum.ansible.com/u/Marcos_Cano)\
**Replies:** 1\
**Last updated:** [October 22, 2016, 11:09am UTC](https://forum.ansible.com/t/ansible-skips-roles-alphabetically-wise/22858 "2016-10-22T11:09:02Z")

</div>

hello I’m calling roles from a custom location ( /var/lib/jenkins/workspace/some/job/workspace/playbook.yml rather that /etc/ansible path), I’ve exporte ANSIBLE\_ROLES\_PATH env variable roles: dotnet aws-kinesis-ag…

---

## [Error on deployment to RHEL 7](https://forum.ansible.com/t/error-on-deployment-to-rhel-7/22798)

<div class="topic-metadata">

**Author:** [@Kelvin\_Chu](https://forum.ansible.com/u/Kelvin_Chu)\
**Replies:** 1\
**Last updated:** [October 22, 2016, 3:49am UTC](https://forum.ansible.com/t/error-on-deployment-to-rhel-7/22798 "2016-10-22T03:49:26Z")

</div>

Hi team, Currently getting an error deploying to RHEL 7. I can see that somehow the tower\_package\_name, version and release are not getting picked up: TASK \[check\_config\_static : Ensure expected variables are defined\]…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=541)

[Next page](https://forum.ansible.com/c/archives/31.md?page=543)
