# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=297

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

**Page:** 298

---

## [K8s module support for  --from-file=hooks](https://forum.ansible.com/t/k8s-module-support-for-from-file-hooks/30122)

<div class="topic-metadata">

**Author:** [@Alon\_Nisser](https://forum.ansible.com/u/Alon_Nisser)\
**Replies:** 0\
**Last updated:** [April 16, 2019, 11:00am UTC](https://forum.ansible.com/t/k8s-module-support-for-from-file-hooks/30122 "2019-04-16T11:00:52Z")

</div>

While I enjoy the new k8s module a lot I failed to find out how to do something like this with it kubectl create configmap service-per-pod-hooks -n metacontroller --from-file=hooks I’ll be glad for any pointers on how …

---

## [Separate Hard Disk guest](https://forum.ansible.com/t/separate-hard-disk-guest/30120)

<div class="topic-metadata">

**Author:** [@lander.hernandezmart](https://forum.ansible.com/u/lander.hernandezmart)\
**Replies:** 2\
**Last updated:** [April 16, 2019, 10:05am UTC](https://forum.ansible.com/t/separate-hard-disk-guest/30120 "2019-04-16T10:05:22Z")

</div>

I need separate hard disk information in number of hard disk and his information. For example, I have 2 disk and only need 1 disk information. My YAML is:

---

## [can't create a category tag](https://forum.ansible.com/t/cant-create-a-category-tag/30121)

<div class="topic-metadata">

**Author:** [@lander.hernandezmart](https://forum.ansible.com/u/lander.hernandezmart)\
**Replies:** 0\
**Last updated:** [April 16, 2019, 9:41am UTC](https://forum.ansible.com/t/cant-create-a-category-tag/30121 "2019-04-16T09:41:26Z")

</div>

I try to create a category in vsphere but have a giant error This is my YAML:

---

## [Ansible retrieve stdout with items loop](https://forum.ansible.com/t/ansible-retrieve-stdout-with-items-loop/30117)

<div class="topic-metadata">

**Author:** [@wanexa77](https://forum.ansible.com/u/wanexa77)\
**Replies:** 2\
**Last updated:** [April 16, 2019, 9:30am UTC](https://forum.ansible.com/t/ansible-retrieve-stdout-with-items-loop/30117 "2019-04-16T09:30:29Z")

</div>

Hi All I want to retrieve multiple output from a command with a with items loop the playbook is like this name: test command: openssl rand -base64 20 register: pwd delegate\_to: localhost with\_items: test1 test t…

---

## [multiple awx\_task containers](https://forum.ansible.com/t/multiple-awx-task-containers/28968)

<div class="topic-metadata">

**Author:** [@Adam\_E](https://forum.ansible.com/u/Adam_E)\
**Replies:** 4\
**Last updated:** [April 16, 2019, 6:51am UTC](https://forum.ansible.com/t/multiple-awx-task-containers/28968 "2019-04-16T06:51:49Z")

</div>

Hi there, I have completed the installation following the guide and am using the docker standalone setup. All works well. I would like to be able to add a second awx\_task container so I can distribute the load across mul…

---

## [how to modify output](https://forum.ansible.com/t/how-to-modify-output/30114)

<div class="topic-metadata">

**Author:** [@fmontaldo3](https://forum.ansible.com/u/fmontaldo3)\
**Replies:** 1\
**Last updated:** [April 16, 2019, 1:56am UTC](https://forum.ansible.com/t/how-to-modify-output/30114 "2019-04-16T01:56:12Z")

</div>

Hi folks: I got the following playbook

---

## [Pip install of Ansible on Ubuntu 16.04 results in broken ansible](https://forum.ansible.com/t/pip-install-of-ansible-on-ubuntu-16-04-results-in-broken-ansible/26321)

<div class="topic-metadata">

**Author:** [@Stephen\_Nesbitt](https://forum.ansible.com/u/Stephen_Nesbitt)\
**Replies:** 2\
**Last updated:** [April 16, 2019, 1:54am UTC](https://forum.ansible.com/t/pip-install-of-ansible-on-ubuntu-16-04-results-in-broken-ansible/26321 "2019-04-16T01:54:31Z")

</div>

All: After installing ansible using pip on an Ubuntu 16.04 system with python 3.5 results in the following error: ERROR! Unexpected Exception, this is probably a bug: (cryptography 1.2.3 (/usr/lib/python3/dist-packages)…

---

## [Ansible-2.8.0b1 available for testing](https://forum.ansible.com/t/ansible-2-8-0b1-available-for-testing/30115)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [April 15, 2019, 8:42pm UTC](https://forum.ansible.com/t/ansible-2-8-0b1-available-for-testing/30115 "2019-04-15T20:42:27Z")

</div>

Hi all- we're happy to announce that Ansible 2.8.0b1 is now available for testing! How do you get it?

---

## [Change a dictionary within a loop](https://forum.ansible.com/t/change-a-dictionary-within-a-loop/30113)

<div class="topic-metadata">

**Author:** [@Spiro\_Mitsialis](https://forum.ansible.com/u/Spiro_Mitsialis)\
**Replies:** 0\
**Last updated:** [April 15, 2019, 6:28pm UTC](https://forum.ansible.com/t/change-a-dictionary-within-a-loop/30113 "2019-04-15T18:28:38Z")

</div>

I am trying to edit ansible\_facts created by network-engine inside a loop but cannot figure out the syntax. I have a bunch of VLANs as a dict.

---

## [Connect two AWX](https://forum.ansible.com/t/connect-two-awx/30098)

<div class="topic-metadata">

**Author:** [@egavi1984](https://forum.ansible.com/u/egavi1984)\
**Replies:** 5\
**Last updated:** [April 15, 2019, 5:42pm UTC](https://forum.ansible.com/t/connect-two-awx/30098 "2019-04-15T17:42:11Z")

</div>

Hi everyone, I have an AWX installed in each data center and I need to link those two AWS to be able to execute their tasks. Someone can explain me how can I do this please? DATA CENTER I DATA CENTER II AWX\_DC1 AWX\_DC…

---

## [Ansible regex\_replace and replace](https://forum.ansible.com/t/ansible-regex-replace-and-replace/30112)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 1\
**Last updated:** [April 15, 2019, 5:01pm UTC](https://forum.ansible.com/t/ansible-regex-replace-and-replace/30112 "2019-04-15T17:01:13Z")

</div>

Hi all, I have two task : name: “Utilisation du replace dans un fichier” set\_fact: mon\_fichier: “{{ lookup(‘file’, ‘/home/ansible/file.txt’) | replace(‘\\n’, ’ ') }}” and name: “Utilisation du regex\_replace dans u…

---

## [Project Sync fails when project is created with SCM type as "mercurial"](https://forum.ansible.com/t/project-sync-fails-when-project-is-created-with-scm-type-as-mercurial/29697)

<div class="topic-metadata">

**Author:** [@RC1](https://forum.ansible.com/u/RC1)\
**Replies:** 2\
**Last updated:** [April 15, 2019, 6:58am UTC](https://forum.ansible.com/t/project-sync-fails-when-project-is-created-with-scm-type-as-mercurial/29697 "2019-04-15T06:58:32Z")

</div>

Title - Project Sync fails when project is created with SCM type as “mercurial” Execution Steps :1. Login to AWX dashboard with admin user Click on the project panel to create a project ‘test\_job’. Select SCM Typ…

---

## [Unable to create SCM Type Manual](https://forum.ansible.com/t/unable-to-create-scm-type-manual/27474)

<div class="topic-metadata">

**Author:** [@Dinesh\_Vashisht](https://forum.ansible.com/u/Dinesh_Vashisht)\
**Replies:** 4\
**Last updated:** [April 15, 2019, 6:49am UTC](https://forum.ansible.com/t/unable-to-create-scm-type-manual/27474 "2019-04-15T06:49:56Z")

</div>

Hello Team, While creating new project with SCM TYPE: Manual getting the following error: WARNING: There are no available playbook directories in /var/lib/awx/projects. Either that directory is empty, or all of the con…

---

## [how to access hosts variable in ansible tasks](https://forum.ansible.com/t/how-to-access-hosts-variable-in-ansible-tasks/30111)

<div class="topic-metadata">

**Author:** [@Kunalsing\_Thakur](https://forum.ansible.com/u/Kunalsing_Thakur)\
**Replies:** 4\
**Last updated:** [April 14, 2019, 6:54pm UTC](https://forum.ansible.com/t/how-to-access-hosts-variable-in-ansible-tasks/30111 "2019-04-14T18:54:53Z")

</div>

hosts: test.example.com, test1.example.com gather\_facts: false tasks: name: checking uptime for {{ ansible\_hostname }} command: uptime when: ( “slave” in uriresult.content )

---

## [Loop problem](https://forum.ansible.com/t/loop-problem/30110)

<div class="topic-metadata">

**Author:** [@Sergio\_Fernandez](https://forum.ansible.com/u/Sergio_Fernandez)\
**Replies:** 5\
**Last updated:** [April 14, 2019, 1:10pm UTC](https://forum.ansible.com/t/loop-problem/30110 "2019-04-14T13:10:07Z")

</div>

Hi, I am using Ansible along with HashiCorp’s Vault to store sensible data. I will be weekly sending a Secret\_ID to each server, in order for them to get a token. With this token, they can access the contents of the Va…

---

## [Invoke roles with different variables](https://forum.ansible.com/t/invoke-roles-with-different-variables/30109)

<div class="topic-metadata">

**Author:** [@John\_Gateley](https://forum.ansible.com/u/John_Gateley)\
**Replies:** 0\
**Last updated:** [April 13, 2019, 4:41pm UTC](https://forum.ansible.com/t/invoke-roles-with-different-variables/30109 "2019-04-13T16:41:52Z")

</div>

Hello, I have a role “runit\_service” that creates a runit service based on variables (service\_name, script etc.) I have two roles that depend on runit\_service: role\_a and role\_b. The intent is to create two runit\_servi…

---

## [New User First Issue discrepancy between ansible & tower](https://forum.ansible.com/t/new-user-first-issue-discrepancy-between-ansible-tower/30107)

<div class="topic-metadata">

**Author:** [@joel.fisak](https://forum.ansible.com/u/joel.fisak)\
**Replies:** 2\
**Last updated:** [April 13, 2019, 1:46pm UTC](https://forum.ansible.com/t/new-user-first-issue-discrepancy-between-ansible-tower/30107 "2019-04-13T13:46:43Z")

</div>

Ansible works, a single playbook “helloworld.yml” works via cmd line. Yet in tower it doesn’t. My hosts file is very simple (just 1 IP). ansible\]$ cat hosts This is the default ansible ‘hosts’ file.

---

## [The non-existence of local facts means Ansible cannot check the existence of a local fact](https://forum.ansible.com/t/the-non-existence-of-local-facts-means-ansible-cannot-check-the-existence-of-a-local-fact/30078)

<div class="topic-metadata">

**Author:** [@Andy\_Wang](https://forum.ansible.com/u/Andy_Wang)\
**Replies:** 5\
**Last updated:** [April 13, 2019, 1:38pm UTC](https://forum.ansible.com/t/the-non-existence-of-local-facts-means-ansible-cannot-check-the-existence-of-a-local-fact/30078 "2019-04-13T13:38:23Z")

</div>

I have a playbook that checks the existence of a local fact, but not every hosts have this local fact. On servers where it does not exist my playbook fails with: “msg”: "The conditional check ‘ansible\_local\[‘my\_fact’\]\[…

---

## [tasks or roles not played](https://forum.ansible.com/t/tasks-or-roles-not-played/30072)

<div class="topic-metadata">

**Author:** [@philipe.xavier.guino](https://forum.ansible.com/u/philipe.xavier.guino)\
**Replies:** 1\
**Last updated:** [April 13, 2019, 7:00am UTC](https://forum.ansible.com/t/tasks-or-roles-not-played/30072 "2019-04-13T07:00:08Z")

</div>

Hello, I am new on ansible and learning. I encounter a problem, when I launch my playbook, only the task gathering fact is played. If I pass it to no, nothing is played. command line without inventory : ansible-playbo…

---

## [beta1 delayed until Monday](https://forum.ansible.com/t/beta1-delayed-until-monday/30108)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [April 12, 2019, 10:20pm UTC](https://forum.ansible.com/t/beta1-delayed-until-monday/30108 "2019-04-12T22:20:29Z")

</div>

We've spent all day working on timeouts and failures in web services that we're testing against so we're not going to have time to get beta1 out the door before people have to leave work today. New estimate for beta1…

---

## [Conditionally execute a task if directory exists?](https://forum.ansible.com/t/conditionally-execute-a-task-if-directory-exists/13057)

<div class="topic-metadata">

**Author:** [@Sebastiaan\_Pouyet](https://forum.ansible.com/u/Sebastiaan_Pouyet)\
**Replies:** 6\
**Last updated:** [April 12, 2019, 7:12pm UTC](https://forum.ansible.com/t/conditionally-execute-a-task-if-directory-exists/13057 "2019-04-12T19:12:39Z")

</div>

Hi all, I’ve searched the group and the ansible documentation, but haven’t been able to find a clear answer. I want to conditionally upload a monit config file in a nginx playbook, but only when the monnit conf directo…

---

## [regex\_replace](https://forum.ansible.com/t/regex-replace/30105)

<div class="topic-metadata">

**Author:** [@Luca\_Cazzaniga](https://forum.ansible.com/u/Luca_Cazzaniga)\
**Replies:** 2\
**Last updated:** [April 12, 2019, 3:29pm UTC](https://forum.ansible.com/t/regex-replace/30105 "2019-04-12T15:29:41Z")

</div>

hi all I don’t get why the following regexp replacement matches vars: monit\_pkgname: “prefixmonit-5.25.3-1” tasks: name: debug debug: msg: “{{ monit\_pkgname\_release }}” vars: monit\_pkgname\_release: “{{ (monit\_pk…

---

## [Best way to define variables based on facts for a role](https://forum.ansible.com/t/best-way-to-define-variables-based-on-facts-for-a-role/30103)

<div class="topic-metadata">

**Author:** [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Replies:** 2\
**Last updated:** [April 12, 2019, 3:04pm UTC](https://forum.ansible.com/t/best-way-to-define-variables-based-on-facts-for-a-role/30103 "2019-04-12T15:04:18Z")

</div>

Hi, I’m trying to write a role that has different template file if the server is virtual os physical. What’s the best way to filter this? Thanks, Bruno

---

## [junos replace pattern](https://forum.ansible.com/t/junos-replace-pattern/30096)

<div class="topic-metadata">

**Author:** [@Michal\_Szczesniak](https://forum.ansible.com/u/Michal_Szczesniak)\
**Replies:** 1\
**Last updated:** [April 12, 2019, 8:40am UTC](https://forum.ansible.com/t/junos-replace-pattern/30096 "2019-04-12T08:40:28Z")

</div>

Hi, Is there any way using junos modules in ansible to send “replace pattern” command to Juniper device? I stucked on this. Any help would be greatly appreciated! Michal

---

## [Problem with linux debian Ansible](https://forum.ansible.com/t/problem-with-linux-debian-ansible/30095)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 6\
**Last updated:** [April 12, 2019, 7:24am UTC](https://forum.ansible.com/t/problem-with-linux-debian-ansible/30095 "2019-04-12T07:24:01Z")

</div>

Hi all, I have Debian linux 8.11 (jessie) with Ansible. My problem is that i have two repertory : repertoire repertoire? The repertory repertoire? it was created since windows so there is surely the character ^M wh…

---

## [Amazon EC2 inventory sync takes a huge time for each \`Deleted host\` when](https://forum.ansible.com/t/amazon-ec2-inventory-sync-takes-a-huge-time-for-each-deleted-host-when/30093)

<div class="topic-metadata">

**Author:** [@Daniel\_Radu](https://forum.ansible.com/u/Daniel_Radu)\
**Replies:** 2\
**Last updated:** [April 12, 2019, 4:44am UTC](https://forum.ansible.com/t/amazon-ec2-inventory-sync-takes-a-huge-time-for-each-deleted-host-when/30093 "2019-04-12T04:44:58Z")

</div>

Hello, We’re using AWX with EC2 inventory for a while (currently AWX 3.0.1.0 but we went through pretty much all previous versions). We have Overwrite and Update On Launch for the update options of the source. It work…

---

## [Ansible-2.8.0beta1 delayed one day](https://forum.ansible.com/t/ansible-2-8-0beta1-delayed-one-day/30100)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [April 12, 2019, 12:53am UTC](https://forum.ansible.com/t/ansible-2-8-0beta1-delayed-one-day/30100 "2019-04-12T00:53:43Z")

</div>

Just a heads up that beta1 will be delayed. There aren't any blockers to getting it out, just a lot of things that have to be performed in serial and we've run out of time to get it out today. It will likely be out …

---

## [How to cast stat.mtime (float) to readable date-time](https://forum.ansible.com/t/how-to-cast-stat-mtime-float-to-readable-date-time/30099)

<div class="topic-metadata">

**Author:** [@Jim\_Griffiths](https://forum.ansible.com/u/Jim_Griffiths)\
**Replies:** 2\
**Last updated:** [April 11, 2019, 7:30pm UTC](https://forum.ansible.com/t/how-to-cast-stat-mtime-float-to-readable-date-time/30099 "2019-04-11T19:30:54Z")

</div>

I need to display the date-time that a file was last updated. The value can be obtained with stat on the file: name: Get file stats stat: path=“{{ path\_of\_file }}” register: reg debug: msg: “Timestamp of {{path}}…

---

## [Issue with portgroup](https://forum.ansible.com/t/issue-with-portgroup/30097)

<div class="topic-metadata">

**Author:** [@Alaeddine\_JOUINI](https://forum.ansible.com/u/Alaeddine_JOUINI)\
**Replies:** 0\
**Last updated:** [April 11, 2019, 9:33am UTC](https://forum.ansible.com/t/issue-with-portgroup/30097 "2019-04-11T09:33:56Z")

</div>

Hi , i have an issue with portgroup my code

---

## [Ansible issue with Windows and Chocolatey 0.10.13](https://forum.ansible.com/t/ansible-issue-with-windows-and-chocolatey-0-10-13/29984)

<div class="topic-metadata">

**Author:** [@Guillaume\_Belrose](https://forum.ansible.com/u/Guillaume_Belrose)\
**Replies:** 5\
**Last updated:** [April 11, 2019, 9:10am UTC](https://forum.ansible.com/t/ansible-issue-with-windows-and-chocolatey-0-10-13/29984 "2019-04-11T09:10:13Z")

</div>

Hi all, I use Ansible to deploy Chocolatey packages on Windows Server 2016 machines (hosted on Amazon EC2). Yesterday, I re-created a brand new cluster for training purposes and I attempted to re-deploy my applications …

[Previous page](https://forum.ansible.com/c/archives/31.md?page=296)

[Next page](https://forum.ansible.com/c/archives/31.md?page=298)
