# Ansible Project

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

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

**Page:** 245

---

## [No cap\_drop/cap\_add feature support in docker\_container module?](https://forum.ansible.com/t/no-cap-drop-cap-add-feature-support-in-docker-container-module/28156)

<div class="topic-metadata">

**Author:** [@Traiano\_Welcome](https://forum.ansible.com/u/Traiano_Welcome)\
**Replies:** 2\
**Last updated:** [July 27, 2018, 8:44am UTC](https://forum.ansible.com/t/no-cap-drop-cap-add-feature-support-in-docker-container-module/28156 "2018-07-27T08:44:03Z")

</div>

Hi Ansible’s docker\_container module does not implement cap\_drop and cap\_add feature to fully control access to kernel capabilities. Instead it implements the “capabilities” module for adding capabilities to a containe…

---

## [Ansible 2.5.7 is available](https://forum.ansible.com/t/ansible-2-5-7-is-available/28172)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [July 27, 2018, 1:27am UTC](https://forum.ansible.com/t/ansible-2-5-7-is-available/28172 "2018-07-27T01:27:11Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.5.7 is now available! How do you get it?

---

## [pbrun with arguments](https://forum.ansible.com/t/pbrun-with-arguments/28170)

<div class="topic-metadata">

**Author:** [@Sravan\_Sarraju](https://forum.ansible.com/u/Sravan_Sarraju)\
**Replies:** 0\
**Last updated:** [July 26, 2018, 9:42pm UTC](https://forum.ansible.com/t/pbrun-with-arguments/28170 "2018-07-26T21:42:27Z")

</div>

Team, If we have to run pbrun with arguments i.e. pbrun foo -u admin , ansible\_become=yes ansible\_become\_method=pbrun ansible\_become\_user=admin How to pass the additional foo argument? Should it be ansible\_become\_e…

---

## [Ansible directory structure - playbook sub directories - alternative structure](https://forum.ansible.com/t/ansible-directory-structure-playbook-sub-directories-alternative-structure/28169)

<div class="topic-metadata">

**Author:** [@Lee\_Drew](https://forum.ansible.com/u/Lee_Drew)\
**Replies:** 0\
**Last updated:** [July 26, 2018, 9:31pm UTC](https://forum.ansible.com/t/ansible-directory-structure-playbook-sub-directories-alternative-structure/28169 "2018-07-26T21:31:20Z")

</div>

On the Ansible best practices page it lists a suggested directory structure - https://docs.ansible.com/ansible/2.5/user\_guide/playbooks\_best\_practices.html I’ve only recently started using Ansible, and so far for this m…

---

## [pbrun escalation fails with command not found](https://forum.ansible.com/t/pbrun-escalation-fails-with-command-not-found/28168)

<div class="topic-metadata">

**Author:** [@Sravan\_Sarraju](https://forum.ansible.com/u/Sravan_Sarraju)\
**Replies:** 0\
**Last updated:** [July 26, 2018, 9:21pm UTC](https://forum.ansible.com/t/pbrun-escalation-fails-with-command-not-found/28168 "2018-07-26T21:21:15Z")

</div>

Hi Experts, I’m trying a simple usecase with pbrun and its not working. Details below Our system needs pbrun to be run as ‘pbrun foo -u admin’ So I created a playbook as

---

## [win\_dsc  - How to troubleshoot](https://forum.ansible.com/t/win-dsc-how-to-troubleshoot/28165)

<div class="topic-metadata">

**Author:** [@Justin2](https://forum.ansible.com/u/Justin2)\
**Replies:** 3\
**Last updated:** [July 26, 2018, 9:16pm UTC](https://forum.ansible.com/t/win-dsc-how-to-troubleshoot/28165 "2018-07-26T21:16:24Z")

</div>

\` name: Install ADCS with sub features and management tools win\_feature: name: Adcs-Cert-Authority state: present include\_management\_tools: yes register: win\_feature name: reboot if installing Adcs-Cert-Author…

---

## [CredSSP / Windows Server to Windows Domain Controller](https://forum.ansible.com/t/credssp-windows-server-to-windows-domain-controller/28153)

<div class="topic-metadata">

**Author:** [@Justin2](https://forum.ansible.com/u/Justin2)\
**Replies:** 5\
**Last updated:** [July 26, 2018, 7:51pm UTC](https://forum.ansible.com/t/credssp-windows-server-to-windows-domain-controller/28153 "2018-07-26T19:51:24Z")

</div>

Trying to figure out how to handle this situation. In AWS, I create a Windows Server and set the Local Administrator password while its coming up Ive defined a Group in my hosts file, and a group vars file ansible\_use…

---

## [CIS Baseline for Network Equipment](https://forum.ansible.com/t/cis-baseline-for-network-equipment/28160)

<div class="topic-metadata">

**Author:** [@Eugene\_Wong](https://forum.ansible.com/u/Eugene_Wong)\
**Replies:** 0\
**Last updated:** [July 26, 2018, 12:52pm UTC](https://forum.ansible.com/t/cis-baseline-for-network-equipment/28160 "2018-07-26T12:52:40Z")

</div>

Hi guys! Just checking if anyone had worked on any CIS standards for network equipment or is interested to form a group to do that? Am thinking that for common equipment such as Cisco IOS routers/switches and common fi…

---

## [Can ansible be used to control/change management on files](https://forum.ansible.com/t/can-ansible-be-used-to-control-change-management-on-files/28141)

<div class="topic-metadata">

**Author:** [@dmelcp](https://forum.ansible.com/u/dmelcp)\
**Replies:** 4\
**Last updated:** [July 26, 2018, 12:44pm UTC](https://forum.ansible.com/t/can-ansible-be-used-to-control-change-management-on-files/28141 "2018-07-26T12:44:40Z")

</div>

I am relatively new and just starting to us ansible in my company. One of the tasks I am looking to accomplish is to control files such as different Linux config files to ensure they are the correct version. For example …

---

## ["pywintypes.error: (5, 'OpenSCManager', 'Access is denied.')" #43150](https://forum.ansible.com/t/pywintypes-error-5-openscmanager-access-is-denied-43150/28148)

<div class="topic-metadata">

**Author:** [@Usha\_Rani](https://forum.ansible.com/u/Usha_Rani)\
**Replies:** 5\
**Last updated:** [July 26, 2018, 12:13pm UTC](https://forum.ansible.com/t/pywintypes-error-5-openscmanager-access-is-denied-43150/28148 "2018-07-26T12:13:16Z")

</div>

Hi Jborean, I have tried with "win\_scheduled\_task"option like below…This time its not giving any error …and its not stopping the services as well. And the windows server i am trying is on 2008R2. Please tell how exactl…

---

## [Custom Module Creation in Ansible](https://forum.ansible.com/t/custom-module-creation-in-ansible/28159)

<div class="topic-metadata">

**Author:** [@SUMIT\_SAHAY](https://forum.ansible.com/u/SUMIT_SAHAY)\
**Replies:** 0\
**Last updated:** [July 26, 2018, 9:06am UTC](https://forum.ansible.com/t/custom-module-creation-in-ansible/28159 "2018-07-26T09:06:21Z")

</div>

Hi All, I am trying to create custom module that will read the pdf file and capture the data, as we are doing for csv or excel file by using lookup plugin. Can someone navigate me to the correct direction? Looking for…

---

## [Ansible docker\_container module does not implement the pids-limit parameter](https://forum.ansible.com/t/ansible-docker-container-module-does-not-implement-the-pids-limit-parameter/28158)

<div class="topic-metadata">

**Author:** [@Traiano\_Welcome](https://forum.ansible.com/u/Traiano_Welcome)\
**Replies:** 0\
**Last updated:** [July 26, 2018, 6:58am UTC](https://forum.ansible.com/t/ansible-docker-container-module-does-not-implement-the-pids-limit-parameter/28158 "2018-07-26T06:58:05Z")

</div>

Ansible docker\_container module does not implement the pids-limit parameter: --pids-limit | | Tune container pids limit (set -1 for unlimited) | | - | - | Which means use-cases like fork bomb protection cannot be…

---

## [Ansible docker\_container module support for pids-limit?](https://forum.ansible.com/t/ansible-docker-container-module-support-for-pids-limit/28157)

<div class="topic-metadata">

**Author:** [@Traiano\_Welcome](https://forum.ansible.com/u/Traiano_Welcome)\
**Replies:** 0\
**Last updated:** [July 26, 2018, 5:36am UTC](https://forum.ansible.com/t/ansible-docker-container-module-support-for-pids-limit/28157 "2018-07-26T05:36:43Z")

</div>

Hi It appears ansible’s docker\_container module does not support the --pids-limit parameter? Is there any way to configure this for a container using this module ? Thanks in advance,

---

## [Inventory path in ansible plugin](https://forum.ansible.com/t/inventory-path-in-ansible-plugin/28135)

<div class="topic-metadata">

**Author:** [@ansiblekrazy](https://forum.ansible.com/u/ansiblekrazy)\
**Replies:** 4\
**Last updated:** [July 26, 2018, 2:48am UTC](https://forum.ansible.com/t/inventory-path-in-ansible-plugin/28135 "2018-07-26T02:48:43Z")

</div>

How to get inventory path in call back plugin: I found this, however it is not working def v2\_playbook\_on\_start(self, playbook): On Ansible v2, Ansible doesn’t set self.playbook automatically self.playb…

---

## [Encrypted variables for hosts](https://forum.ansible.com/t/encrypted-variables-for-hosts/28140)

<div class="topic-metadata">

**Author:** [@supermario18b](https://forum.ansible.com/u/supermario18b)\
**Replies:** 2\
**Last updated:** [July 25, 2018, 4:31pm UTC](https://forum.ansible.com/t/encrypted-variables-for-hosts/28140 "2018-07-25T16:31:57Z")

</div>

Hi everyone, I read about encrypted variables in the ansible documentation that the best practice to manage encrypted variables (only variables not the whole yml file) is to use a var file and a vault file in groups\_var…

---

## [How to disable Ansible remote logging](https://forum.ansible.com/t/how-to-disable-ansible-remote-logging/28149)

<div class="topic-metadata">

**Author:** [@anaparthi\_naresh\_bab](https://forum.ansible.com/u/anaparthi_naresh_bab)\
**Replies:** 1\
**Last updated:** [July 25, 2018, 11:28am UTC](https://forum.ansible.com/t/how-to-disable-ansible-remote-logging/28149 "2018-07-25T11:28:15Z")

</div>

Hi, As part of executing Ansible playbook, Seeing below lines are being logged on Remote Host. Would like to know if there is any option to disable this. Tried no\_log option. But no luck. remoteHost sudo: em9admin : T…

---

## [No AWX configuration found at /etc/tower/settings.py](https://forum.ansible.com/t/no-awx-configuration-found-at-etc-tower-settings-py/28147)

<div class="topic-metadata">

**Author:** [@vaibhav\_kanchan](https://forum.ansible.com/u/vaibhav_kanchan)\
**Replies:** 0\
**Last updated:** [July 25, 2018, 9:47am UTC](https://forum.ansible.com/t/no-awx-configuration-found-at-etc-tower-settings-py/28147 "2018-07-25T09:47:59Z")

</div>

hi all, I am trying to install aws tower but its getting failed here… any pointer to fix this TASK \[awx\_install : Migrate the Tower database schema (may take awhile when upgrading).\] \*\*\* fatal: \[localhost\]: FAILED! =\> …

---

## [lineinfile creates a backup everytime it is used in a role](https://forum.ansible.com/t/lineinfile-creates-a-backup-everytime-it-is-used-in-a-role/28077)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 4\
**Last updated:** [July 25, 2018, 5:50am UTC](https://forum.ansible.com/t/lineinfile-creates-a-backup-everytime-it-is-used-in-a-role/28077 "2018-07-25T05:50:22Z")

</div>

Hello all, I have to make sure that certain lines are present in the file /etc/postfix/main.cf. I’m not allowed to control the whole file, so I cannot use the template module. The lines are only allowed to exist once in…

---

## [Run simultaneously in all servers](https://forum.ansible.com/t/run-simultaneously-in-all-servers/28145)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 6\
**Last updated:** [July 25, 2018, 5:15am UTC](https://forum.ansible.com/t/run-simultaneously-in-all-servers/28145 "2018-07-25T05:15:44Z")

</div>

Is there a way that I can run a playbook that lets say patches where it will patch all hosts in a group simultaneously instead of running systematically through each individual server? Thanks!

---

## [Multi line Shell script in ansible shell module.](https://forum.ansible.com/t/multi-line-shell-script-in-ansible-shell-module/28137)

<div class="topic-metadata">

**Author:** [@tharun.kumarc09](https://forum.ansible.com/u/tharun.kumarc09)\
**Replies:** 2\
**Last updated:** [July 25, 2018, 4:19am UTC](https://forum.ansible.com/t/multi-line-shell-script-in-ansible-shell-module/28137 "2018-07-25T04:19:08Z")

</div>

I am a newbie with ansible. Currently i have shell script to purge the rds snapshots if expiration tag is matching the current date. This is how script looks like: #!/bin/bash date=$(date +%F) echo $date get\_rds() { …

---

## [Access static variables while using dynamic inventory](https://forum.ansible.com/t/access-static-variables-while-using-dynamic-inventory/28143)

<div class="topic-metadata">

**Author:** [@Suraj\_D](https://forum.ansible.com/u/Suraj_D)\
**Replies:** 1\
**Last updated:** [July 25, 2018, 4:10am UTC](https://forum.ansible.com/t/access-static-variables-while-using-dynamic-inventory/28143 "2018-07-25T04:10:51Z")

</div>

I am trying to use dynamic inventory using AWS Ec2 along with some static variables. I created a directory which contains ec2.py, ec2.ini (aws config files as stated in the docs) and vars.ini (containing my static variab…

---

## [wait\_for on reboot doesn't seem to be waiting.](https://forum.ansible.com/t/wait-for-on-reboot-doesnt-seem-to-be-waiting/28139)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 4\
**Last updated:** [July 24, 2018, 11:28pm UTC](https://forum.ansible.com/t/wait-for-on-reboot-doesnt-seem-to-be-waiting/28139 "2018-07-24T23:28:11Z")

</div>

Hi all, I’m trying to write a playbook that patches and reboots a server if necessary to apply kernel updates, etc. When I run it, it reboots and loses the connection instead of applying the wait\_for piece. Any ideas? …

---

## [How to have windows configured with ansible automatically](https://forum.ansible.com/t/how-to-have-windows-configured-with-ansible-automatically/21041)

<div class="topic-metadata">

**Author:** [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Replies:** 6\
**Last updated:** [July 24, 2018, 8:22pm UTC](https://forum.ansible.com/t/how-to-have-windows-configured-with-ansible-automatically/21041 "2018-07-24T20:22:53Z")

</div>

Hi My requirement is Provision a windows machine and run the playbooks without manual intervention. In this case, we cannot run the playbooks as windows is not configured for ansible. ie ConfigureRemotingForAnsible.ps1 …

---

## [ansible find](https://forum.ansible.com/t/ansible-find/28110)

<div class="topic-metadata">

**Author:** [@metatestingbell2](https://forum.ansible.com/u/metatestingbell2)\
**Replies:** 1\
**Last updated:** [July 24, 2018, 7:45pm UTC](https://forum.ansible.com/t/ansible-find/28110 "2018-07-24T19:45:40Z")

</div>

Hi, I have a variable aaa, and its content is formatted in json format . I’m trying to run a ‘find’ command on the value of “output” , however i’m not sure how I can just get the value of “output” I tried \*, brackets… w…

---

## [docker\_image  state: absent leaves images as untagged ??](https://forum.ansible.com/t/docker-image-state-absent-leaves-images-as-untagged/28134)

<div class="topic-metadata">

**Author:** [@Albert\_Shamsiyan](https://forum.ansible.com/u/Albert_Shamsiyan)\
**Replies:** 3\
**Last updated:** [July 24, 2018, 4:27pm UTC](https://forum.ansible.com/t/docker-image-state-absent-leaves-images-as-untagged/28134 "2018-07-24T16:27:10Z")

</div>

Hi, After successful execution of the following code, I can see that the images are left in untagged state. What am I doing wrong?? name: Remove image docker\_image: state: absent name: docker.mycomp.com/myapp/myapp…

---

## [docker\_container module always fails to update 'kernel\_memory' attribute on a running container.](https://forum.ansible.com/t/docker-container-module-always-fails-to-update-kernel-memory-attribute-on-a-running-container/28056)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [July 24, 2018, 4:23pm UTC](https://forum.ansible.com/t/docker-container-module-always-fails-to-update-kernel-memory-attribute-on-a-running-container/28056 "2018-07-24T16:23:56Z")

</div>

Hi, I had some containers started with some attributes as variables, values of which i wish to control later. So consider this docker task: \` name: Start container docker\_container: name: “{{cname}}” image: “{{ im…

---

## [Ansilbe tower install fail](https://forum.ansible.com/t/ansilbe-tower-install-fail/26880)

<div class="topic-metadata">

**Author:** [@Abhishek\_Reddy](https://forum.ansible.com/u/Abhishek_Reddy)\
**Replies:** 3\
**Last updated:** [July 24, 2018, 3:17pm UTC](https://forum.ansible.com/t/ansilbe-tower-install-fail/26880 "2018-07-24T15:17:16Z")

</div>

Hi, I’m trying to install ansible tower version of 3.2.3-1.el7.x86\_64 on a redhat 7.4 OS. i’m getting error as TASK \[postgres : create the postgres user and set the password\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Google cloud Instance](https://forum.ansible.com/t/google-cloud-instance/28136)

<div class="topic-metadata">

**Author:** [@Juraj\_Papic1](https://forum.ansible.com/u/Juraj_Papic1)\
**Replies:** 0\
**Last updated:** [July 24, 2018, 2:38pm UTC](https://forum.ansible.com/t/google-cloud-instance/28136 "2018-07-24T14:38:02Z")

</div>

Hi all, I will need help to create a playbook to start/stop Google cloud instance, I was searching for info, but Im lost with this, Any help appreciated. thanks.

---

## [win\_copy betwen two win servers with ntlm auth](https://forum.ansible.com/t/win-copy-betwen-two-win-servers-with-ntlm-auth/28132)

<div class="topic-metadata">

**Author:** [@Klemen\_Vicic](https://forum.ansible.com/u/Klemen_Vicic)\
**Replies:** 1\
**Last updated:** [July 24, 2018, 2:30pm UTC](https://forum.ansible.com/t/win-copy-betwen-two-win-servers-with-ntlm-auth/28132 "2018-07-24T14:30:06Z")

</div>

Hello, I’m trying to copy files betwen two win servers with ntlm authentication. This is my ansible hosts conf: \` Windows servers configuration \` \[win\] server1.domain.com server2.domain.com \[win:vars\] ansible\_use…

---

## [with list how to split from comma(,) with index number value ansible](https://forum.ansible.com/t/with-list-how-to-split-from-comma-with-index-number-value-ansible/28133)

<div class="topic-metadata">

**Author:** [@Atul\_Sharma](https://forum.ansible.com/u/Atul_Sharma)\
**Replies:** 2\
**Last updated:** [July 24, 2018, 11:13am UTC](https://forum.ansible.com/t/with-list-how-to-split-from-comma-with-index-number-value-ansible/28133 "2018-07-24T11:13:49Z")

</div>

Hello i have csv file and want to read line by line and split the string with comma(,) along with index number and want to store in register variable from following gsv i want to fetch user\_name which is in index number…

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

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