# Latest

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

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

**Page:** 578

---

## [Error: 'import\_playbook' has extra params](https://forum.ansible.com/t/error-import-playbook-has-extra-params/26898)

<div class="topic-metadata">

**Author:** [@kavya\_KULSHRESHTHA](https://forum.ansible.com/u/kavya_KULSHRESHTHA)\
**Replies:** 1\
**Last updated:** [March 5, 2018, 11:40am UTC](https://forum.ansible.com/t/error-import-playbook-has-extra-params/26898 "2018-03-05T11:40:14Z")

</div>

Hi, I am using ansible 2.4.4 I have a role, where in main.yml I am importing two playbooks: main.yml: \`

---

## [Ansible and VMware vCloud Automation Center](https://forum.ansible.com/t/ansible-and-vmware-vcloud-automation-center/26899)

<div class="topic-metadata">

**Author:** [@mehdi\_mrhari](https://forum.ansible.com/u/mehdi_mrhari)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 10:12am UTC](https://forum.ansible.com/t/ansible-and-vmware-vcloud-automation-center/26899 "2018-03-05T10:12:32Z")

</div>

Hi community, I would like to know is there is a module, or a way to automate the launch of a blueprint or catalog VCAC from Ansible. Thank you.

---

## [How to read the local variables in a role](https://forum.ansible.com/t/how-to-read-the-local-variables-in-a-role/26885)

<div class="topic-metadata">

**Author:** [@Guillermo\_Colmena](https://forum.ansible.com/u/Guillermo_Colmena)\
**Replies:** 1\
**Last updated:** [March 5, 2018, 9:19am UTC](https://forum.ansible.com/t/how-to-read-the-local-variables-in-a-role/26885 "2018-03-05T09:19:12Z")

</div>

Hi community, I was forwarded from github website to this group ; ) I am trying to use local variables on the roles I have created, but once the var file is created. I don’t know how and from where call those. At the m…

---

## [Trying to capture value from with\_lines loop](https://forum.ansible.com/t/trying-to-capture-value-from-with-lines-loop/26895)

<div class="topic-metadata">

**Author:** [@Evan](https://forum.ansible.com/u/Evan)\
**Replies:** 2\
**Last updated:** [March 5, 2018, 6:27am UTC](https://forum.ansible.com/t/trying-to-capture-value-from-with-lines-loop/26895 "2018-03-05T06:27:57Z")

</div>

I’m trying to loop through a list (file) of powervc regions, delegating a command to them, and if that command (find a vm) is successful (ie: the vm is on that region) I want to record the region name. I’m using delegate…

---

## [awx add authentication methods](https://forum.ansible.com/t/awx-add-authentication-methods/26891)

<div class="topic-metadata">

**Author:** [@ben\_kiani](https://forum.ansible.com/u/ben_kiani)\
**Replies:** 1\
**Last updated:** [March 5, 2018, 3:14am UTC](https://forum.ansible.com/t/awx-add-authentication-methods/26891 "2018-03-05T03:14:24Z")

</div>

Hi , I waould like to contribute to awx to add several Auth methods Kerberos , OIDC , OAuth 2 (Response Code) and more … How can I start ? Thanks , Ben

---

## [\[become: yes\] doesn't work. Failed to run playbook on AWS EC2 Ubuntu instance](https://forum.ansible.com/t/become-yes-doesnt-work-failed-to-run-playbook-on-aws-ec2-ubuntu-instance/26892)

<div class="topic-metadata">

**Author:** [@Viktor\_Chernov](https://forum.ansible.com/u/Viktor_Chernov)\
**Replies:** 1\
**Last updated:** [March 4, 2018, 9:25am UTC](https://forum.ansible.com/t/become-yes-doesnt-work-failed-to-run-playbook-on-aws-ec2-ubuntu-instance/26892 "2018-03-04T09:25:51Z")

</div>

dexter@dexter-X55A /opt/SSH $ ansible --version ansible 2.4.3.0 config file = /etc/ansible/ansible.cfg configured module search path = \[u'/home/dexter/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'\] ans…

---

## [How to use wilde card to remove packages (dnf)](https://forum.ansible.com/t/how-to-use-wilde-card-to-remove-packages-dnf/26886)

<div class="topic-metadata">

**Author:** [@\_rabin](https://forum.ansible.com/u/_rabin)\
**Replies:** 6\
**Last updated:** [March 4, 2018, 12:19am UTC](https://forum.ansible.com/t/how-to-use-wilde-card-to-remove-packages-dnf/26886 "2018-03-04T00:19:56Z")

</div>

Hello all, I like to use Ansible to remove few packages, but it seem not to support the wildecard option for package name matching. name: Remove Packages package: name: “{{ item }}” state: absent tags: packages\_re…

---

## [Error: Argument must be an int,or have a file() method](https://forum.ansible.com/t/error-argument-must-be-an-int-or-have-a-file-method/26890)

<div class="topic-metadata">

**Author:** [@ramesh1](https://forum.ansible.com/u/ramesh1)\
**Replies:** 0\
**Last updated:** [March 3, 2018, 7:11am UTC](https://forum.ansible.com/t/error-argument-must-be-an-int-or-have-a-file-method/26890 "2018-03-03T07:11:21Z")

</div>

Hi Team, I am new to ansible please help on this here I am getting error like this : 178.128.22.23 | UNREACHABLE! =\> { “changed”: false, “msg”: “Failed to connect to the host via ssh.”, “unreachable”: true } My …

---

## [Modify uid/gid if exists, but don't create if absent](https://forum.ansible.com/t/modify-uid-gid-if-exists-but-dont-create-if-absent/26889)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 3\
**Last updated:** [March 2, 2018, 8:56pm UTC](https://forum.ansible.com/t/modify-uid-gid-if-exists-but-dont-create-if-absent/26889 "2018-03-02T20:56:04Z")

</div>

I don’t see a way to do this with ansible, but perhaps I am missing something. I have a need to change the uid/gid of users/groups on a bunch of servers; however, I don’t wish to create the user/group if it is missing, I…

---

## [Problem Launch Ansible Module MySQL](https://forum.ansible.com/t/problem-launch-ansible-module-mysql/26082)

<div class="topic-metadata">

**Author:** [@Antonio\_Jimenez\_Rami](https://forum.ansible.com/u/Antonio_Jimenez_Rami)\
**Replies:** 6\
**Last updated:** [March 2, 2018, 7:52pm UTC](https://forum.ansible.com/t/problem-launch-ansible-module-mysql/26082 "2018-03-02T19:52:57Z")

</div>

Hi, i have this problem with execute one playbook from mysql: fatal: \[localhost\]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “The MySQL-python module is required.”} But, the MySQL-python is installed to the …

---

## [is nested yaml inventory file for ansible supported?](https://forum.ansible.com/t/is-nested-yaml-inventory-file-for-ansible-supported/24115)

<div class="topic-metadata">

**Author:** [@vinod\_kumar4](https://forum.ansible.com/u/vinod_kumar4)\
**Replies:** 5\
**Last updated:** [March 2, 2018, 5:18pm UTC](https://forum.ansible.com/t/is-nested-yaml-inventory-file-for-ansible-supported/24115 "2018-03-02T17:18:52Z")

</div>

Hi Guys, I’m trying to use a yaml file as inventory file which looks like below: prod: webserver: hosts: example1.com db\_servers: hosts: example2.com example3.com stag: webserver: hosts: example3.com It doe…

---

## [How to run "sudo command" as ssh user without switching to become\_user?](https://forum.ansible.com/t/how-to-run-sudo-command-as-ssh-user-without-switching-to-become-user/26881)

<div class="topic-metadata">

**Author:** [@Kevin1](https://forum.ansible.com/u/Kevin1)\
**Replies:** 4\
**Last updated:** [March 2, 2018, 4:50pm UTC](https://forum.ansible.com/t/how-to-run-sudo-command-as-ssh-user-without-switching-to-become-user/26881 "2018-03-02T16:50:05Z")

</div>

Hi, I’m connecting to my host as “user1” and my become user name is “user2”. The only account that has sudo privs to run the “do-something” command is user1. Attempt 1: I’m trying to run the following task, but it do…

---

## [/tmp/.ansible/tmp not write-able by all users](https://forum.ansible.com/t/tmp-ansible-tmp-not-write-able-by-all-users/26887)

<div class="topic-metadata">

**Author:** [@Mike\_Cavedon](https://forum.ansible.com/u/Mike_Cavedon)\
**Replies:** 3\
**Last updated:** [March 2, 2018, 3:49pm UTC](https://forum.ansible.com/t/tmp-ansible-tmp-not-write-able-by-all-users/26887 "2018-03-02T15:49:57Z")

</div>

I changed remote\_tmp to /tmp/.ansible/tmp for performance reasons. The directory is created as follows: \[tmp\]$ ls -ld .ansible drwx------ 3 ec2-user ec2-user 4096 Mar 2 09:47 .ansible When a different user attempts to…

---

## [Cannot use sed inside it](https://forum.ansible.com/t/cannot-use-sed-inside-it/26888)

<div class="topic-metadata">

**Author:** [@Alexandre\_MARRE](https://forum.ansible.com/u/Alexandre_MARRE)\
**Replies:** 0\
**Last updated:** [March 2, 2018, 3:48pm UTC](https://forum.ansible.com/t/cannot-use-sed-inside-it/26888 "2018-03-02T15:48:35Z")

</div>

Hello, I have a little bug with ansible parser I can’t execute this code in ansible: This code works on shell \` echo “INSERT INTO scripts VALUES (‘1’, ‘install-debian’, ‘$(cat startupscripts/install-debian.sh | sed "s…

---

## [Openstack shelve instance](https://forum.ansible.com/t/openstack-shelve-instance/26884)

<div class="topic-metadata">

**Author:** [@baldwint](https://forum.ansible.com/u/baldwint)\
**Replies:** 0\
**Last updated:** [March 2, 2018, 4:33am UTC](https://forum.ansible.com/t/openstack-shelve-instance/26884 "2018-03-02T04:33:10Z")

</div>

Would anyone know if the module os\_server\_action will be updated to support instance shelve and unshelve, or if there’s another module that supports openstack instance shelving?

---

## [Ansible 2.4.4 RC1 is ready for testing](https://forum.ansible.com/t/ansible-2-4-4-rc1-is-ready-for-testing/26883)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [March 2, 2018, 2:44am UTC](https://forum.ansible.com/t/ansible-2-4-4-rc1-is-ready-for-testing/26883 "2018-03-02T02:44:36Z")

</div>

Hi all, we're happy to announce that RC1 for 2.4.4 is now available for testing. How do you get it?

---

## [Module for DataPower](https://forum.ansible.com/t/module-for-datapower/23484)

<div class="topic-metadata">

**Author:** [@Ernesto\_Diaz\_Miranda](https://forum.ansible.com/u/Ernesto_Diaz_Miranda)\
**Replies:** 1\
**Last updated:** [March 2, 2018, 12:26am UTC](https://forum.ansible.com/t/module-for-datapower/23484 "2018-03-02T00:26:09Z")

</div>

I have experience in both IBM DataPower and python, and I would like to do something with python beyond the traditional scripts. I am going to start to develop the Ansible module for IBM DataPower, but I’d like to ask yo…

---

## [when: search stdout\_lines](https://forum.ansible.com/t/when-search-stdout-lines/26882)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 1\
**Last updated:** [March 1, 2018, 11:03pm UTC](https://forum.ansible.com/t/when-search-stdout-lines/26882 "2018-03-01T23:03:07Z")

</div>

I can’t seem to find the proper syntax to search the stdout\_lines for a string. Consider the following. \` tasks: name: List home dirs shell: “ls /home” register: home changed\_when: false name: List scripts dir…

---

## [Iterate through group of variables](https://forum.ansible.com/t/iterate-through-group-of-variables/26879)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [March 1, 2018, 8:05pm UTC](https://forum.ansible.com/t/iterate-through-group-of-variables/26879 "2018-03-01T20:05:31Z")

</div>

What are you trying to do? groups\[item.port|string\] will try to find a inventory group called 900 but that doesn't exist.

---

## [include\_role with\_sequence - why it runs all possible variants on all hosts?](https://forum.ansible.com/t/include-role-with-sequence-why-it-runs-all-possible-variants-on-all-hosts/26878)

<div class="topic-metadata">

**Author:** [@Jiri\_Novak](https://forum.ansible.com/u/Jiri_Novak)\
**Replies:** 0\
**Last updated:** [March 1, 2018, 6:32pm UTC](https://forum.ansible.com/t/include-role-with-sequence-why-it-runs-all-possible-variants-on-all-hosts/26878 "2018-03-01T18:32:42Z")

</div>

Hi, I’ve stumbled upon strange behviour, any ideas what am I doing wrong? let’s say I have variables like this: hosts: hostnameA.tld: min\_id: 0 max\_id: 5 hostnameB.tld: min\_id: 6 max\_id: 11 and then if I use th…

---

## [inventory for self service](https://forum.ansible.com/t/inventory-for-self-service/26875)

<div class="topic-metadata">

**Author:** [@Jerry\_S](https://forum.ansible.com/u/Jerry_S)\
**Replies:** 4\
**Last updated:** [March 1, 2018, 5:00pm UTC](https://forum.ansible.com/t/inventory-for-self-service/26875 "2018-03-01T17:00:10Z")

</div>

Hi, I am new to AWX. I am trying to figure out how to indicate allocations of servers to users and then use that to limit the systems a user can run his jobs on. Assume that I have a magical allocator that gives Joe 6 …

---

## [Trying to compare shared and client schema versions and upgrade client schema, if condition satisfies in Ansible using nested loops?](https://forum.ansible.com/t/trying-to-compare-shared-and-client-schema-versions-and-upgrade-client-schema-if-condition-satisfies-in-ansible-using-nested-loops/26877)

<div class="topic-metadata">

**Author:** [@Raj5](https://forum.ansible.com/u/Raj5)\
**Replies:** 0\
**Last updated:** [March 1, 2018, 3:13pm UTC](https://forum.ansible.com/t/trying-to-compare-shared-and-client-schema-versions-and-upgrade-client-schema-if-condition-satisfies-in-ansible-using-nested-loops/26877 "2018-03-01T15:13:06Z")

</div>

I am trying to write an ansible nested loop condition to do the schema upgrade based on if the version matches between shared schema and client schema. Here is what my play book doing. Logs in to Shared Schema DB and …

---

## [ImportError: cannot import name iControlUnexpectedHTTPError](https://forum.ansible.com/t/importerror-cannot-import-name-icontrolunexpectedhttperror/26859)

<div class="topic-metadata">

**Author:** [@Mrinal\_Pande](https://forum.ansible.com/u/Mrinal_Pande)\
**Replies:** 3\
**Last updated:** [March 1, 2018, 2:53pm UTC](https://forum.ansible.com/t/importerror-cannot-import-name-icontrolunexpectedhttperror/26859 "2018-03-01T14:53:37Z")

</div>

Hi all, I have recently started working with ansible and deployed awx on a local machine. I have successfully deployed awx using docker container but when I try to create pool on my F5 server. I am getting the followi…

---

## [Is it possible to avoid aborting a play if all hosts in a serial batch fail?](https://forum.ansible.com/t/is-it-possible-to-avoid-aborting-a-play-if-all-hosts-in-a-serial-batch-fail/26870)

<div class="topic-metadata">

**Author:** [@Daniel\_Heffner](https://forum.ansible.com/u/Daniel_Heffner)\
**Replies:** 13\
**Last updated:** [March 1, 2018, 2:01pm UTC](https://forum.ansible.com/t/is-it-possible-to-avoid-aborting-a-play-if-all-hosts-in-a-serial-batch-fail/26870 "2018-03-01T14:01:40Z")

</div>

So, for example, i have a playbook: \` hosts: some\_hosts serial: 50 roles: some\_role … some other play with different hosts \` and for some reason, all 50 hosts in a batch fail. I want to continue running the play …

---

## [Unarchive faild with spring boot war archive](https://forum.ansible.com/t/unarchive-faild-with-spring-boot-war-archive/26874)

<div class="topic-metadata">

**Author:** [@Jan-Philipp\_Bolle](https://forum.ansible.com/u/Jan-Philipp_Bolle)\
**Replies:** 2\
**Last updated:** [March 1, 2018, 1:40pm UTC](https://forum.ansible.com/t/unarchive-faild-with-spring-boot-war-archive/26874 "2018-03-01T13:40:00Z")

</div>

Hi there I try to unarchive several war archives. Mysteriously this fails only with war achives created by the maven spring boot plug-in (I expect this is the problem). All my war achives can extract with the normal zi…

---

## ["Unable to open shell" when not running playbook as sudo](https://forum.ansible.com/t/unable-to-open-shell-when-not-running-playbook-as-sudo/26871)

<div class="topic-metadata">

**Author:** [@Bryan\_Bartik](https://forum.ansible.com/u/Bryan_Bartik)\
**Replies:** 1\
**Last updated:** [March 1, 2018, 1:31pm UTC](https://forum.ansible.com/t/unable-to-open-shell-when-not-running-playbook-as-sudo/26871 "2018-03-01T13:31:03Z")

</div>

I have a playbook that backups router configs using the ios\_config module. When I run the command as sudo it works but the files it creates are owned by root. I want them owned by me. However when I run the ansible-playb…

---

## [Merging global group\_vars](https://forum.ansible.com/t/merging-global-group-vars/26876)

<div class="topic-metadata">

**Author:** [@Mario](https://forum.ansible.com/u/Mario)\
**Replies:** 0\
**Last updated:** [March 1, 2018, 11:13am UTC](https://forum.ansible.com/t/merging-global-group-vars/26876 "2018-03-01T11:13:58Z")

</div>

How can I merge global in-memory group\_vars with some other yml files? We will have a best practice approch with a couple of groups and some corresponding roles. The folder structure will have a top-level group\_vars an…

---

## [Access the value of -u flag in ansible role](https://forum.ansible.com/t/access-the-value-of-u-flag-in-ansible-role/26873)

<div class="topic-metadata">

**Author:** [@Sahil\_Sawhney](https://forum.ansible.com/u/Sahil_Sawhney)\
**Replies:** 0\
**Last updated:** [March 1, 2018, 7:18am UTC](https://forum.ansible.com/t/access-the-value-of-u-flag-in-ansible-role/26873 "2018-03-01T07:18:09Z")

</div>

Is there a way by which we can access the value of the flags (especially the –private-key and -u flags) we provide while running the ansible script; inside the ansible role? Thanks

---

## [How to ignore the failed plays, not just failed tasks ?](https://forum.ansible.com/t/how-to-ignore-the-failed-plays-not-just-failed-tasks/12789)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 6\
**Last updated:** [March 1, 2018, 12:16am UTC](https://forum.ansible.com/t/how-to-ignore-the-failed-plays-not-just-failed-tasks/12789 "2018-03-01T00:16:28Z")

</div>

The whole play will only fail and abort the run when all hosts in the batch have failed. (If serial: 10 is set for a rolling update, the batch size is 10, for example, otherwise it’s the size of the group).

---

## [Ansible 2.3.4 RC1 is available for testing](https://forum.ansible.com/t/ansible-2-3-4-rc1-is-available-for-testing/26872)

<div class="topic-metadata">

**Author:** [@jimi](https://forum.ansible.com/u/jimi)\
**Replies:** 0\
**Last updated:** [February 28, 2018, 11:39pm UTC](https://forum.ansible.com/t/ansible-2-3-4-rc1-is-available-for-testing/26872 "2018-02-28T23:39:08Z")

</div>

​​Hi all, we’re happy to announce that rc1 for 2.3.4 is now available for testing. This release mainly addresses https://github.com/ansible/ansible/pull/19712, which was fixed but had not previously been backported to t…

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

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