# Ansible Project

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

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

**Page:** 102

---

## [Logging output from multiple hosts in an email body](https://forum.ansible.com/t/logging-output-from-multiple-hosts-in-an-email-body/33901)

<div class="topic-metadata">

**Author:** [@rkl](https://forum.ansible.com/u/rkl)\
**Replies:** 5\
**Last updated:** [October 3, 2020, 7:46pm UTC](https://forum.ansible.com/t/logging-output-from-multiple-hosts-in-an-email-body/33901 "2020-10-03T19:46:41Z")

</div>

Hi All, I am new to Ansible. I have this small task in a playbook that will be run against a bunch of linux servers. name: emSt shell: /u01/bin/emctl start agent become: true become\_user: ema register: emSt Once t…

---

## [How do i optimize performance of Ansible playbook with regards to ssh connections](https://forum.ansible.com/t/how-do-i-optimize-performance-of-ansible-playbook-with-regards-to-ssh-connections/33952)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 1\
**Last updated:** [October 3, 2020, 6:57pm UTC](https://forum.ansible.com/t/how-do-i-optimize-performance-of-ansible-playbook-with-regards-to-ssh-connections/33952 "2020-10-03T18:57:37Z")

</div>

I have the below playbook test1.yml that gets istat data for 26 subfolders under this directory /var/myfile/pdf. tasks: name: List directoriesraw: "ls -d “/var/myfile/pdf/\*/” register: subdir name: List pid files …

---

## [What should be the Desired output of the ad-hoc command "ansible -m ping -all" ?](https://forum.ansible.com/t/what-should-be-the-desired-output-of-the-ad-hoc-command-ansible-m-ping-all/33955)

<div class="topic-metadata">

**Author:** [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Replies:** 1\
**Last updated:** [October 3, 2020, 4:29pm UTC](https://forum.ansible.com/t/what-should-be-the-desired-output-of-the-ad-hoc-command-ansible-m-ping-all/33955 "2020-10-03T16:29:13Z")

</div>

I am getting errors, but very very interested to see How should be the Expected Output do look like… With Hope, Prabhakaran

---

## [Docker Entrypoint](https://forum.ansible.com/t/docker-entrypoint/33921)

<div class="topic-metadata">

**Author:** [@Dave\_Gilmore](https://forum.ansible.com/u/Dave_Gilmore)\
**Replies:** 5\
**Last updated:** [October 2, 2020, 4:08pm UTC](https://forum.ansible.com/t/docker-entrypoint/33921 "2020-10-02T16:08:51Z")

</div>

Hi Everyone, I am trying to convert big old monolith bash script to ansible, and I’m about 90% of the way there. I am having a bit of trouble with one element, the docker entrypoint. The original code along with my An…

---

## [Problems with gcp\_compute\_instance](https://forum.ansible.com/t/problems-with-gcp-compute-instance/32538)

<div class="topic-metadata">

**Author:** [@Thomas\_Kube](https://forum.ansible.com/u/Thomas_Kube)\
**Replies:** 3\
**Last updated:** [October 2, 2020, 3:38pm UTC](https://forum.ansible.com/t/problems-with-gcp-compute-instance/32538 "2020-10-02T15:38:26Z")

</div>

Hello, I’m branching to a problem with gcp\_compute\_instance. The server should be created inside a project that has a shared subnet in custom mode. These are the individual steps to gather the informations for the netw…

---

## [what does this command Mean?](https://forum.ansible.com/t/what-does-this-command-mean/33950)

<div class="topic-metadata">

**Author:** [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Replies:** 1\
**Last updated:** [October 2, 2020, 8:40am UTC](https://forum.ansible.com/t/what-does-this-command-mean/33950 "2020-10-02T08:40:57Z")

</div>

ansible -m ping all Why am I getting the same warnings and Errors when I tried running my Playbook? (starfish.yml) So, that means: My Playbook is Right? But something important is Not. What is that? Please Help…Thank …

---

## [Can role dependency trigger handled in parent?](https://forum.ansible.com/t/can-role-dependency-trigger-handled-in-parent/33949)

<div class="topic-metadata">

**Author:** [@Rich\_Rauenzahn](https://forum.ansible.com/u/Rich_Rauenzahn)\
**Replies:** 1\
**Last updated:** [October 2, 2020, 5:28am UTC](https://forum.ansible.com/t/can-role-dependency-trigger-handled-in-parent/33949 "2020-10-02T05:28:37Z")

</div>

I am planning to write a role that drops some credentials to a standard place in /etc, but the various roles depending on it have various services that will need to be restarted when the file is dropped or changed. Is t…

---

## [Error when trying to run win playbooks after ansible update to 2.10](https://forum.ansible.com/t/error-when-trying-to-run-win-playbooks-after-ansible-update-to-2-10/33934)

<div class="topic-metadata">

**Author:** [@Laurie\_Wilson](https://forum.ansible.com/u/Laurie_Wilson)\
**Replies:** 3\
**Last updated:** [October 1, 2020, 9:12pm UTC](https://forum.ansible.com/t/error-when-trying-to-run-win-playbooks-after-ansible-update-to-2-10/33934 "2020-10-01T21:12:05Z")

</div>

We were using ansible 2.5 running on Ubuntu 18.04. I was able to upgrade to ansible 2.10 and run linux based playbooks. When I try to run playbooks for my Windows hosts I get the following error: Invalid type for config…

---

## [Ansible 2.10 - Is all ansible modules are changing....](https://forum.ansible.com/t/ansible-2-10-is-all-ansible-modules-are-changing/33945)

<div class="topic-metadata">

**Author:** [@Vijay1](https://forum.ansible.com/u/Vijay1)\
**Replies:** 1\
**Last updated:** [October 1, 2020, 6:03pm UTC](https://forum.ansible.com/t/ansible-2-10-is-all-ansible-modules-are-changing/33945 "2020-10-01T18:03:52Z")

</div>

Dear Team, I just seen ansible 2.10 and surprised that most of the module’s are missing \[root@server yum.repos.d\]# more /etc/yum.repos.d/ansible.repo \[testing\] name=ansible10 baseurl=https://releases.ansible.com/ans…

---

## [Need help with privilege escalation](https://forum.ansible.com/t/need-help-with-privilege-escalation/33947)

<div class="topic-metadata">

**Author:** [@Priyal\_Patil](https://forum.ansible.com/u/Priyal_Patil)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 5:48pm UTC](https://forum.ansible.com/t/need-help-with-privilege-escalation/33947 "2020-10-01T17:48:09Z")

</div>

Hi Basically I have application ID and this has some restriction’s for direct login access and I have changed the shell from Nologon to eksh, the playbooks are not accepting become: yes I can only run\_root if I change …

---

## [The Playbook is perfect. But still I am getting errors. Any clue?](https://forum.ansible.com/t/the-playbook-is-perfect-but-still-i-am-getting-errors-any-clue/33946)

<div class="topic-metadata">

**Author:** [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Replies:** 1\
**Last updated:** [October 1, 2020, 4:42pm UTC](https://forum.ansible.com/t/the-playbook-is-perfect-but-still-i-am-getting-errors-any-clue/33946 "2020-10-01T16:42:56Z")

</div>

---

## [ssh Connection error](https://forum.ansible.com/t/ssh-connection-error/33922)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 4\
**Last updated:** [October 1, 2020, 2:23pm UTC](https://forum.ansible.com/t/ssh-connection-error/33922 "2020-10-01T14:23:50Z")

</div>

Hello All, Running ansible but keep getting failed to connect to host via ssh. Vagrant Version: 2.2.10 Host OS: Windows 10 (+ virtualbix) Guest OS: bento/ubuntu-18.04 WSL version: 2 Vagrantfile: Vagrant.configure(…

---

## [How do I stop ansible-playbook asking for ssh password??](https://forum.ansible.com/t/how-do-i-stop-ansible-playbook-asking-for-ssh-password/33942)

<div class="topic-metadata">

**Author:** [@Stephen\_Eaton](https://forum.ansible.com/u/Stephen_Eaton)\
**Replies:** 1\
**Last updated:** [October 1, 2020, 1:11pm UTC](https://forum.ansible.com/t/how-do-i-stop-ansible-playbook-asking-for-ssh-password/33942 "2020-10-01T13:11:55Z")

</div>

Hi All, I’m trying to bootstrap some remote VMs (ubuntu1804) that are not physically managed by me and have only been given ssh accesses as root via ssh keys only i.e. no password. I can confirm this works, i.e. I can s…

---

## [diff\_against for ios\_config for not working with --diff mode](https://forum.ansible.com/t/diff-against-for-ios-config-for-not-working-with-diff-mode/33939)

<div class="topic-metadata">

**Author:** [@Venu\_Devannagari](https://forum.ansible.com/u/Venu_Devannagari)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 10:41am UTC](https://forum.ansible.com/t/diff-against-for-ios-config-for-not-working-with-diff-mode/33939 "2020-10-01T10:41:49Z")

</div>

I am trying to use diff\_against to show the before and after changes with --diiff but it is not working can some was worked already on it can you please help here. Ansible version:-2.9.10 playbook:-

---

## [Ansible Loops and Filters sample for practise](https://forum.ansible.com/t/ansible-loops-and-filters-sample-for-practise/33938)

<div class="topic-metadata">

**Author:** [@amitchettri](https://forum.ansible.com/u/amitchettri)\
**Replies:** 1\
**Last updated:** [October 1, 2020, 8:21am UTC](https://forum.ansible.com/t/ansible-loops-and-filters-sample-for-practise/33938 "2020-10-01T08:21:17Z")

</div>

Hello All, I am looking for some good blogs or GitHub link which basically helps to practice in details with different types of ansible loops, filter and filter manipulation with sample variable or files. I have been f…

---

## [variables and number in conditionals](https://forum.ansible.com/t/variables-and-number-in-conditionals/33930)

<div class="topic-metadata">

**Author:** [@hieronymus](https://forum.ansible.com/u/hieronymus)\
**Replies:** 2\
**Last updated:** [October 1, 2020, 7:55am UTC](https://forum.ansible.com/t/variables-and-number-in-conditionals/33930 "2020-10-01T07:55:45Z")

</div>

Hi, I’ve some misunderstanding regarding conditionals on variables or number. By example, within a role we’re using some prompt to defined some variables. -name: “server\_domain” prompt: “Choose server?\\n1- Server1\\n2…

---

## [Getting module failure while creation file on AT](https://forum.ansible.com/t/getting-module-failure-while-creation-file-on-at/33886)

<div class="topic-metadata">

**Author:** [@Kundan\_Singh](https://forum.ansible.com/u/Kundan_Singh)\
**Replies:** 2\
**Last updated:** [October 1, 2020, 7:53am UTC](https://forum.ansible.com/t/getting-module-failure-while-creation-file-on-at/33886 "2020-10-01T07:53:51Z")

</div>

Hi All, Need your guidance. I am trying to create a file on Ansible Tower local host. Below is the task which syntax

---

## [MySQL DB module behavior](https://forum.ansible.com/t/mysql-db-module-behavior/33937)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 6:26am UTC](https://forum.ansible.com/t/mysql-db-module-behavior/33937 "2020-10-01T06:26:25Z")

</div>

Hello, I need somes precisions about mysql\_db module. I try to create Apache Guacamole role. This is my playbook: FIRST TASK: name: Creation databases guacamole community.mysql.mysql\_db: login\_host: “{{ database\_i…

---

## [ios\_l2\_interfaces vlan trunks](https://forum.ansible.com/t/ios-l2-interfaces-vlan-trunks/33933)

<div class="topic-metadata">

**Author:** [@Richard\_Lucht](https://forum.ansible.com/u/Richard_Lucht)\
**Replies:** 0\
**Last updated:** [September 30, 2020, 6:58pm UTC](https://forum.ansible.com/t/ios-l2-interfaces-vlan-trunks/33933 "2020-09-30T18:58:04Z")

</div>

I am testing to loop a config to check all ports and add all vlans to the port. I am having an issue with the loop. I am wanting to loop through all interfaces that match the mode trunk name: Add all vlans to trunks c…

---

## [bind loopback and default IP](https://forum.ansible.com/t/bind-loopback-and-default-ip/33918)

<div class="topic-metadata">

**Author:** [@Andrew\_Meyer1](https://forum.ansible.com/u/Andrew_Meyer1)\
**Replies:** 11\
**Last updated:** [September 30, 2020, 4:52pm UTC](https://forum.ansible.com/t/bind-loopback-and-default-ip/33918 "2020-09-30T16:52:39Z")

</div>

I am writing a redis playbook and I want to have any new redis replication node built listen on the loopback address AND default IP address. I am having trouble trying to figure out how to achieve this. I have it set up …

---

## [hosts: all and ansible-playbook --limit seems needlessly dangerous](https://forum.ansible.com/t/hosts-all-and-ansible-playbook-limit-seems-needlessly-dangerous/33932)

<div class="topic-metadata">

**Author:** [@Denis\_Lemire](https://forum.ansible.com/u/Denis_Lemire)\
**Replies:** 0\
**Last updated:** [September 30, 2020, 4:33pm UTC](https://forum.ansible.com/t/hosts-all-and-ansible-playbook-limit-seems-needlessly-dangerous/33932 "2020-09-30T16:33:54Z")

</div>

I opened an issue at Github but was directed here: https://github.com/ansible/ansible/issues/72027 This may have already been discussed at length but it’s always bothered me that a playbook would need an explicit hosts…

---

## [Trying to use Packer Provisioner for Ansible, Winrm connections to Windows 2019 server](https://forum.ansible.com/t/trying-to-use-packer-provisioner-for-ansible-winrm-connections-to-windows-2019-server/33915)

<div class="topic-metadata">

**Author:** [@i255d](https://forum.ansible.com/u/i255d)\
**Replies:** 4\
**Last updated:** [September 30, 2020, 4:02pm UTC](https://forum.ansible.com/t/trying-to-use-packer-provisioner-for-ansible-winrm-connections-to-windows-2019-server/33915 "2020-09-30T16:02:44Z")

</div>

I have been working on this for days, and I feel like I am close. Any ideas what is causing this??? amazon-ebs: PLAYBOOK: playbook.yml \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* amazon-ebs: 1 plays in /c…

---

## [ansible ip address filter from files](https://forum.ansible.com/t/ansible-ip-address-filter-from-files/33929)

<div class="topic-metadata">

**Author:** [@sharanpeetani](https://forum.ansible.com/u/sharanpeetani)\
**Replies:** 0\
**Last updated:** [September 30, 2020, 12:22pm UTC](https://forum.ansible.com/t/ansible-ip-address-filter-from-files/33929 "2020-09-30T12:22:14Z")

</div>

Hello, I am trying to filter ipv4 address from multiple files and put them in a output file. can you please help me how to filter ip from files and put them in target file Here is my playbook I am trying to filter ipv4…

---

## [execute ansible command very slowly](https://forum.ansible.com/t/execute-ansible-command-very-slowly/33927)

<div class="topic-metadata">

**Author:** [@MJ1](https://forum.ansible.com/u/MJ1)\
**Replies:** 2\
**Last updated:** [September 30, 2020, 10:30am UTC](https://forum.ansible.com/t/execute-ansible-command-very-slowly/33927 "2020-09-30T10:30:53Z")

</div>

I’ve installed ansible in CentOS6.5, then added host group bocai\_ecs\_all in /etc/ansible/ansible.cfg. \[bocai\_ecs\_all\] bocaiserver1 bocaiserver2 (centos7.6) bocaiserver3 bocaiserver4 (centos7.6) bocaiserver5 And th…

---

## [deprecation of DEFAULT\_HASH\_BEHAVIOUR option](https://forum.ansible.com/t/deprecation-of-default-hash-behaviour-option/33905)

<div class="topic-metadata">

**Author:** [@nd1](https://forum.ansible.com/u/nd1)\
**Replies:** 4\
**Last updated:** [September 30, 2020, 10:11am UTC](https://forum.ansible.com/t/deprecation-of-default-hash-behaviour-option/33905 "2020-09-30T10:11:32Z")

</div>

Hello, is there any documentation on why this was deprecated? This breaks close to all of my ansible roles as well as it results in a full rewrite of the inventory for all organisations where I use ansible. I’m using “h…

---

## [Ansible VMware capacity check](https://forum.ansible.com/t/ansible-vmware-capacity-check/33928)

<div class="topic-metadata">

**Author:** [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Replies:** 0\
**Last updated:** [September 30, 2020, 6:35am UTC](https://forum.ansible.com/t/ansible-vmware-capacity-check/33928 "2020-09-30T06:35:11Z")

</div>

Hello all, I want to create a vm machine on VMware infra but prior to that I would like to check available space in data store cluster. Also in that I would like to check available free cpu and memory in cluster Pleas…

---

## [Playbook for cisco switch interface Network Access Control](https://forum.ansible.com/t/playbook-for-cisco-switch-interface-network-access-control/33913)

<div class="topic-metadata">

**Author:** [@Richard\_Lucht](https://forum.ansible.com/u/Richard_Lucht)\
**Replies:** 3\
**Last updated:** [September 29, 2020, 1:56pm UTC](https://forum.ansible.com/t/playbook-for-cisco-switch-interface-network-access-control/33913 "2020-09-29T13:56:10Z")

</div>

Hello experts, I am looking for a way to automate access ports for NAC on legacy authentication. I only want to configure ports that already have “switchport mode access” and the “authentication event server dead action …

---

## [galaxy fortios backup running config](https://forum.ansible.com/t/galaxy-fortios-backup-running-config/33920)

<div class="topic-metadata">

**Author:** [@Gisbert\_Haas](https://forum.ansible.com/u/Gisbert_Haas)\
**Replies:** 0\
**Last updated:** [September 29, 2020, 10:30am UTC](https://forum.ansible.com/t/galaxy-fortios-backup-running-config/33920 "2020-09-29T10:30:33Z")

</div>

Hi, anyone already using Ansible 2.10 with galaxy fortios and got backup of running config working? I struggle to figure out which module to use? https://galaxy.ansible.com/fortinet/fortios Thanks a million G.

---

## [Using ansible\_user or remote\_user in group\_vars](https://forum.ansible.com/t/using-ansible-user-or-remote-user-in-group-vars/33919)

<div class="topic-metadata">

**Author:** [@Simon\_Liddicott](https://forum.ansible.com/u/Simon_Liddicott)\
**Replies:** 0\
**Last updated:** [September 29, 2020, 8:56am UTC](https://forum.ansible.com/t/using-ansible-user-or-remote-user-in-group-vars/33919 "2020-09-29T08:56:29Z")

</div>

Hi I want to use ansible\_user in group\_vars so that I can set ansible\_winrm\_user to add a domain name for authentication. EG. ansible\_winrm\_user: “{{ ansible\_user }}@{{ windows\_domain}}” become\_user: “{{ ansible\_user…

---

## [Ansible hangs on package installation for hours before connection to host is lost](https://forum.ansible.com/t/ansible-hangs-on-package-installation-for-hours-before-connection-to-host-is-lost/33787)

<div class="topic-metadata">

**Author:** [@Pankaj\_Basnal](https://forum.ansible.com/u/Pankaj_Basnal)\
**Replies:** 8\
**Last updated:** [September 29, 2020, 7:31am UTC](https://forum.ansible.com/t/ansible-hangs-on-package-installation-for-hours-before-connection-to-host-is-lost/33787 "2020-09-29T07:31:02Z")

</div>

Hi, I’m new to ansible and I’m facing an issue with executing our playbook. Setup- For 10 hosts on azure all hosts are identical and newly created ansible.cfg- \[defaults\] host\_key\_checking = False portion…

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

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