# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=310

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

**Page:** 311

---

## [Delpoying windows application from jenkins running on windows](https://forum.ansible.com/t/delpoying-windows-application-from-jenkins-running-on-windows/25589)

<div class="topic-metadata">

**Author:** [@schh](https://forum.ansible.com/u/schh)\
**Replies:** 2\
**Last updated:** [September 26, 2017, 3:08pm UTC](https://forum.ansible.com/t/delpoying-windows-application-from-jenkins-running-on-windows/25589 "2017-09-26T15:08:38Z")

</div>

Hi, Were running jenkins on windows, and id like to deploy using ansible. Since the ansible control needs linux im wondering if i can run playbooks remotely from jenkins. Thanks

---

## [Check Config File](https://forum.ansible.com/t/check-config-file/25599)

<div class="topic-metadata">

**Author:** [@samuel.melin](https://forum.ansible.com/u/samuel.melin)\
**Replies:** 1\
**Last updated:** [September 26, 2017, 2:49pm UTC](https://forum.ansible.com/t/check-config-file/25599 "2017-09-26T14:49:14Z")

</div>

Hi all I’m newbie on Ansible and i need to check some parameters in a config file. For example i need to check if the remote\_user is “user” in ansible.cfg How i can symply do that with a playbook ? Thx in advance, S…

---

## [recommended tools to deploy a test infrastructure for ansible?](https://forum.ansible.com/t/recommended-tools-to-deploy-a-test-infrastructure-for-ansible/25600)

<div class="topic-metadata">

**Author:** [@Pablo\_Escobar](https://forum.ansible.com/u/Pablo_Escobar)\
**Replies:** 0\
**Last updated:** [September 26, 2017, 2:38pm UTC](https://forum.ansible.com/t/recommended-tools-to-deploy-a-test-infrastructure-for-ansible/25600 "2017-09-26T14:38:31Z")

</div>

Hi, We are evaluating how to deploy a test infrastructure for our ansible playbooks and roles, ideally integrated with our internal Gitlab instance. Does anyone in the list has any advice based in your experience? I am…

---

## [Call custom action plugin from custom action plugin?](https://forum.ansible.com/t/call-custom-action-plugin-from-custom-action-plugin/25592)

<div class="topic-metadata">

**Author:** [@Dustin\_Spicuzza](https://forum.ansible.com/u/Dustin_Spicuzza)\
**Replies:** 0\
**Last updated:** [September 26, 2017, 12:10am UTC](https://forum.ansible.com/t/call-custom-action-plugin-from-custom-action-plugin/25592 "2017-09-26T00:10:50Z")

</div>

I have two action modules (found via setting the environment variable ANSIBLE\_ACTION\_PLUGINS to the directory they live in). a.py wants to use the functionality exposed by b.py to do a thing – both execute on the master …

---

## ["Group a does not exist" when adding groups to an existing user](https://forum.ansible.com/t/group-a-does-not-exist-when-adding-groups-to-an-existing-user/25575)

<div class="topic-metadata">

**Author:** [@LeamHall](https://forum.ansible.com/u/LeamHall)\
**Replies:** 3\
**Last updated:** [September 25, 2017, 5:18pm UTC](https://forum.ansible.com/t/group-a-does-not-exist-when-adding-groups-to-an-existing-user/25575 "2017-09-25T17:18:29Z")

</div>

I’m trying to add the long list of groups to the oracle user and getting “Group a does not exist.” as a failure msg. Not trying to add an “a” group, and the groups I am adding exist on the host. Is there a way to get mor…

---

## [Issue with 'when' conditional](https://forum.ansible.com/t/issue-with-when-conditional/25580)

<div class="topic-metadata">

**Author:** [@Dave](https://forum.ansible.com/u/Dave)\
**Replies:** 3\
**Last updated:** [September 25, 2017, 4:34pm UTC](https://forum.ansible.com/t/issue-with-when-conditional/25580 "2017-09-25T16:34:36Z")

</div>

Hi, I keep getting errors related to my ‘when’ conditionals in my following playbook:

---

## [question about 'when' conditional](https://forum.ansible.com/t/question-about-when-conditional/25590)

<div class="topic-metadata">

**Author:** [@Christian\_Iuga](https://forum.ansible.com/u/Christian_Iuga)\
**Replies:** 1\
**Last updated:** [September 25, 2017, 2:36pm UTC](https://forum.ansible.com/t/question-about-when-conditional/25590 "2017-09-25T14:36:21Z")

</div>

Hi, It’s look like i don’t understand perfectly when condition: tasks: set\_fact: sensu\_remote\_plugins: process-checks http disk-checks memory-checks load-checks cpu-checks io-checks rabbi…

---

## [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.

---

## [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…

---

## [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 -…

---

## [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!

---

## [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…

---

## [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…

---

## [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…

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=309)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=311)
