# Ansible Project

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

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

**Page:** 208

---

## [Running as inexistent non-root user in Docker container](https://forum.ansible.com/t/running-as-inexistent-non-root-user-in-docker-container/29650)

<div class="topic-metadata">

**Author:** [@Luca\_Pireddu](https://forum.ansible.com/u/Luca_Pireddu)\
**Replies:** 2\
**Last updated:** [February 11, 2019, 7:34pm UTC](https://forum.ansible.com/t/running-as-inexistent-non-root-user-in-docker-container/29650 "2019-02-11T19:34:57Z")

</div>

Hello, I’m wondering if anyone can help me run ansible as an inexistent user in a docker container. I’m trying to build a docker container image that runs ansible as a non-root user. It therefore runs the ansible proce…

---

## [\[WARNING\]: Could not match supplied host pattern ansible 2.7.6](https://forum.ansible.com/t/warning-could-not-match-supplied-host-pattern-ansible-2-7-6/29653)

<div class="topic-metadata">

**Author:** [@aidewuado](https://forum.ansible.com/u/aidewuado)\
**Replies:** 2\
**Last updated:** [February 11, 2019, 7:03pm UTC](https://forum.ansible.com/t/warning-could-not-match-supplied-host-pattern-ansible-2-7-6/29653 "2019-02-11T19:03:56Z")

</div>

Hello community, I am trying to generate a playbook using roles, but at the moment of executing the playbook it does not recognize the inventory hosts and does not execute the ROL My structure: my inventorie .yml: …

---

## [ansible service not work but command work](https://forum.ansible.com/t/ansible-service-not-work-but-command-work/29641)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 9\
**Last updated:** [February 11, 2019, 5:09pm UTC](https://forum.ansible.com/t/ansible-service-not-work-but-command-work/29641 "2019-02-11T17:09:27Z")

</div>

Hi, When i use service in ansible same this task : name: “stop nginx” service: name: nginx state: stopped Same with “become: yes” and “pattern: my\_pattern\_file” but with line “command: sudo systemctl stop nginx” …

---

## [Show all services target host](https://forum.ansible.com/t/show-all-services-target-host/29647)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 4\
**Last updated:** [February 11, 2019, 4:26pm UTC](https://forum.ansible.com/t/show-all-services-target-host/29647 "2019-02-11T16:26:46Z")

</div>

Hi, In localhost, i can write next command in prompt : ansible localhost -m service -a “name=nginx state=started” But how show all services in target host exemple : ansible target\_host -m service -a all it’s not wor…

---

## [groups\_vars not working \[inventory\]](https://forum.ansible.com/t/groups-vars-not-working-inventory/29284)

<div class="topic-metadata">

**Author:** [@aidewuado](https://forum.ansible.com/u/aidewuado)\
**Replies:** 7\
**Last updated:** [February 11, 2019, 1:22pm UTC](https://forum.ansible.com/t/groups-vars-not-working-inventory/29284 "2019-02-11T13:22:13Z")

</div>

Hello, im trying to using a groups vars out side of inventory, but not working my file struct: work this form: eco-sql-dev.ini \` \[win-mssql\] lab-sql1.DOMAIN.cl \[win-mssql:vars\] ansible\_user=svc-ansible-dev@DO…

---

## [win\_hostname module missing](https://forum.ansible.com/t/win-hostname-module-missing/29646)

<div class="topic-metadata">

**Author:** [@Sergey\_Vinogradov](https://forum.ansible.com/u/Sergey_Vinogradov)\
**Replies:** 1\
**Last updated:** [February 11, 2019, 11:18am UTC](https://forum.ansible.com/t/win-hostname-module-missing/29646 "2019-02-11T11:18:28Z")

</div>

Hi, I try to use examles for hostname change on windows machine, but it looks like the win\_hostname is missing https://docs.ansible.com/ansible/latest/modules/win\_hostname\_module.html#win-hostname-module Is this modul…

---

## [jinja2 template - {% else %} not honored](https://forum.ansible.com/t/jinja2-template-else-not-honored/29645)

<div class="topic-metadata">

**Author:** [@Ashok1](https://forum.ansible.com/u/Ashok1)\
**Replies:** 1\
**Last updated:** [February 11, 2019, 7:20am UTC](https://forum.ansible.com/t/jinja2-template-else-not-honored/29645 "2019-02-11T07:20:26Z")

</div>

I have the following data structure: client\_groups: apache: ‘10.5.10.111’ ‘10.2.10.112’ ‘10.5.10.11’ mail: ‘1.2.3.4’ ‘5.6.7.8’ database: ‘10.9.8.7’ client\_destinations: apache: var: ‘$syslogtag’ contains:…

---

## [Ansible - Juniper Command output - SpanningTree](https://forum.ansible.com/t/ansible-juniper-command-output-spanningtree/29643)

<div class="topic-metadata">

**Author:** [@DM11](https://forum.ansible.com/u/DM11)\
**Replies:** 0\
**Last updated:** [February 9, 2019, 3:03pm UTC](https://forum.ansible.com/t/ansible-juniper-command-output-spanningtree/29643 "2019-02-09T15:03:11Z")

</div>

Can someone send me a YAML for collecting the output of the following Juniper EX command: user@switch\> show spanning-tree interface I am looking to see what ports are in a BLOCK BACKUP state ge-0/0/2.0 128:515 128:515…

---

## [Azure VM's behind Public LoadBalancer](https://forum.ansible.com/t/azure-vms-behind-public-loadbalancer/29509)

<div class="topic-metadata">

**Author:** [@Michael\_Cruz](https://forum.ansible.com/u/Michael_Cruz)\
**Replies:** 1\
**Last updated:** [February 8, 2019, 5:06pm UTC](https://forum.ansible.com/t/azure-vms-behind-public-loadbalancer/29509 "2019-02-08T17:06:45Z")

</div>

Hello All, I have Windows VM’s in Azure behind a Public LoadBalancer the VM’s are set up to use a Network Security Group to keep traffic limited to our office. My inventory.yml is set up by name:port where the last digi…

---

## [Import certificates to aws certificate manager](https://forum.ansible.com/t/import-certificates-to-aws-certificate-manager/29640)

<div class="topic-metadata">

**Author:** [@sridhara\_sri](https://forum.ansible.com/u/sridhara_sri)\
**Replies:** 2\
**Last updated:** [February 8, 2019, 5:05pm UTC](https://forum.ansible.com/t/import-certificates-to-aws-certificate-manager/29640 "2019-02-08T17:05:16Z")

</div>

Hi how to import certificate into aws certificate manager and get the arn number… am writing the sample ansible code to launch an ELB and add SSL to the launched ELB using arn… or need suggestion to enable SSL on newly…

---

## [varible hosts](https://forum.ansible.com/t/varible-hosts/29639)

<div class="topic-metadata">

**Author:** [@rupesh\_alasundkar](https://forum.ansible.com/u/rupesh_alasundkar)\
**Replies:** 0\
**Last updated:** [February 8, 2019, 10:39am UTC](https://forum.ansible.com/t/varible-hosts/29639 "2019-02-08T10:39:55Z")

</div>

\[1\] peer{{ peer\_number }}.peers and \[2\]peer{{ peer\_number }}.peers.cluster{{ cluster }} are my 2 hosts. NOTE: {{ peer\_number }} and {{ cluster }} is there any way i can use these both and can use in hosts: position??? m…

---

## [Ansible to adopt molecule and ansible-lint projects.](https://forum.ansible.com/t/ansible-to-adopt-molecule-and-ansible-lint-projects/28657)

<div class="topic-metadata">

**Author:** [@tima](https://forum.ansible.com/u/tima)\
**Replies:** 3\
**Last updated:** [February 8, 2019, 3:21am UTC](https://forum.ansible.com/t/ansible-to-adopt-molecule-and-ansible-lint-projects/28657 "2019-02-08T03:21:17Z")

</div>

To support the continued growth of Ansible we are expanding Ansible Galaxy to include new functionality and tooling. A goal of this expansion is to provide a minimum viable level of quality checks for content on Ansible …

---

## [This topic needs a title](https://forum.ansible.com/t/this-topic-needs-a-title/29638)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [February 8, 2019, 1:50am UTC](https://forum.ansible.com/t/this-topic-needs-a-title/29638 "2019-02-08T01:50:21Z")

</div>

Hi all- we're happy to announce that the general release of Ansible 2.7.7 and Ansible 2.6.13 are now available! How do you get it?

---

## [Proper use of linear module (not linear strategy)](https://forum.ansible.com/t/proper-use-of-linear-module-not-linear-strategy/29637)

<div class="topic-metadata">

**Author:** [@John\_Nelson](https://forum.ansible.com/u/John_Nelson)\
**Replies:** 2\
**Last updated:** [February 7, 2019, 6:30pm UTC](https://forum.ansible.com/t/proper-use-of-linear-module-not-linear-strategy/29637 "2019-02-07T18:30:08Z")

</div>

The documentation for the ‘linear’ module is incomplete. It has no examples and no real explanation of the process flow. The explanation that it has does not make sense to me. Can someone give me a good example of using…

---

## [Ansible and PCI DSS Compliance](https://forum.ansible.com/t/ansible-and-pci-dss-compliance/22932)

<div class="topic-metadata">

**Author:** [@Simon\_Young](https://forum.ansible.com/u/Simon_Young)\
**Replies:** 4\
**Last updated:** [February 7, 2019, 11:33am UTC](https://forum.ansible.com/t/ansible-and-pci-dss-compliance/22932 "2019-02-07T11:33:24Z")

</div>

Hi, We have a Cardholder Data Environment which is in scope for PCI compliance, and we intend to manage the environment using Ansible. I’ve read a few articles which suggest that using Ansible is a Good Thing for PCI c…

---

## [MIT kerberos management module](https://forum.ansible.com/t/mit-kerberos-management-module/29636)

<div class="topic-metadata">

**Author:** [@Fraser\_Campbell](https://forum.ansible.com/u/Fraser_Campbell)\
**Replies:** 0\
**Last updated:** [February 7, 2019, 1:13am UTC](https://forum.ansible.com/t/mit-kerberos-management-module/29636 "2019-02-07T01:13:41Z")

</div>

Is anyone aware of a module for ongoing management of MIT kerberos realms? We would like basic operations such as generating keytabs and creating principals. So far I’m only finding modules for setting up the basic MIT …

---

## [Ansible with k8s-module example](https://forum.ansible.com/t/ansible-with-k8s-module-example/29635)

<div class="topic-metadata">

**Author:** [@Kylix\_Kumar](https://forum.ansible.com/u/Kylix_Kumar)\
**Replies:** 3\
**Last updated:** [February 7, 2019, 1:04am UTC](https://forum.ansible.com/t/ansible-with-k8s-module-example/29635 "2019-02-07T01:04:45Z")

</div>

Hi All, Ansible k8s module ( https://docs.ansible.com/ansible/latest/modules/k8s\_module.html#k8s-module ) have many environments like : api\_key ---- K8S\_AUTH\_API\_KEY environment variable. cert\_file — K8S\_AUTH\_CERT\_FIL…

---

## [Ansible but with Python instead of YAML](https://forum.ansible.com/t/ansible-but-with-python-instead-of-yaml/29590)

<div class="topic-metadata">

**Author:** [@Thomas\_Guttler](https://forum.ansible.com/u/Thomas_Guttler)\
**Replies:** 9\
**Last updated:** [February 6, 2019, 8:58pm UTC](https://forum.ansible.com/t/ansible-but-with-python-instead-of-yaml/29590 "2019-02-06T20:58:59Z")

</div>

I am using a different config management tool up to now (not ansible). I think about switching to ansible. But I don’t like YAML. I like Python. Is it doable to use Python syntax instead of YAML? Is it feasible to d…

---

## [authorized\_keys module](https://forum.ansible.com/t/authorized-keys-module/29634)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 2\
**Last updated:** [February 6, 2019, 7:58pm UTC](https://forum.ansible.com/t/authorized-keys-module/29634 "2019-02-06T19:58:24Z")

</div>

Hi all, I’m trying to add pubkeys to several users and I’m getting an error message. Here’s the playbook:

---

## [Ansible syntax check fail in gitlab-ci](https://forum.ansible.com/t/ansible-syntax-check-fail-in-gitlab-ci/29633)

<div class="topic-metadata">

**Author:** [@Remi\_Desgrange](https://forum.ansible.com/u/Remi_Desgrange)\
**Replies:** 0\
**Last updated:** [February 6, 2019, 4:50pm UTC](https://forum.ansible.com/t/ansible-syntax-check-fail-in-gitlab-ci/29633 "2019-02-06T16:50:49Z")

</div>

Hi, I have a working playbook. It works on my machine, but also in CI. But running “ansible-playbook -i hosts.yml site.yml --syntax-check” in a gitlab-ci with a docker container (image: williamyeh/ansible:ubuntu16.04) d…

---

## [Unable to run 'expect' module](https://forum.ansible.com/t/unable-to-run-expect-module/29630)

<div class="topic-metadata">

**Author:** [@Alain\_Desilets](https://forum.ansible.com/u/Alain_Desilets)\
**Replies:** 5\
**Last updated:** [February 6, 2019, 3:58pm UTC](https://forum.ansible.com/t/unable-to-run-expect-module/29630 "2019-02-06T15:58:40Z")

</div>

I am trying to run a playbook (see end of the post), which invokes the ‘expect’ module. But when I run it, I get error: \` TASK \[Run anaconda installation script\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[127.0…

---

## [Learning Ansible, tutorials and trainnings](https://forum.ansible.com/t/learning-ansible-tutorials-and-trainnings/29621)

<div class="topic-metadata">

**Author:** [@Krisztian\_Toth](https://forum.ansible.com/u/Krisztian_Toth)\
**Replies:** 3\
**Last updated:** [February 6, 2019, 3:37pm UTC](https://forum.ansible.com/t/learning-ansible-tutorials-and-trainnings/29621 "2019-02-06T15:37:49Z")

</div>

Hi everyone, I was wondering if you could recommend some free or paid training in form of a lab or video tutorial to learn using Ansible. Additionally, the same with vCenter, ESXi configuration with Ansible. Thanks, …

---

## [Getting region on localhost](https://forum.ansible.com/t/getting-region-on-localhost/29631)

<div class="topic-metadata">

**Author:** [@Wes\_Tibbitts](https://forum.ansible.com/u/Wes_Tibbitts)\
**Replies:** 0\
**Last updated:** [February 6, 2019, 3:09pm UTC](https://forum.ansible.com/t/getting-region-on-localhost/29631 "2019-02-06T15:09:51Z")

</div>

I’m running a small playbook that runs commands to create AWS infrastructure from the localhost. I want to use the localhosts region as the default, but using instance metadata to get the AZ and then parsing the region j…

---

## [hii, i got this error while executing the playbook for installing a package using variable module.](https://forum.ansible.com/t/hii-i-got-this-error-while-executing-the-playbook-for-installing-a-package-using-variable-module/29476)

<div class="topic-metadata">

**Author:** [@haripte209](https://forum.ansible.com/u/haripte209)\
**Replies:** 1\
**Last updated:** [February 6, 2019, 1:44pm UTC](https://forum.ansible.com/t/hii-i-got-this-error-while-executing-the-playbook-for-installing-a-package-using-variable-module/29476 "2019-02-06T13:44:43Z")

</div>

TASK \[install a package\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[172.31.37.218\]: FAILED! =\> {“changed”: false, “msg”: “Failure talking…

---

## [Generate resgiter from dict var](https://forum.ansible.com/t/generate-resgiter-from-dict-var/29629)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 0\
**Last updated:** [February 6, 2019, 11:53am UTC](https://forum.ansible.com/t/generate-resgiter-from-dict-var/29629 "2019-02-06T11:53:58Z")

</div>

Hi , I need create register from variable. My variable is: my\_rules: name: ‘AllowSSH’ protocol: Tcp destination\_port\_range: 22 access: Allow priority: 100 direction: Inbound name: ‘AllowHTTPS’ protocol: Tcp d…

---

## [Email Module Failure on Ansible](https://forum.ansible.com/t/email-module-failure-on-ansible/29626)

<div class="topic-metadata">

**Author:** [@CK\_LZEM7](https://forum.ansible.com/u/CK_LZEM7)\
**Replies:** 0\
**Last updated:** [February 6, 2019, 4:33am UTC](https://forum.ansible.com/t/email-module-failure-on-ansible/29626 "2019-02-06T04:33:36Z")

</div>

I have set up an ansible tower using the following docker image \*\*ybalt/ansible-tower:\*\*\*\*latest\*\* After setting up I have upgraded the applications inside the container by \*\*apt-get upgrade\*\* After that following a…

---

## [Create new Inventory --- add extra vars by default](https://forum.ansible.com/t/create-new-inventory-add-extra-vars-by-default/29625)

<div class="topic-metadata">

**Author:** [@Sindhuja\_Koneru](https://forum.ansible.com/u/Sindhuja_Koneru)\
**Replies:** 3\
**Last updated:** [February 6, 2019, 2:16am UTC](https://forum.ansible.com/t/create-new-inventory-add-extra-vars-by-default/29625 "2019-02-06T02:16:37Z")

</div>

Hi, Is below possible in Ansible, please guide? When creating a new Ansible inventory, is it possible to make any config settings in tower such that it auto populates EXTRA VARS. Idea is that user should not update th…

---

## [how to invoke an ansible module which accepts a variable set of parameters](https://forum.ansible.com/t/how-to-invoke-an-ansible-module-which-accepts-a-variable-set-of-parameters/29624)

<div class="topic-metadata">

**Author:** [@Chris7444](https://forum.ansible.com/u/Chris7444)\
**Replies:** 0\
**Last updated:** [February 5, 2019, 9:56pm UTC](https://forum.ansible.com/t/how-to-invoke-an-ansible-module-which-accepts-a-variable-set-of-parameters/29624 "2019-02-05T21:56:35Z")

</div>

Hi I want to invoke a module wich accepts an attribute osCustomAttributes which takes a variable set of properties (sorry if the wording is not the correct one for yaml) Example below. All the names under osCustomAttri…

---

## [Ansible-pull for windows](https://forum.ansible.com/t/ansible-pull-for-windows/29623)

<div class="topic-metadata">

**Author:** [@Subhi\_Andrews](https://forum.ansible.com/u/Subhi_Andrews)\
**Replies:** 0\
**Last updated:** [February 5, 2019, 9:56pm UTC](https://forum.ansible.com/t/ansible-pull-for-windows/29623 "2019-02-05T21:56:29Z")

</div>

Are there any plans to bring ansible-pull to windows? Thanks, Subhi.

---

## [How do I read/ use Ansible tower credentials (machine/ network/ Vault/ Source Control)?](https://forum.ansible.com/t/how-do-i-read-use-ansible-tower-credentials-machine-network-vault-source-control/29541)

<div class="topic-metadata">

**Author:** [@Saravanan](https://forum.ansible.com/u/Saravanan)\
**Replies:** 2\
**Last updated:** [February 5, 2019, 12:28pm UTC](https://forum.ansible.com/t/how-do-i-read-use-ansible-tower-credentials-machine-network-vault-source-control/29541 "2019-02-05T12:28:46Z")

</div>

Hi Ansible Experts, This question is more relevant to Ansible Tower. Can someone help to read the Ansible tower credentials in Playbook? We have created machine type credential called sampleCredential and password for…

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

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