# Latest

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

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

**Page:** 622

---

## [win\_command not able to execute command file on win 2008](https://forum.ansible.com/t/win-command-not-able-to-execute-command-file-on-win-2008/25422)

<div class="topic-metadata">

**Author:** [@akshar\_barot](https://forum.ansible.com/u/akshar_barot)\
**Replies:** 3\
**Last updated:** [September 25, 2017, 2:19pm UTC](https://forum.ansible.com/t/win-command-not-able-to-execute-command-file-on-win-2008/25422 "2017-09-25T14:19:15Z")

</div>

Hi All, I have configured ansible to run some cmd script on windows machine. it is working fine in windows 7,8,2010. But, it is now working for only windows 2008. It is providing empty output.

---

## [How to use vault with AWX?](https://forum.ansible.com/t/how-to-use-vault-with-awx/25482)

<div class="topic-metadata">

**Author:** [@Jean-Francois\_Anctil](https://forum.ansible.com/u/Jean-Francois_Anctil)\
**Replies:** 10\
**Last updated:** [September 25, 2017, 12:00pm UTC](https://forum.ansible.com/t/how-to-use-vault-with-awx/25482 "2017-09-25T12:00:32Z")

</div>

Hi, I have a vault.yml file and when I run a playbook from AWX that refers to a variable from the vault file, I got an error telling me that the variable can’t be found. How can I use a vault in AWX?

---

## [Need Python API 2.0 fully explained documents](https://forum.ansible.com/t/need-python-api-2-0-fully-explained-documents/25389)

<div class="topic-metadata">

**Author:** [@Manish\_Chaturvedi](https://forum.ansible.com/u/Manish_Chaturvedi)\
**Replies:** 1\
**Last updated:** [September 25, 2017, 11:38am UTC](https://forum.ansible.com/t/need-python-api-2-0-fully-explained-documents/25389 "2017-09-25T11:38:38Z")

</div>

Hi Team, I am new for Ansible. I don’t want to execute YAML file. My requirement is to implement all necessary ansible keywods(like hosts,vars,tasks) in my python scripts to install any software on remote server. Regar…

---

## [Modifying Iptables With Ansible](https://forum.ansible.com/t/modifying-iptables-with-ansible/25548)

<div class="topic-metadata">

**Author:** [@himanshu.rajput](https://forum.ansible.com/u/himanshu.rajput)\
**Replies:** 1\
**Last updated:** [September 25, 2017, 9:23am UTC](https://forum.ansible.com/t/modifying-iptables-with-ansible/25548 "2017-09-25T09:23:11Z")

</div>

Hi, Can anyone help me with implementing iptables with Ansible? I want my server to be accessible only from specific IP addresses. I want to drop all the traffic except coming from several nodes. Should I drop all traff…

---

## [aix 6.1  Gathering Facts  error](https://forum.ansible.com/t/aix-6-1-gathering-facts-error/25586)

<div class="topic-metadata">

**Author:** [@80nature](https://forum.ansible.com/u/80nature)\
**Replies:** 0\
**Last updated:** [September 25, 2017, 8:53am UTC](https://forum.ansible.com/t/aix-6-1-gathering-facts-error/25586 "2017-09-25T08:53:22Z")

</div>

\[root@awx cms-uat-deploy\]# ansible-playbook -vvv -i hosts cms-wls-myfaces-example-simple20-deploy.yml Using /root/ansibleProjects/cms-uat-deploy/ansible.cfg as config file PLAYBOOK: cms-wls-myfaces-example-simple20-dep…

---

## [Ansible docker integration](https://forum.ansible.com/t/ansible-docker-integration/25577)

<div class="topic-metadata">

**Author:** [@Alper\_Dalar](https://forum.ansible.com/u/Alper_Dalar)\
**Replies:** 2\
**Last updated:** [September 25, 2017, 6:16am UTC](https://forum.ansible.com/t/ansible-docker-integration/25577 "2017-09-25T06:16:33Z")

</div>

Hi all I’m looking for great documentation ansible docker integration. I found some documents about docker python modules like as pip and wheel but, i couldn’t find good documents for API integrations. How can I provis…

---

## [invoke ansible script from Bamboo](https://forum.ansible.com/t/invoke-ansible-script-from-bamboo/25585)

<div class="topic-metadata">

**Author:** [@Byym\_Reddy](https://forum.ansible.com/u/Byym_Reddy)\
**Replies:** 1\
**Last updated:** [September 25, 2017, 5:20am UTC](https://forum.ansible.com/t/invoke-ansible-script-from-bamboo/25585 "2017-09-25T05:20:08Z")

</div>

How to invoke ansible script from bamboo ? I have a Bamboo server and Ansible server separately. Do I need to have a Bamboo agent on my Ansible server ? I’m doing the below, but not sure if this is the right way ? su -…

---

## [task serialize() quite a bit slower on Ansible 2.4 as compared to Ansible 2.3](https://forum.ansible.com/t/task-serialize-quite-a-bit-slower-on-ansible-2-4-as-compared-to-ansible-2-3/25553)

<div class="topic-metadata">

**Author:** [@Marcus\_B](https://forum.ansible.com/u/Marcus_B)\
**Replies:** 2\
**Last updated:** [September 24, 2017, 1:35am UTC](https://forum.ansible.com/t/task-serialize-quite-a-bit-slower-on-ansible-2-4-as-compared-to-ansible-2-3/25553 "2017-09-24T01:35:27Z")

</div>

Hi there, I’m using a custom callback plugin, which does a task.serialize() for every new task in a playback, in order to get some task details I can’t get otherwise. Up until Ansible 2.3 that caused a bit of a slowdow…

---

## [Organizing files in subdirectories  at role-level](https://forum.ansible.com/t/organizing-files-in-subdirectories-at-role-level/25583)

<div class="topic-metadata">

**Author:** [@Torsten\_Crass](https://forum.ansible.com/u/Torsten_Crass)\
**Replies:** 5\
**Last updated:** [September 23, 2017, 8:32pm UTC](https://forum.ansible.com/t/organizing-files-in-subdirectories-at-role-level/25583 "2017-09-23T20:32:07Z")

</div>

Hi there, I wonder how (if at all) it was possible to refer to files in subdirectories of a role’s “file” folder when using modules like “copy” and the like. To clarify, let’s assume we have a directory layout like thi…

---

## [network\_cli.py help](https://forum.ansible.com/t/network-cli-py-help/25581)

<div class="topic-metadata">

**Author:** [@coolcps](https://forum.ansible.com/u/coolcps)\
**Replies:** 2\
**Last updated:** [September 23, 2017, 5:31pm UTC](https://forum.ansible.com/t/network-cli-py-help/25581 "2017-09-23T17:31:31Z")

</div>

Would anyone happen to know if the ansible\_port variable is accessible anywhere in this module? I’d like to make an update (for personal use) that differentiates an action based on port. Thanks for any info!

---

## [RuntimeError: project local\_path user cannot be found in /var/lib/awx/projects](https://forum.ansible.com/t/runtimeerror-project-local-path-user-cannot-be-found-in-var-lib-awx-projects/25464)

<div class="topic-metadata">

**Author:** [@rahulansible](https://forum.ansible.com/u/rahulansible)\
**Replies:** 5\
**Last updated:** [September 23, 2017, 1:15am UTC](https://forum.ansible.com/t/runtimeerror-project-local-path-user-cannot-be-found-in-var-lib-awx-projects/25464 "2017-09-23T01:15:46Z")

</div>

Hi, I am running ansible awx role on oracle virtual box. Role has been ran perfectly and i was able to access the Ansible awx. I have added the playbooks manually and create a template to perform the job. But while run…

---

## [How to signal an error from a Jinja expression?](https://forum.ansible.com/t/how-to-signal-an-error-from-a-jinja-expression/25573)

<div class="topic-metadata">

**Author:** [@Cev\_Ing](https://forum.ansible.com/u/Cev_Ing)\
**Replies:** 1\
**Last updated:** [September 22, 2017, 11:16pm UTC](https://forum.ansible.com/t/how-to-signal-an-error-from-a-jinja-expression/25573 "2017-09-22T23:16:14Z")

</div>

I have the following task in a role: command: \>- passwd - {%- if ansible\_system == ‘SunOS’ %}N {%- elif ansible\_system == ‘Linux’ %}l {%- else %} {{ “Unknown OS”/0 }} {%- endif -%} How to throw an error for the u…

---

## [Template module.  MODE all wrong when using loop](https://forum.ansible.com/t/template-module-mode-all-wrong-when-using-loop/25563)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 5\
**Last updated:** [September 22, 2017, 8:33pm UTC](https://forum.ansible.com/t/template-module-mode-all-wrong-when-using-loop/25563 "2017-09-22T20:33:51Z")

</div>

When using the template module within a loop, my mode comes out all weird/wrong. When using stand-alone it works: \` name: test template: src: “files/sssd.conf” dest: “/etc/sssd/sssd.conf” mode: 0600 group: root …

---

## [Targeting Windows & Linux Machines from One Role](https://forum.ansible.com/t/targeting-windows-linux-machines-from-one-role/25571)

<div class="topic-metadata">

**Author:** [@Heather\_Luna](https://forum.ansible.com/u/Heather_Luna)\
**Replies:** 4\
**Last updated:** [September 22, 2017, 5:17pm UTC](https://forum.ansible.com/t/targeting-windows-linux-machines-from-one-role/25571 "2017-09-22T17:17:49Z")

</div>

I currently have a role that I am trying to tailor to install a splunk forwarder on both Linux and Windows machines but I’m a little confused as to how I should be telling the main.yml to yes go target these other two ta…

---

## [regexp help.....](https://forum.ansible.com/t/regexp-help/25572)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [September 22, 2017, 4:13pm UTC](https://forum.ansible.com/t/regexp-help/25572 "2017-09-22T16:13:53Z")

</div>

This works under a regexp tester, but fails under ansible. I don’t know how to correct it. Basically, it finds the lines starting with passwd or group, looks in the lines for sss, and appends if it isn’t found. \` nam…

---

## [jenkins ansible integration](https://forum.ansible.com/t/jenkins-ansible-integration/25576)

<div class="topic-metadata">

**Author:** [@Sreekuttan\_Sree](https://forum.ansible.com/u/Sreekuttan_Sree)\
**Replies:** 0\
**Last updated:** [September 22, 2017, 3:53pm UTC](https://forum.ansible.com/t/jenkins-ansible-integration/25576 "2017-09-22T15:53:29Z")

</div>

hi , i wrote ansible playbook for deploying war file in tomcat server.Now i want to run the playbook jenkins.How can configure it in jenkins. i installed plugins but while running job in jenkins its showing password aut…

---

## [How to use lookup on the remote machine?](https://forum.ansible.com/t/how-to-use-lookup-on-the-remote-machine/25574)

<div class="topic-metadata">

**Author:** [@Cev\_Ing](https://forum.ansible.com/u/Cev_Ing)\
**Replies:** 2\
**Last updated:** [September 22, 2017, 2:37pm UTC](https://forum.ansible.com/t/how-to-use-lookup-on-the-remote-machine/25574 "2017-09-22T14:37:01Z")

</div>

I use the following lookup to read a password hash: vars: get\_password\_hash: " file=/etc/shadow delimiter={{ ‘:’ }} col=1" tasks: set\_fact: password: “{{ lookup(‘csvfile’, ‘nobody’ + get\_password\_hash) }}” But thi…

---

## [How can Integrate Ansible Tower with Active Directory](https://forum.ansible.com/t/how-can-integrate-ansible-tower-with-active-directory/25550)

<div class="topic-metadata">

**Author:** [@Nuwan\_Vithanage](https://forum.ansible.com/u/Nuwan_Vithanage)\
**Replies:** 3\
**Last updated:** [September 22, 2017, 12:59pm UTC](https://forum.ansible.com/t/how-can-integrate-ansible-tower-with-active-directory/25550 "2017-09-22T12:59:44Z")

</div>

Hi Soniya , Thank you for the information I have followed the same link but still struck with it

---

## [Using yum module to install/update to defined version of a package-X.](https://forum.ansible.com/t/using-yum-module-to-install-update-to-defined-version-of-a-package-x/25561)

<div class="topic-metadata">

**Author:** [@Rui\_Goncalves](https://forum.ansible.com/u/Rui_Goncalves)\
**Replies:** 2\
**Last updated:** [September 22, 2017, 8:01am UTC](https://forum.ansible.com/t/using-yum-module-to-install-update-to-defined-version-of-a-package-x/25561 "2017-09-22T08:01:11Z")

</div>

Hi all. I’d like to install or update a package specifying the major.minor version. I.e, upgrade only if there’s a bugfix package available. I’ve tried using state=latest and present, but does not work as I expected. U…

---

## [yum module localinstall many rpms from directory possible?](https://forum.ansible.com/t/yum-module-localinstall-many-rpms-from-directory-possible/25565)

<div class="topic-metadata">

**Author:** [@daddyocruzer](https://forum.ansible.com/u/daddyocruzer)\
**Replies:** 4\
**Last updated:** [September 22, 2017, 7:20am UTC](https://forum.ansible.com/t/yum-module-localinstall-many-rpms-from-directory-possible/25565 "2017-09-22T07:20:05Z")

</div>

Hello tasks: name: yum local install yum: name=/sharedfilesystem/\*.rpm state=present Our team has several environments that lead up to our production environment, so patches must be applied and tested in one environ…

---

## [Help with playbooks](https://forum.ansible.com/t/help-with-playbooks/25567)

<div class="topic-metadata">

**Author:** [@Joli\_Martinez](https://forum.ansible.com/u/Joli_Martinez)\
**Replies:** 3\
**Last updated:** [September 22, 2017, 5:55am UTC](https://forum.ansible.com/t/help-with-playbooks/25567 "2017-09-22T05:55:15Z")

</div>

Hello, I am new to Ansible. I am creating my first playbook. I would like to add a useraccount to all my hosts, make the user a sudo user and have them sudo without a password. Also remove root logins. for some reason…

---

## [Updating roles on project update/install](https://forum.ansible.com/t/updating-roles-on-project-update-install/25533)

<div class="topic-metadata">

**Author:** [@Mike\_Biancaniello](https://forum.ansible.com/u/Mike_Biancaniello)\
**Replies:** 7\
**Last updated:** [September 22, 2017, 3:55am UTC](https://forum.ansible.com/t/updating-roles-on-project-update-install/25533 "2017-09-22T03:55:10Z")

</div>

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. It successfully finds the file, but, for some reason, scm\_full\_checkout is always set…

---

## [specifying targets for win\_psexec module?](https://forum.ansible.com/t/specifying-targets-for-win-psexec-module/25559)

<div class="topic-metadata">

**Author:** [@Steve\_Kersley](https://forum.ansible.com/u/Steve_Kersley)\
**Replies:** 1\
**Last updated:** [September 21, 2017, 10:18pm UTC](https://forum.ansible.com/t/specifying-targets-for-win-psexec-module/25559 "2017-09-21T22:18:54Z")

</div>

As I understand it, the win\_psexec action connects to a Windows host via winrm and then uses that to run commands on a second Windows host via psexec? My question is how to write a playbook such that the first (proxy) h…

---

## [Trying to push locally stored .pub keys to the "authorized\_keys" on a remote host](https://forum.ansible.com/t/trying-to-push-locally-stored-pub-keys-to-the-authorized-keys-on-a-remote-host/25569)

<div class="topic-metadata">

**Author:** [@Dave](https://forum.ansible.com/u/Dave)\
**Replies:** 3\
**Last updated:** [September 21, 2017, 9:22pm UTC](https://forum.ansible.com/t/trying-to-push-locally-stored-pub-keys-to-the-authorized-keys-on-a-remote-host/25569 "2017-09-21T21:22:18Z")

</div>

Hi, I’m looking at the Ansible ‘authorized\_key’ module and I’m unable to figure out whether it’s possible to push locally stored .pub keys to the authorized\_keys file on a remote host. I don’t want to go the route of up…

---

## [gconftool2 module odd behaviour](https://forum.ansible.com/t/gconftool2-module-odd-behaviour/25570)

<div class="topic-metadata">

**Author:** [@William\_Muriithi](https://forum.ansible.com/u/William_Muriithi)\
**Replies:** 0\
**Last updated:** [September 21, 2017, 9:14pm UTC](https://forum.ansible.com/t/gconftool2-module-odd-behaviour/25570 "2017-09-21T21:14:19Z")

</div>

Hello, I am wondering if anyone have used the above before. I have a task that I was initially using command module but today came across above module and decided to improve that task by using a module. The task is…

---

## [Unable to Load Inventory from Azure](https://forum.ansible.com/t/unable-to-load-inventory-from-azure/25536)

<div class="topic-metadata">

**Author:** [@Nigel\_M](https://forum.ansible.com/u/Nigel_M)\
**Replies:** 10\
**Last updated:** [September 21, 2017, 8:35pm UTC](https://forum.ansible.com/t/unable-to-load-inventory-from-azure/25536 "2017-09-21T20:35:09Z")

</div>

Evaluating AWX and just got it installed. Set up Azure (Microsoft Azure Resource Manager) as a an Inventory Source and attempting to sync. It appears to be connecting ok, but AWX is saying we don’t have any hosts. We hav…

---

## [How to change this regexp to multiline?](https://forum.ansible.com/t/how-to-change-this-regexp-to-multiline/25566)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 3\
**Last updated:** [September 21, 2017, 8:10pm UTC](https://forum.ansible.com/t/how-to-change-this-regexp-to-multiline/25566 "2017-09-21T20:10:50Z")

</div>

I need to set the multiline flag on this, but don’t know how to. Can anyone help? regexp: '^(?:passwd):\\s+(?:(?!sss).)+$'

---

## [Conflicting versions of wrapped roles in an Ansible project](https://forum.ansible.com/t/conflicting-versions-of-wrapped-roles-in-an-ansible-project/25514)

<div class="topic-metadata">

**Author:** [@jhammerman1](https://forum.ansible.com/u/jhammerman1)\
**Replies:** 4\
**Last updated:** [September 21, 2017, 7:22pm UTC](https://forum.ansible.com/t/conflicting-versions-of-wrapped-roles-in-an-ansible-project/25514 "2017-09-21T19:22:59Z")

</div>

Hello Ansible Project users, We’d like to have a versioned master role, with wrapper roles that list whichever version of the role they are wrapping in their dependencies. That way we can freely develop features and bre…

---

## [Question about force handlers](https://forum.ansible.com/t/question-about-force-handlers/25557)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 3\
**Last updated:** [September 21, 2017, 7:22pm UTC](https://forum.ansible.com/t/question-about-force-handlers/25557 "2017-09-21T19:22:58Z")

</div>

Testing out the force handlers parameter in a role and it is not working for me.The first tasks fails, so I though the force handlers would force the second one to get trigger anyway nginx.yml hosts: appservers for…

---

## [Problem referencing variables](https://forum.ansible.com/t/problem-referencing-variables/25528)

<div class="topic-metadata">

**Author:** [@Dave](https://forum.ansible.com/u/Dave)\
**Replies:** 4\
**Last updated:** [September 21, 2017, 7:19pm UTC](https://forum.ansible.com/t/problem-referencing-variables/25528 "2017-09-21T19:19:36Z")

</div>

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…

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

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