# Latest

**URL:** https://forum.ansible.com/latest.md?page=423

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

**Page:** 424

---

## [Help: Can't Update ifcfg-eth0](https://forum.ansible.com/t/help-cant-update-ifcfg-eth0/31562)

<div class="topic-metadata">

**Author:** [@Love](https://forum.ansible.com/u/Love)\
**Replies:** 4\
**Last updated:** [October 29, 2019, 10:44pm UTC](https://forum.ansible.com/t/help-cant-update-ifcfg-eth0/31562 "2019-10-29T22:44:42Z")

</div>

Dear Experts, Could you please let me know what’s missing in my code? Requirement: Need to change Domain search order in my ifcfg-eth0 file across multiple servers. Desired state is just to update the search order one…

---

## [Get number based off inventory criteria](https://forum.ansible.com/t/get-number-based-off-inventory-criteria/31557)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 1\
**Last updated:** [October 29, 2019, 10:11pm UTC](https://forum.ansible.com/t/get-number-based-off-inventory-criteria/31557 "2019-10-29T22:11:49Z")

</div>

Hi all Is there any way to output a growing count of, let’s say, systems that match a specific RH version or RH type (Workstation or Server). Like an end result showing 35 Servers, or 42 Workstations, etc. Thanks! Chr…

---

## [Unable to manage AVOCENT CONSOLE servers over Ansible](https://forum.ansible.com/t/unable-to-manage-avocent-console-servers-over-ansible/31481)

<div class="topic-metadata">

**Author:** [@Shashidhar](https://forum.ansible.com/u/Shashidhar)\
**Replies:** 3\
**Last updated:** [October 29, 2019, 10:09pm UTC](https://forum.ansible.com/t/unable-to-manage-avocent-console-servers-over-ansible/31481 "2019-10-29T22:09:50Z")

</div>

Hello , root@ubuntu-16-04-4-server-amd64:/# ansible --version ansible 2.8.5 config file = /etc/ansible/ansible.cfg configured module search path = \[u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modu…

---

## [Ansible is totally broken after a OS upgrade](https://forum.ansible.com/t/ansible-is-totally-broken-after-a-os-upgrade/31556)

<div class="topic-metadata">

**Author:** [@mark.tovey](https://forum.ansible.com/u/mark.tovey)\
**Replies:** 7\
**Last updated:** [October 29, 2019, 9:35pm UTC](https://forum.ansible.com/t/ansible-is-totally-broken-after-a-os-upgrade/31556 "2019-10-29T21:35:31Z")

</div>

I just performed a OS upgrade on our Ansible server from RedHat 7.6 to RedHat 7.7, and now Ansible has become unusable. When I try to run any task that uses any Ansible fact, I get the following error: \[WARNING\]: Failu…

---

## [Help: cant get Ansible blockinfile to work](https://forum.ansible.com/t/help-cant-get-ansible-blockinfile-to-work/31561)

<div class="topic-metadata">

**Author:** [@Michael3](https://forum.ansible.com/u/Michael3)\
**Replies:** 9\
**Last updated:** [October 29, 2019, 9:29pm UTC](https://forum.ansible.com/t/help-cant-get-ansible-blockinfile-to-work/31561 "2019-10-29T21:29:12Z")

</div>

Hello, I am having a challenge removing a block of lines in a configuration file after an uninstall using Ansible module blockinfile. I have tried multiple variations(of indentation) after block: | but they’re all a mis…

---

## [How to play  a task for only one host spesificly in inventory list](https://forum.ansible.com/t/how-to-play-a-task-for-only-one-host-spesificly-in-inventory-list/31550)

<div class="topic-metadata">

**Author:** [@Mahmut](https://forum.ansible.com/u/Mahmut)\
**Replies:** 5\
**Last updated:** [October 29, 2019, 9:11pm UTC](https://forum.ansible.com/t/how-to-play-a-task-for-only-one-host-spesificly-in-inventory-list/31550 "2019-10-29T21:11:47Z")

</div>

Hello, I have a playbook and inventory list. I will run a task for only one host from inventory list. Is there any way to do this? hosts: eos\_switches connection: local tasks: name: Gather Show Version Facts eos…

---

## [execute command with other user ,different to remote\_user](https://forum.ansible.com/t/execute-command-with-other-user-different-to-remote-user/31564)

<div class="topic-metadata">

**Author:** [@Oussama\_Maizi](https://forum.ansible.com/u/Oussama_Maizi)\
**Replies:** 0\
**Last updated:** [October 29, 2019, 8:48pm UTC](https://forum.ansible.com/t/execute-command-with-other-user-different-to-remote-user/31564 "2019-10-29T20:48:17Z")

</div>

Hello family, I have a small problem on ansible, I hope you can help me. I develop a playbook for automating the installation of an agent. at the beginning of the playbook I start by creating a user ctmagent + directory …

---

## [Ansible and Adtran switches](https://forum.ansible.com/t/ansible-and-adtran-switches/31563)

<div class="topic-metadata">

**Author:** [@Paul\_Patterson\_Jr](https://forum.ansible.com/u/Paul_Patterson_Jr)\
**Replies:** 0\
**Last updated:** [October 29, 2019, 7:24pm UTC](https://forum.ansible.com/t/ansible-and-adtran-switches/31563 "2019-10-29T19:24:21Z")

</div>

I am looking to connect to Adtran AOS switches using my Ansible controller through ansible ad-hoc. It looks like the initial SSH connection is working, but it immediately logs off after connection is established. However…

---

## [Delete a schedule isn't possible](https://forum.ansible.com/t/delete-a-schedule-isnt-possible/31559)

<div class="topic-metadata">

**Author:** [@Boy\_Reese](https://forum.ansible.com/u/Boy_Reese)\
**Replies:** 2\
**Last updated:** [October 29, 2019, 1:34pm UTC](https://forum.ansible.com/t/delete-a-schedule-isnt-possible/31559 "2019-10-29T13:34:39Z")

</div>

Hi, if I want delete a schedule I get an error, no matter if I use the GUI or the API. I’m using AWX 7.0.0 Docker installation. DELETE /api/v2/schedules/22/ HTTP 500 Internal Server Error Content-Type: application/js…

---

## [Instance Groups issue](https://forum.ansible.com/t/instance-groups-issue/31560)

<div class="topic-metadata">

**Author:** [@driCs](https://forum.ansible.com/u/driCs)\
**Replies:** 0\
**Last updated:** [October 29, 2019, 12:29pm UTC](https://forum.ansible.com/t/instance-groups-issue/31560 "2019-10-29T12:29:32Z")

</div>

Hi, I try to install AWX 8.0.0 on two instances but when I run the ping command, the “Execution node” is always the same. In my case the execution node is always “awx”. I have changed the CLUSTER variable in /etc/tower…

---

## [Feature request promptly closed without explanation](https://forum.ansible.com/t/feature-request-promptly-closed-without-explanation/31540)

<div class="topic-metadata">

**Author:** [@Les\_Hazlewood](https://forum.ansible.com/u/Les_Hazlewood)\
**Replies:** 7\
**Last updated:** [October 29, 2019, 5:09am UTC](https://forum.ansible.com/t/feature-request-promptly-closed-without-explanation/31540 "2019-10-29T05:09:05Z")

</div>

Hi folks, I posted a quite useful feature request and gave examples with clarification for why the feature is definitely beneficial on many fronts, but it was promptly closed without any clarification or justification a…

---

## [Using variables in dynamic inventory plugins](https://forum.ansible.com/t/using-variables-in-dynamic-inventory-plugins/31553)

<div class="topic-metadata">

**Author:** [@Danila](https://forum.ansible.com/u/Danila)\
**Replies:** 1\
**Last updated:** [October 28, 2019, 7:11pm UTC](https://forum.ansible.com/t/using-variables-in-dynamic-inventory-plugins/31553 "2019-10-28T19:11:15Z")

</div>

Hi, I am trying to use dynamic inventory plugin gce\_compute. I’ve created file named 00\_vars.yaml \`

---

## [Run a unix script on ansible server that connect to remote servers.](https://forum.ansible.com/t/run-a-unix-script-on-ansible-server-that-connect-to-remote-servers/31516)

<div class="topic-metadata">

**Author:** [@R-JRI](https://forum.ansible.com/u/R-JRI)\
**Replies:** 4\
**Last updated:** [October 28, 2019, 3:48pm UTC](https://forum.ansible.com/t/run-a-unix-script-on-ansible-server-that-connect-to-remote-servers/31516 "2019-10-28T15:48:52Z")

</div>

Hi, all I have an existing unix shell script that does ssh to connect to remote servers to search FAILED key word through logs on the remote server. If the logs contain FAILED key word, sftp to the servers to bring the …

---

## [Error during upgrade AWX 8.0](https://forum.ansible.com/t/error-during-upgrade-awx-8-0/31552)

<div class="topic-metadata">

**Author:** [@Ervis](https://forum.ansible.com/u/Ervis)\
**Replies:** 0\
**Last updated:** [October 28, 2019, 9:32am UTC](https://forum.ansible.com/t/error-during-upgrade-awx-8-0/31552 "2019-10-28T09:32:09Z")

</div>

Hello guys, I am trying to uprade my AWX version to latest one, but I am getting this error. It seems that docker cannot pulll awx image. what can I do? Thank you for your time and your help

---

## [AWX workflow, failure/success on a per host basis instead of a per node basis?](https://forum.ansible.com/t/awx-workflow-failure-success-on-a-per-host-basis-instead-of-a-per-node-basis/31551)

<div class="topic-metadata">

**Author:** [@Cody\_Fawcett](https://forum.ansible.com/u/Cody_Fawcett)\
**Replies:** 0\
**Last updated:** [October 28, 2019, 3:07am UTC](https://forum.ansible.com/t/awx-workflow-failure-success-on-a-per-host-basis-instead-of-a-per-node-basis/31551 "2019-10-28T03:07:04Z")

</div>

Hey All, So I have an odd question. I have multiple templates that work well on a single host (satellite registration or domain join for example) then I have other plays that work well on a large group of hosts (patchin…

---

## [split FQDN](https://forum.ansible.com/t/split-fqdn/31548)

<div class="topic-metadata">

**Author:** [@Matti\_Herrmann](https://forum.ansible.com/u/Matti_Herrmann)\
**Replies:** 5\
**Last updated:** [October 27, 2019, 5:51pm UTC](https://forum.ansible.com/t/split-fqdn/31548 "2019-10-27T17:51:58Z")

</div>

Hello, I wan´t to split the hostname of my inventory hostnames. The hostnames have two or three subdomains. For Exampel “host.sub1.sub2.domain” I need two splits. One bevor the first dot (in our example: host) and one …

---

## [Creating /etc/hosts from ansible hosts](https://forum.ansible.com/t/creating-etc-hosts-from-ansible-hosts/31549)

<div class="topic-metadata">

**Author:** [@budhac](https://forum.ansible.com/u/budhac)\
**Replies:** 2\
**Last updated:** [October 27, 2019, 10:35am UTC](https://forum.ansible.com/t/creating-etc-hosts-from-ansible-hosts/31549 "2019-10-27T10:35:15Z")

</div>

I am trying to figure out if there is a way to use Ansible to automate the creation of /etc/hosts files depending on which group the Ansible host belongs to. I am creating multiple test Kubernetes clusters that will use …

---

## [using json as a password for docker\_login module](https://forum.ansible.com/t/using-json-as-a-password-for-docker-login-module/31543)

<div class="topic-metadata">

**Author:** [@user57](https://forum.ansible.com/u/user57)\
**Replies:** 1\
**Last updated:** [October 26, 2019, 8:36am UTC](https://forum.ansible.com/t/using-json-as-a-password-for-docker-login-module/31543 "2019-10-26T08:36:26Z")

</div>

I am trying to log into private docker container registry and I need to use a json-string as a password. So I do the following \` docker\_login: registry: cr.yandex username: json\_key password: “{{ lookup(‘file’, ‘key…

---

## [Ansible is setting Windows environment variables](https://forum.ansible.com/t/ansible-is-setting-windows-environment-variables/31547)

<div class="topic-metadata">

**Author:** [@Alek\_Ohanian](https://forum.ansible.com/u/Alek_Ohanian)\
**Replies:** 1\
**Last updated:** [October 26, 2019, 2:23am UTC](https://forum.ansible.com/t/ansible-is-setting-windows-environment-variables/31547 "2019-10-26T02:23:22Z")

</div>

We’re seeing some strange behaviour where it seems like Powershell scripts executed by Ansible are having their variables written to the system as environment variables as opposed to temporary session variables. The same…

---

## [Ansible Best Practices - Group\_Vars Not Being Applied As Expected](https://forum.ansible.com/t/ansible-best-practices-group-vars-not-being-applied-as-expected/31486)

<div class="topic-metadata">

**Author:** [@Jeff\_Baldwin](https://forum.ansible.com/u/Jeff_Baldwin)\
**Replies:** 7\
**Last updated:** [October 25, 2019, 3:29pm UTC](https://forum.ansible.com/t/ansible-best-practices-group-vars-not-being-applied-as-expected/31486 "2019-10-25T15:29:10Z")

</div>

All, I have been setting up my environment to match the best practices provided here: https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_best\_practices.html#best-practices – However, I am running into some iss…

---

## [Questions about enabling the firewall in windows](https://forum.ansible.com/t/questions-about-enabling-the-firewall-in-windows/31539)

<div class="topic-metadata">

**Author:** [@ronny\_saavedra](https://forum.ansible.com/u/ronny_saavedra)\
**Replies:** 2\
**Last updated:** [October 25, 2019, 3:22pm UTC](https://forum.ansible.com/t/questions-about-enabling-the-firewall-in-windows/31539 "2019-10-25T15:22:47Z")

</div>

Good afternoon with everyone, I hope you have a great day. Could you help me with a problem, I will explain my problem shortly: I am in charge of creating instances from amis already designed, I think it’s great I am w…

---

## [How get hold file or repertory](https://forum.ansible.com/t/how-get-hold-file-or-repertory/31546)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 0\
**Last updated:** [October 25, 2019, 3:03pm UTC](https://forum.ansible.com/t/how-get-hold-file-or-repertory/31546 "2019-10-25T15:03:31Z")

</div>

Hey, I have one repertory /home/ansible/my\_repertory with this content : drwxr-xr-x 3 ansible ansible 4096 Sep 11 10:25 db-component\_2019-09-11\_10h25\_00 drwxr-xr-x 3 ansible ansible 4096 Sep 11 10:46 db-component\_2019…

---

## [ACL on AIX](https://forum.ansible.com/t/acl-on-aix/31544)

<div class="topic-metadata">

**Author:** [@Oxs](https://forum.ansible.com/u/Oxs)\
**Replies:** 0\
**Last updated:** [October 25, 2019, 9:39am UTC](https://forum.ansible.com/t/acl-on-aix/31544 "2019-10-25T09:39:18Z")

</div>

Hello Guys, I would like like to know how I can edit ACL directory with acledit on AIX? I would like to add splunk user with read permission. Default ACL permission: … … extended permissions: enabled permit r-- u…

---

## [LDAP backed auth, individual machine credentials, and permissions roles. Oh My!](https://forum.ansible.com/t/ldap-backed-auth-individual-machine-credentials-and-permissions-roles-oh-my/31517)

<div class="topic-metadata">

**Author:** [@Jesse\_Keating1](https://forum.ansible.com/u/Jesse_Keating1)\
**Replies:** 10\
**Last updated:** [October 25, 2019, 9:08am UTC](https://forum.ansible.com/t/ldap-backed-auth-individual-machine-credentials-and-permissions-roles-oh-my/31517 "2019-10-25T09:08:47Z")

</div>

I have a setup where my auth is LDAP backed. I have org and team mappings that WHEN a user logs in they’re placed in the appropriate org and team. I also have individual machine credentials created for users, which are …

---

## [AWX 8.0.0 Kubernetes deployment error](https://forum.ansible.com/t/awx-8-0-0-kubernetes-deployment-error/31506)

<div class="topic-metadata">

**Author:** [@alancivita](https://forum.ansible.com/u/alancivita)\
**Replies:** 3\
**Last updated:** [October 25, 2019, 8:04am UTC](https://forum.ansible.com/t/awx-8-0-0-kubernetes-deployment-error/31506 "2019-10-25T08:04:07Z")

</div>

Hello, just tried to deploy the 8.0.0 version but getting this error: from httplib import HTTPConnection\\n import sys\\n import os\\n import base64\\n authsecret = base64.b64encode(os.getenv(‘RABBITMQ\_USER’) + ‘:’ + os.ge…

---

## [roles will not run against localhost](https://forum.ansible.com/t/roles-will-not-run-against-localhost/31542)

<div class="topic-metadata">

**Author:** [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Replies:** 1\
**Last updated:** [October 25, 2019, 4:15am UTC](https://forum.ansible.com/t/roles-will-not-run-against-localhost/31542 "2019-10-25T04:15:41Z")

</div>

I have some complex aws related tasks that I would like to move into a role. However, when I run the play against localhost, the role never runs. After much troubleshooting, I finally created a brand new repo that just…

---

## [Running a script as root user.](https://forum.ansible.com/t/running-a-script-as-root-user/31541)

<div class="topic-metadata">

**Author:** [@Dave\_McPherson](https://forum.ansible.com/u/Dave_McPherson)\
**Replies:** 1\
**Last updated:** [October 24, 2019, 11:05pm UTC](https://forum.ansible.com/t/running-a-script-as-root-user/31541 "2019-10-24T23:05:18Z")

</div>

Hi All, I have a script that I need to run on oracle linux when I try the standard “become:” it fails with the error “run with sudo -s” I have tried many variations but what I have now is below. name: Run gold\_change…

---

## [luks\_device module questions](https://forum.ansible.com/t/luks-device-module-questions/31536)

<div class="topic-metadata">

**Author:** [@Test\_Acct](https://forum.ansible.com/u/Test_Acct)\
**Replies:** 4\
**Last updated:** [October 24, 2019, 5:19pm UTC](https://forum.ansible.com/t/luks-device-module-questions/31536 "2019-10-24T17:19:46Z")

</div>

Hello. I am trying to create encrypted logical volumes within my playbook. I have the process written out, via commands (as if i were doing each one individually). I have gotten the LVM portion in the playbook working.…

---

## [Hanging on SSH connection](https://forum.ansible.com/t/hanging-on-ssh-connection/31538)

<div class="topic-metadata">

**Author:** [@Thomas\_Lawrence](https://forum.ansible.com/u/Thomas_Lawrence)\
**Replies:** 7\
**Last updated:** [October 24, 2019, 4:27pm UTC](https://forum.ansible.com/t/hanging-on-ssh-connection/31538 "2019-10-24T16:27:59Z")

</div>

I have inherited the job of continuing with my organisation’s ansible setup after our sys admin left. I am having a hell of a job adding new server to the setup as ansible can not seem to connect to any newly created ser…

---

## [Read timeout when using WinRM to apply Windows patches on Azure](https://forum.ansible.com/t/read-timeout-when-using-winrm-to-apply-windows-patches-on-azure/31529)

<div class="topic-metadata">

**Author:** [@Angel\_Rengifo\_Cancin](https://forum.ansible.com/u/Angel_Rengifo_Cancin)\
**Replies:** 3\
**Last updated:** [October 24, 2019, 4:20pm UTC](https://forum.ansible.com/t/read-timeout-when-using-winrm-to-apply-windows-patches-on-azure/31529 "2019-10-24T16:20:02Z")

</div>

Hello guys: I’m currently working with Ansible 2.8.5 to apply Windows patches through WinRM connections. This is a portion of my code: name: Instalar actualizaciones 1 win\_updates: category\_names: “{{ windows\_update…

[Previous page](https://forum.ansible.com/latest.md?page=422)

[Next page](https://forum.ansible.com/latest.md?page=424)
