# Ansible Project

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

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

**Page:** 241

---

## [Getting security bad md5 certificate after running configureRemotingForAnsible.ps1](https://forum.ansible.com/t/getting-security-bad-md5-certificate-after-running-configureremotingforansible-ps1/28329)

<div class="topic-metadata">

**Author:** [@sshort](https://forum.ansible.com/u/sshort)\
**Replies:** 3\
**Last updated:** [August 15, 2018, 3:13pm UTC](https://forum.ansible.com/t/getting-security-bad-md5-certificate-after-running-configureremotingforansible-ps1/28329 "2018-08-15T15:13:11Z")

</div>

Perhaps the script has changed but I ran it 8 months ago off the ansibledoc site. Has anyone else run into this? Anyone know how to fix it?

---

## [Unable to connect to Cisco IOS devices using network\_cli - socket is closed error](https://forum.ansible.com/t/unable-to-connect-to-cisco-ios-devices-using-network-cli-socket-is-closed-error/28335)

<div class="topic-metadata">

**Author:** [@Caleb\_Guerrero](https://forum.ansible.com/u/Caleb_Guerrero)\
**Replies:** 0\
**Last updated:** [August 15, 2018, 3:12pm UTC](https://forum.ansible.com/t/unable-to-connect-to-cisco-ios-devices-using-network-cli-socket-is-closed-error/28335 "2018-08-15T15:12:00Z")

</div>

Hello, I have been attempting to connect to various Cisco IOS devices in our dev environment with no luck using the network\_cli connection method. I can communicate with all devices when running ‘ansible ios -m ping’ an…

---

## [Editing inline encrypted variables?](https://forum.ansible.com/t/editing-inline-encrypted-variables/28330)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [August 15, 2018, 3:10pm UTC](https://forum.ansible.com/t/editing-inline-encrypted-variables/28330 "2018-08-15T15:10:12Z")

</div>

Hi I've come to like the inline encrypted variable (https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_vault.html#single-encrypted-variable) as this is handy for instance with larger data structures that onl…

---

## [Is it possible to pass SSH key contents as argument when running ansible-playbook](https://forum.ansible.com/t/is-it-possible-to-pass-ssh-key-contents-as-argument-when-running-ansible-playbook/28334)

<div class="topic-metadata">

**Author:** [@Bruce\_Affonso](https://forum.ansible.com/u/Bruce_Affonso)\
**Replies:** 1\
**Last updated:** [August 15, 2018, 2:54pm UTC](https://forum.ansible.com/t/is-it-possible-to-pass-ssh-key-contents-as-argument-when-running-ansible-playbook/28334 "2018-08-15T14:54:08Z")

</div>

Hi, We are storing private keys in a DB and when we need to run a playbook would like to pass these SSH keys as an argument instead of storing as a file locally. I tried something like this: ansible-playbook -i “1.2.3…

---

## [\[Network modules\] Managed nodes requirements about python](https://forum.ansible.com/t/network-modules-managed-nodes-requirements-about-python/28308)

<div class="topic-metadata">

**Author:** [@Niko](https://forum.ansible.com/u/Niko)\
**Replies:** 6\
**Last updated:** [August 15, 2018, 1:37am UTC](https://forum.ansible.com/t/network-modules-managed-nodes-requirements-about-python/28308 "2018-08-15T01:37:41Z")

</div>

Question Could we use network modules(such a ios\_command) on the network nodes that cannot execute python? Purpose I want to manage the network nodes(cisco) that do not have python by ansible playbook. ex. “ios\_comma…

---

## [Explain ec2\_group module rules section?](https://forum.ansible.com/t/explain-ec2-group-module-rules-section/28312)

<div class="topic-metadata">

**Author:** [@ttwalto](https://forum.ansible.com/u/ttwalto)\
**Replies:** 3\
**Last updated:** [August 14, 2018, 9:47pm UTC](https://forum.ansible.com/t/explain-ec2-group-module-rules-section/28312 "2018-08-14T21:47:50Z")

</div>

I don’t understand the rules section of the ec2\_group module. I wish the documentation explained it, but it doesn’t. I says “see example”. The description right now, Ansible 2.6, is: List of firewall inbound rules to en…

---

## [nxos\_facts - fails on a lot of versions.](https://forum.ansible.com/t/nxos-facts-fails-on-a-lot-of-versions/28325)

<div class="topic-metadata">

**Author:** [@Dennis\_McCarthy](https://forum.ansible.com/u/Dennis_McCarthy)\
**Replies:** 4\
**Last updated:** [August 14, 2018, 6:53pm UTC](https://forum.ansible.com/t/nxos-facts-fails-on-a-lot-of-versions/28325 "2018-08-14T18:53:18Z")

</div>

I’m running ansible 2.5.5-1. It seems that the issue I have where the nxos\_module spits out an error seem to be related to the version or image on the device I’m trying to connect to. I think the error is saying that t…

---

## ["Provides" to ease dependencies?](https://forum.ansible.com/t/provides-to-ease-dependencies/28323)

<div class="topic-metadata">

**Author:** [@Toni\_Mueller](https://forum.ansible.com/u/Toni_Mueller)\
**Replies:** 2\
**Last updated:** [August 14, 2018, 3:48pm UTC](https://forum.ansible.com/t/provides-to-ease-dependencies/28323 "2018-08-14T15:48:44Z")

</div>

Hi, from normal package management systems, I am used to have "Provides" which allows me to install any of a set of packages to satisfy a dependency (eg. "Provides: mail-transport-agent"). I was wondering how to best…

---

## [Updating an IAM cert](https://forum.ansible.com/t/updating-an-iam-cert/24526)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 1\
**Last updated:** [August 14, 2018, 3:21pm UTC](https://forum.ansible.com/t/updating-an-iam-cert/24526 "2018-08-14T15:21:51Z")

</div>

We uploaded an IAM cert to AWS, and now need to update the certificate (the contents). On the theory that a lost of this stuff is idempotent, I thought this task, which we used to upload it in the first place, would w…

---

## [Disable fact gathering as a command line option](https://forum.ansible.com/t/disable-fact-gathering-as-a-command-line-option/28327)

<div class="topic-metadata">

**Author:** [@Jad\_Baz](https://forum.ansible.com/u/Jad_Baz)\
**Replies:** 2\
**Last updated:** [August 14, 2018, 12:46pm UTC](https://forum.ansible.com/t/disable-fact-gathering-as-a-command-line-option/28327 "2018-08-14T12:46:46Z")

</div>

Is there a way to disable fact gathering at the command line? I couldn’t find this anywhere in the docs. As a use case, I sometimes want to run a tag with two or 3 tasks that don’t require fact gathering and I don’t wa…

---

## [msg: Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!](https://forum.ansible.com/t/msg-aborting-target-uses-selinux-but-python-bindings-libselinux-python-arent-installed/16286)

<div class="topic-metadata">

**Author:** [@Zhenkai\_Jiang](https://forum.ansible.com/u/Zhenkai_Jiang)\
**Replies:** 7\
**Last updated:** [August 14, 2018, 2:08am UTC](https://forum.ansible.com/t/msg-aborting-target-uses-selinux-but-python-bindings-libselinux-python-arent-installed/16286 "2018-08-14T02:08:49Z")

</div>

I was trying to use copy module which rely on libselinux-python when selinux is enabled i think. The weird thing is I have checked every single environment, they have already have latest libselinux-python installed… Wh…

---

## [Need some help using Kerberos Authentication for Windows Target](https://forum.ansible.com/t/need-some-help-using-kerberos-authentication-for-windows-target/28313)

<div class="topic-metadata">

**Author:** [@callmeshawn](https://forum.ansible.com/u/callmeshawn)\
**Replies:** 5\
**Last updated:** [August 13, 2018, 10:46pm UTC](https://forum.ansible.com/t/need-some-help-using-kerberos-authentication-for-windows-target/28313 "2018-08-13T22:46:47Z")

</div>

Hello, I’ve configured a Windows 2016 Server using ConfigureRemotingForAnsible.ps1 and am able to do a simple ping test using basic auth. Command I’m using is: ansible all -i myinventory -m win\_ping I get a pong back…

---

## [clock summer-time & ios\_config: config reruns all the time...](https://forum.ansible.com/t/clock-summer-time-ios-config-config-reruns-all-the-time/28324)

<div class="topic-metadata">

**Author:** [@calimero444](https://forum.ansible.com/u/calimero444)\
**Replies:** 0\
**Last updated:** [August 13, 2018, 10:15pm UTC](https://forum.ansible.com/t/clock-summer-time-ios-config-config-reruns-all-the-time/28324 "2018-08-13T22:15:05Z")

</div>

Ansible doesn’t see that it is configured: tasks: name: configure timezone become: yes ios\_config: lines: clock timezone CET 1 0 clock summer-time CEST recurring last Sun Mar 2:00 last Sun Oct 3:00 each time , i r…

---

## [Assign a tag to a vm](https://forum.ansible.com/t/assign-a-tag-to-a-vm/28320)

<div class="topic-metadata">

**Author:** [@Alain\_Gilbert](https://forum.ansible.com/u/Alain_Gilbert)\
**Replies:** 3\
**Last updated:** [August 13, 2018, 8:19pm UTC](https://forum.ansible.com/t/assign-a-tag-to-a-vm/28320 "2018-08-13T20:19:33Z")

</div>

Hi, Is there a way to assign a tags, with Ansible Playbook, to a VM ? Thanks !

---

## [include\_tasks: Unable to retrieve file contents\\nCould not find or access](https://forum.ansible.com/t/include-tasks-unable-to-retrieve-file-contents-ncould-not-find-or-access/28321)

<div class="topic-metadata">

**Author:** [@OM\_Nachiketa](https://forum.ansible.com/u/OM_Nachiketa)\
**Replies:** 5\
**Last updated:** [August 13, 2018, 5:22pm UTC](https://forum.ansible.com/t/include-tasks-unable-to-retrieve-file-contents-ncould-not-find-or-access/28321 "2018-08-13T17:22:38Z")

</div>

I am trying to run some tasks with variable but running in this error "FAILED! =\> {“reason”: “Unable to retrieve file contents\\nCould not find or access 'path to my .yml ’ on the Ansible Controller.\\nIf you are using a m…

---

## [documentation in my playbooks](https://forum.ansible.com/t/documentation-in-my-playbooks/28319)

<div class="topic-metadata">

**Author:** [@erichymowitz](https://forum.ansible.com/u/erichymowitz)\
**Replies:** 3\
**Last updated:** [August 13, 2018, 3:56pm UTC](https://forum.ansible.com/t/documentation-in-my-playbooks/28319 "2018-08-13T15:56:27Z")

</div>

Short question: Is it possible for me to leverage whatever-it-is that makes ansible-doc work for my own playbooks? Long drawn-out question: So I’m fairly new to ansible. I’m much more used to writing shell scripts and…

---

## [Synchronize module host access has a different behaviour from other modules](https://forum.ansible.com/t/synchronize-module-host-access-has-a-different-behaviour-from-other-modules/28318)

<div class="topic-metadata">

**Author:** [@Tim\_Coote](https://forum.ansible.com/u/Tim_Coote)\
**Replies:** 0\
**Last updated:** [August 13, 2018, 11:29am UTC](https://forum.ansible.com/t/synchronize-module-host-access-has-a-different-behaviour-from-other-modules/28318 "2018-08-13T11:29:47Z")

</div>

I don’t know whether this is deliberate or not, but I cannot get the synchronize module to route to my computers, when all other modules are content. All of the controlled hosts are behind firewalls that I do not contro…

---

## [RHEL Ansible exam](https://forum.ansible.com/t/rhel-ansible-exam/28290)

<div class="topic-metadata">

**Author:** [@hieronymus](https://forum.ansible.com/u/hieronymus)\
**Replies:** 1\
**Last updated:** [August 12, 2018, 2:44am UTC](https://forum.ansible.com/t/rhel-ansible-exam/28290 "2018-08-12T02:44:58Z")

</div>

Hello All, I’m not really sure if is it the right post, but I’ve a question about the RHEL Ansible exam. I’ve been to the exam twice and I didn’t pass both of them. The second time I thought it was good because all my …

---

## [Requesting Queries on Ansible & Ansible Tower License for using at Production level](https://forum.ansible.com/t/requesting-queries-on-ansible-ansible-tower-license-for-using-at-production-level/28315)

<div class="topic-metadata">

**Author:** [@KA1](https://forum.ansible.com/u/KA1)\
**Replies:** 1\
**Last updated:** [August 11, 2018, 12:37pm UTC](https://forum.ansible.com/t/requesting-queries-on-ansible-ansible-tower-license-for-using-at-production-level/28315 "2018-08-11T12:37:59Z")

</div>

Hi Guys, I have two queries regarding Ansible & Ansible Tower License for using at the Production level Query1:- Can we use Ansible product for free to get started on our projects \[Production Level\] without license / …

---

## [Can not able to ssh between two ec2 instances](https://forum.ansible.com/t/can-not-able-to-ssh-between-two-ec2-instances/28311)

<div class="topic-metadata">

**Author:** [@Kiran\_Sonawane](https://forum.ansible.com/u/Kiran_Sonawane)\
**Replies:** 7\
**Last updated:** [August 11, 2018, 5:45am UTC](https://forum.ansible.com/t/can-not-able-to-ssh-between-two-ec2-instances/28311 "2018-08-11T05:45:48Z")

</div>

Hey, I’m trying to SSH between two instances to practice Ansible on aws instances but I’m not able to create an ssh connection between instances. Can someone please help me.

---

## [Check if disk is in use before partitioning?](https://forum.ansible.com/t/check-if-disk-is-in-use-before-partitioning/28314)

<div class="topic-metadata">

**Author:** [@Dylan\_Martin3](https://forum.ansible.com/u/Dylan_Martin3)\
**Replies:** 3\
**Last updated:** [August 11, 2018, 4:33am UTC](https://forum.ansible.com/t/check-if-disk-is-in-use-before-partitioning/28314 "2018-08-11T04:33:29Z")

</div>

I all. I’ve used parted and lvm (lvg & lvol) to set up machines, but I recently broke a system when I repartitioned a disk that was already in use. (Wooops!) Does anyone have a good idea how to determine if a block dev…

---

## [default filter on with\_items with from\_json](https://forum.ansible.com/t/default-filter-on-with-items-with-from-json/28296)

<div class="topic-metadata">

**Author:** [@rjwagner.dba](https://forum.ansible.com/u/rjwagner.dba)\
**Replies:** 4\
**Last updated:** [August 10, 2018, 9:04pm UTC](https://forum.ansible.com/t/default-filter-on-with-items-with-from-json/28296 "2018-08-10T21:04:41Z")

</div>

I’m running into the infamous issue where with\_items isn’t skipped if when evaluates to false (https://github.com/ansible/ansible/issues/13791). That said, I’m at loss as to how to workaround my particular issue. Consid…

---

## [ansible command on messages](https://forum.ansible.com/t/ansible-command-on-messages/28309)

<div class="topic-metadata">

**Author:** [@Alfredo\_De\_Luca](https://forum.ansible.com/u/Alfredo_De_Luca)\
**Replies:** 5\
**Last updated:** [August 10, 2018, 5:30pm UTC](https://forum.ansible.com/t/ansible-command-on-messages/28309 "2018-08-10T17:30:48Z")

</div>

Hi all. With ansible we are changing root passwords on our machines. the root password is in a vault so all ok… But I find our the the command we run to change the password is visible on /var/log/messages …included the…

---

## [replace or lineinfile ?](https://forum.ansible.com/t/replace-or-lineinfile/28307)

<div class="topic-metadata">

**Author:** [@Henrik\_Schuetze](https://forum.ansible.com/u/Henrik_Schuetze)\
**Replies:** 2\
**Last updated:** [August 10, 2018, 11:01am UTC](https://forum.ansible.com/t/replace-or-lineinfile/28307 "2018-08-10T11:01:04Z")

</div>

For a replication project i have to dynamic create an .sql for execute with mariadb. i have two hosts (A and B) in my host variables, both with name, ip and ID. i think about create a local file, copy it to the destina…

---

## [Problem replace with variable](https://forum.ansible.com/t/problem-replace-with-variable/28303)

<div class="topic-metadata">

**Author:** [@Henrik\_Schuetze](https://forum.ansible.com/u/Henrik_Schuetze)\
**Replies:** 3\
**Last updated:** [August 10, 2018, 8:50am UTC](https://forum.ansible.com/t/problem-replace-with-variable/28303 "2018-08-10T08:50:22Z")

</div>

Hi i want to create a mariaDB active - active replication. And so i need to modify the my.cnf with ansible. I have two hosts both are defined undser the host variables with: File for host 1: default\_ip: 127.0.0.1 an…

---

## [It's back: Timeout (XXs) waiting for privilege escalation prompt](https://forum.ansible.com/t/its-back-timeout-xxs-waiting-for-privilege-escalation-prompt/28306)

<div class="topic-metadata">

**Author:** [@John\_S](https://forum.ansible.com/u/John_S)\
**Replies:** 0\
**Last updated:** [August 10, 2018, 7:50am UTC](https://forum.ansible.com/t/its-back-timeout-xxs-waiting-for-privilege-escalation-prompt/28306 "2018-08-10T07:50:19Z")

</div>

This problem is back, and it is worse than ever in 2.6.1, from epel, on el7.5. If I run a playbook (just one or two simple tasks) vs 50 hosts, I’ll have a dozen that fail due to timeout… When I run the same playbook vs…

---

## [Connecting to YUM for Playbooks](https://forum.ansible.com/t/connecting-to-yum-for-playbooks/28281)

<div class="topic-metadata">

**Author:** [@Rashard](https://forum.ansible.com/u/Rashard)\
**Replies:** 7\
**Last updated:** [August 10, 2018, 4:20am UTC](https://forum.ansible.com/t/connecting-to-yum-for-playbooks/28281 "2018-08-10T04:20:52Z")

</div>

Newbie question. I am trying to connect to yum to install packages but I cannot. The servers are registered to a spacewalk server and the channel I need to pull from does not show up in /etc/yum.repos.d. I tried to put t…

---

## [Shell block in ansible playbook. How ?](https://forum.ansible.com/t/shell-block-in-ansible-playbook-how/28301)

<div class="topic-metadata">

**Author:** [@onenessboy](https://forum.ansible.com/u/onenessboy)\
**Replies:** 1\
**Last updated:** [August 9, 2018, 3:58pm UTC](https://forum.ansible.com/t/shell-block-in-ansible-playbook-how/28301 "2018-08-09T15:58:52Z")

</div>

Hi all, I have some sample script #!/bin/bash #ip=$2 tar\_file=$1 bkp\_name=“bkp-$$” if \[ -z “${tar\_file}” \]; then echo “Usage import.sh \[tar file\]” exit 1 fi for keyspace do keyspace=$(basename “${tar\_file}” “…

---

## [Generate dynamically playbooks](https://forum.ansible.com/t/generate-dynamically-playbooks/28299)

<div class="topic-metadata">

**Author:** [@samuel\_desseaux](https://forum.ansible.com/u/samuel_desseaux)\
**Replies:** 0\
**Last updated:** [August 9, 2018, 1:53pm UTC](https://forum.ansible.com/t/generate-dynamically-playbooks/28299 "2018-08-09T13:53:46Z")

</div>

Hello, Is it possible to generate dynamically playbooks? Let me explain: I have more than 200 applications. For each application, i need sometime to make an stop/start for one of its components (jboss/oracle/autosys…). …

---

## [uri module: fails to do POST due to unable to parse netscape cookie file](https://forum.ansible.com/t/uri-module-fails-to-do-post-due-to-unable-to-parse-netscape-cookie-file/28297)

<div class="topic-metadata">

**Author:** [@vinod\_kumar4](https://forum.ansible.com/u/vinod_kumar4)\
**Replies:** 1\
**Last updated:** [August 9, 2018, 6:29am UTC](https://forum.ansible.com/t/uri-module-fails-to-do-post-due-to-unable-to-parse-netscape-cookie-file/28297 "2018-08-09T06:29:31Z")

</div>

I have below uri module where i am sending netscape cookie file. It throws me back with error message, name: Register uri: url: “https://{{ orch\_ip }}:19443/2/platforms/xxx/providers” method: POST return\_content: …

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

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