# Ansible Project

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

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

**Page:** 229

---

## [getting error when test ping on router ios](https://forum.ansible.com/t/getting-error-when-test-ping-on-router-ios/28692)

<div class="topic-metadata">

**Author:** [@aris](https://forum.ansible.com/u/aris)\
**Replies:** 2\
**Last updated:** [October 18, 2018, 4:16pm UTC](https://forum.ansible.com/t/getting-error-when-test-ping-on-router-ios/28692 "2018-10-18T16:16:17Z")

</div>

Hi, I’m trying test ping using command “ansible -m ping all” and then i getting error bellow : ansible -m ping all \[WARNING\]: \* Failed to parse /etc/ansible/hosts with yaml plugin: Syntax Error while loading YAML. foun…

---

## [Managing Realm Permits Based on Satellite Parameters](https://forum.ansible.com/t/managing-realm-permits-based-on-satellite-parameters/28822)

<div class="topic-metadata">

**Author:** [@Jeremy\_Winder](https://forum.ansible.com/u/Jeremy_Winder)\
**Replies:** 0\
**Last updated:** [October 18, 2018, 3:51pm UTC](https://forum.ansible.com/t/managing-realm-permits-based-on-satellite-parameters/28822 "2018-10-18T15:51:12Z")

</div>

I am running RHEL 7.5, Satellite 6.3, Ansible 2.7.0, and Ansible AWX 2.0.1. I am in the process of developing playbooks to handle our server provisioning. As part of the provisioning process, we are using sssd and realm…

---

## [block rescue notifications](https://forum.ansible.com/t/block-rescue-notifications/28821)

<div class="topic-metadata">

**Author:** [@KSS](https://forum.ansible.com/u/KSS)\
**Replies:** 0\
**Last updated:** [October 18, 2018, 3:23pm UTC](https://forum.ansible.com/t/block-rescue-notifications/28821 "2018-10-18T15:23:23Z")

</div>

Hi, I have a playbook that attempts to notify via slack of hosts that were successful and those that failed. Below is a simply playbook showing what I’m trying to achieve using debug. Ansible version: 2.6.5 ----------…

---

## [removing blank lines after all lines start with specific string](https://forum.ansible.com/t/removing-blank-lines-after-all-lines-start-with-specific-string/28817)

<div class="topic-metadata">

**Author:** [@Shlomit\_Afgin](https://forum.ansible.com/u/Shlomit_Afgin)\
**Replies:** 2\
**Last updated:** [October 18, 2018, 3:22pm UTC](https://forum.ansible.com/t/removing-blank-lines-after-all-lines-start-with-specific-string/28817 "2018-10-18T15:22:53Z")

</div>

HI, Is there any way to remove from a file, all blank lines that exist after line start with specific string? for example: Remove all blank lines after lines start with XXX1 \` XXX1bla bla bla hjshfgdfg gdfsgdsgdf …

---

## [Using vmware\_guest\_snapshot with case insensitive VM names](https://forum.ansible.com/t/using-vmware-guest-snapshot-with-case-insensitive-vm-names/28811)

<div class="topic-metadata">

**Author:** [@KSS](https://forum.ansible.com/u/KSS)\
**Replies:** 1\
**Last updated:** [October 18, 2018, 11:24am UTC](https://forum.ansible.com/t/using-vmware-guest-snapshot-with-case-insensitive-vm-names/28811 "2018-10-18T11:24:24Z")

</div>

Hi, I’m looking at switching to using the vmware\_guest\_snapshot module to take snapshots of VMs before performing package updates on them (I previously used another custom module where we changed case of hostnames to lo…

---

## [passing  -y flag with yum](https://forum.ansible.com/t/passing-y-flag-with-yum/28815)

<div class="topic-metadata">

**Author:** [@Chad\_Fay](https://forum.ansible.com/u/Chad_Fay)\
**Replies:** 7\
**Last updated:** [October 18, 2018, 10:29am UTC](https://forum.ansible.com/t/passing-y-flag-with-yum/28815 "2018-10-18T10:29:23Z")

</div>

I’m new at this, I’m trying to figure out how to pass the -y flag when I am installing with the yum module. I’ve tried pkg=\<package\_name\> -y but that doesn’t work. I’m obviously doing something completely wrong, I’m just…

---

## [How to wait for DNS record?](https://forum.ansible.com/t/how-to-wait-for-dns-record/28816)

<div class="topic-metadata">

**Author:** [@Pavel\_Martynov](https://forum.ansible.com/u/Pavel_Martynov)\
**Replies:** 4\
**Last updated:** [October 18, 2018, 9:50am UTC](https://forum.ansible.com/t/how-to-wait-for-dns-record/28816 "2018-10-18T09:50:53Z")

</div>

Hi! I want to wait for some DNS record registered in DNS server. For example, A record. So I try to use this task: name: Wait DNS A record host.example.com registered set\_fact: lookup\_result: “{{ lookup(‘dig’, ‘host…

---

## [Want be able to source ~/.profile](https://forum.ansible.com/t/want-be-able-to-source-profile/28773)

<div class="topic-metadata">

**Author:** [@pranay\_varankar](https://forum.ansible.com/u/pranay_varankar)\
**Replies:** 4\
**Last updated:** [October 18, 2018, 8:45am UTC](https://forum.ansible.com/t/want-be-able-to-source-profile/28773 "2018-10-18T08:45:40Z")

</div>

Hi, I have added some export task in ~/.profile file & its added but not able to source ~/.profile in remote host. FYI name: Set .profile lineinfile: path: /root/.profile line: export PROMPT\_COMMAND=‘history -a \>(…

---

## [open command line installer by playbook](https://forum.ansible.com/t/open-command-line-installer-by-playbook/28779)

<div class="topic-metadata">

**Author:** [@aakanksha.jain](https://forum.ansible.com/u/aakanksha.jain)\
**Replies:** 2\
**Last updated:** [October 18, 2018, 8:41am UTC](https://forum.ansible.com/t/open-command-line-installer-by-playbook/28779 "2018-10-18T08:41:17Z")

</div>

Hello, I have software, where I need to run ./install.bin command as a output it open a command line installer to provide requested value of variables. How can I achieve this by ansible playbook.

---

## [Ansible 2.7 yum module issues](https://forum.ansible.com/t/ansible-2-7-yum-module-issues/28814)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 1\
**Last updated:** [October 18, 2018, 1:32am UTC](https://forum.ansible.com/t/ansible-2-7-yum-module-issues/28814 "2018-10-18T01:32:40Z")

</div>

Anyone notice weirdness with ansible 2.7? I’m running 2.7.0 and the yum module doesn’t seem to be working as it’s supposed to. Previous ran ansible 2.6.x with success. Same module under 2.7.0: fatal: \[172.23.10.2\]: FAIL…

---

## [Loop j2 template with numerical range and run command for each change iteration of .j2](https://forum.ansible.com/t/loop-j2-template-with-numerical-range-and-run-command-for-each-change-iteration-of-j2/28809)

<div class="topic-metadata">

**Author:** [@Justin\_Schmitz](https://forum.ansible.com/u/Justin_Schmitz)\
**Replies:** 1\
**Last updated:** [October 17, 2018, 9:35pm UTC](https://forum.ansible.com/t/loop-j2-template-with-numerical-range-and-run-command-for-each-change-iteration-of-j2/28809 "2018-10-17T21:35:43Z")

</div>

I am installing SQL2016 with Ansible. This is easy enough to do. I have a config file (Configurationfile.ini) that SQL uses to specify all the options for installation via the command line I now have to install named i…

---

## [Help with looping lvm filesystem](https://forum.ansible.com/t/help-with-looping-lvm-filesystem/28813)

<div class="topic-metadata">

**Author:** [@Zia](https://forum.ansible.com/u/Zia)\
**Replies:** 0\
**Last updated:** [October 17, 2018, 9:25pm UTC](https://forum.ansible.com/t/help-with-looping-lvm-filesystem/28813 "2018-10-17T21:25:57Z")

</div>

Hi All, Looking for some help with looping while creating multiple filesystems with different sizes and mount points. There are too many volumes, filesystems and mount points that need to be created for one vol group. …

---

## [Ansible playbook errors: multiple tasks in a single playbook](https://forum.ansible.com/t/ansible-playbook-errors-multiple-tasks-in-a-single-playbook/28786)

<div class="topic-metadata">

**Author:** [@Surya\_Ahuja](https://forum.ansible.com/u/Surya_Ahuja)\
**Replies:** 1\
**Last updated:** [October 17, 2018, 8:17pm UTC](https://forum.ansible.com/t/ansible-playbook-errors-multiple-tasks-in-a-single-playbook/28786 "2018-10-17T20:17:43Z")

</div>

I am a noob at ansible, and I am trying to learn it to automate log collection for our lab. My yaml file is right below: Executing this gives me an error near the second set of tasks. I am searching everyhwere but what a…

---

## [Pause](https://forum.ansible.com/t/pause/28805)

<div class="topic-metadata">

**Author:** [@Guillaume\_Jeanne](https://forum.ansible.com/u/Guillaume_Jeanne)\
**Replies:** 1\
**Last updated:** [October 17, 2018, 3:04pm UTC](https://forum.ansible.com/t/pause/28805 "2018-10-17T15:04:57Z")

</div>

Hey, I’m using the pause module twice in my playbook (one about 1à seconds and the other about 90 secs). My problem is that when the short pause is done, it continues as it should. But after the 90 secs pause it’s aski…

---

## [Trying to copy script from local to remote and run](https://forum.ansible.com/t/trying-to-copy-script-from-local-to-remote-and-run/28769)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 6\
**Last updated:** [October 17, 2018, 3:01pm UTC](https://forum.ansible.com/t/trying-to-copy-script-from-local-to-remote-and-run/28769 "2018-10-17T15:01:01Z")

</div>

Hey all, me again! So I’ve got this playbook that should run fine but it dies at trying to copy. Now I don’t know if it’s because it can’t find it locally having the problem copying it remotely. Here it is: cat check\_fo…

---

## [Ansible AWS Modules for CloudWatch](https://forum.ansible.com/t/ansible-aws-modules-for-cloudwatch/28808)

<div class="topic-metadata">

**Author:** [@Madushan\_Chathuranga](https://forum.ansible.com/u/Madushan_Chathuranga)\
**Replies:** 0\
**Last updated:** [October 17, 2018, 11:37am UTC](https://forum.ansible.com/t/ansible-aws-modules-for-cloudwatch/28808 "2018-10-17T11:37:43Z")

</div>

Hi All, Is there an ansible module available to search aws cloud watch logs and events. https://docs.ansible.com/ansible/2.5/modules/cloudwatchlogs\_log\_group\_facts\_module.html#cloudwatchlogs-log-group-facts-module This…

---

## [check the patch version](https://forum.ansible.com/t/check-the-patch-version/28774)

<div class="topic-metadata">

**Author:** [@alexis\_calvayrac](https://forum.ansible.com/u/alexis_calvayrac)\
**Replies:** 11\
**Last updated:** [October 17, 2018, 11:29am UTC](https://forum.ansible.com/t/check-the-patch-version/28774 "2018-10-17T11:29:00Z")

</div>

Hello, I currently have a playbook that retrieves information from a Cisco machine in a text file. Then I run a scipt bash run by ansible to check the patch version. The problem is that this way of doing things does not…

---

## [host A unreachable so Host B is target ?](https://forum.ansible.com/t/host-a-unreachable-so-host-b-is-target/28807)

<div class="topic-metadata">

**Author:** [@maryam\_da](https://forum.ansible.com/u/maryam_da)\
**Replies:** 0\
**Last updated:** [October 17, 2018, 11:23am UTC](https://forum.ansible.com/t/host-a-unreachable-so-host-b-is-target/28807 "2018-10-17T11:23:15Z")

</div>

hi i have two hosts and i need to run my playbook only on one of them. i.e host A is always the target, unless it is not reachable. in this case, host B will be the target. but the point is that if host A is reachable …

---

## [Help using two options for a value for a template](https://forum.ansible.com/t/help-using-two-options-for-a-value-for-a-template/28800)

<div class="topic-metadata">

**Author:** [@gabriel.eidlin](https://forum.ansible.com/u/gabriel.eidlin)\
**Replies:** 0\
**Last updated:** [October 16, 2018, 7:03pm UTC](https://forum.ansible.com/t/help-using-two-options-for-a-value-for-a-template/28800 "2018-10-16T19:03:51Z")

</div>

Hi guys, Here is why im triying to do: im generating passwords and registering the output in a variable like this name: Generate Server Password raw: Secret=$(az keyvault secret show --name AdminPassword --vault-nam…

---

## [Working with Ansible Galaxy Roles](https://forum.ansible.com/t/working-with-ansible-galaxy-roles/28799)

<div class="topic-metadata">

**Author:** [@Matt\_Davies](https://forum.ansible.com/u/Matt_Davies)\
**Replies:** 5\
**Last updated:** [October 16, 2018, 5:51pm UTC](https://forum.ansible.com/t/working-with-ansible-galaxy-roles/28799 "2018-10-16T17:51:03Z")

</div>

Hi Everyone There’s about 10 developers working on our ansible codebase, configuring approx 20 VM’s, it’s going to grow rapidly. We’ve just started working with ansible galaxy roles and I was wondering if anyone has an…

---

## [Help with blockinfile module running against Proxmox](https://forum.ansible.com/t/help-with-blockinfile-module-running-against-proxmox/26792)

<div class="topic-metadata">

**Author:** [@saicrazyfire](https://forum.ansible.com/u/saicrazyfire)\
**Replies:** 4\
**Last updated:** [October 16, 2018, 5:22pm UTC](https://forum.ansible.com/t/help-with-blockinfile-module-running-against-proxmox/26792 "2018-10-16T17:22:42Z")

</div>

Hi, I’m trying to create containers in Proxmox via ansible and I’ve gotten most of it working. I’m leveraging LXC containers to host Docker containers (since they’re more lightweight, and easier to create). In order to …

---

## [AWS\_EC2 plugin keyed\_groups suffix option](https://forum.ansible.com/t/aws-ec2-plugin-keyed-groups-suffix-option/28790)

<div class="topic-metadata">

**Author:** [@Guy\_Knights1](https://forum.ansible.com/u/Guy_Knights1)\
**Replies:** 3\
**Last updated:** [October 16, 2018, 4:54pm UTC](https://forum.ansible.com/t/aws-ec2-plugin-keyed-groups-suffix-option/28790 "2018-10-16T16:54:21Z")

</div>

Is there any way to specify a suffix for the keyed\_groups option in the aws\_ec2 inventory plugin? I’m looking at migrating from Ansible 2.4 to 2.6 and would like to switch from the old ec2 dynamic inventory script. Howev…

---

## [Problem: regex should find the end of the line - take the next new line](https://forum.ansible.com/t/problem-regex-should-find-the-end-of-the-line-take-the-next-new-line/28797)

<div class="topic-metadata">

**Author:** [@Shlomit\_Afgin](https://forum.ansible.com/u/Shlomit_Afgin)\
**Replies:** 1\
**Last updated:** [October 16, 2018, 3:14pm UTC](https://forum.ansible.com/t/problem-regex-should-find-the-end-of-the-line-take-the-next-new-line/28797 "2018-10-16T15:14:00Z")

</div>

Hi, I have \` name: update file1 with 0 in the end if it missing replace: backup: yes dest: /tmp/file1 regexp: ‘^(start of line.\*\[^0\])$’ replace: ‘\\1 0’ \` This add 0 to lines that start with “start of line”. I…

---

## [template error: AnsibleUndefinedVariable](https://forum.ansible.com/t/template-error-ansibleundefinedvariable/28798)

<div class="topic-metadata">

**Author:** [@christian.tremel](https://forum.ansible.com/u/christian.tremel)\
**Replies:** 0\
**Last updated:** [October 16, 2018, 1:36pm UTC](https://forum.ansible.com/t/template-error-ansibleundefinedvariable/28798 "2018-10-16T13:36:59Z")

</div>

hi, i have a simple template which is driving me nuts, as it throws an bland error. what in blazes does that mean? the template: \` {{ ansible\_managed }} driftfile /etc/ntp.drift tracefile /etc/ntp.trace {% if inve…

---

## [not able to install program](https://forum.ansible.com/t/not-able-to-install-program/28787)

<div class="topic-metadata">

**Author:** [@Ronnie10](https://forum.ansible.com/u/Ronnie10)\
**Replies:** 3\
**Last updated:** [October 16, 2018, 1:22pm UTC](https://forum.ansible.com/t/not-able-to-install-program/28787 "2018-10-16T13:22:08Z")

</div>

Hi there, I am new to ansible, and trying to install httpd using ansible in my test setup. My control machine is Mac, the test server is Centos, I have created user with passwordless sudo right. When I try to run my p…

---

## [shut unused cisco switch interfaces](https://forum.ansible.com/t/shut-unused-cisco-switch-interfaces/28789)

<div class="topic-metadata">

**Author:** [@Ahmed\_Aljawad](https://forum.ansible.com/u/Ahmed_Aljawad)\
**Replies:** 1\
**Last updated:** [October 16, 2018, 11:52am UTC](https://forum.ansible.com/t/shut-unused-cisco-switch-interfaces/28789 "2018-10-16T11:52:50Z")

</div>

Is there is any way i can loop on all the devices interfaces and shut all the Down Down ports ?

---

## [Is there free gui interface or easy way to check  Ansible's log](https://forum.ansible.com/t/is-there-free-gui-interface-or-easy-way-to-check-ansibles-log/28795)

<div class="topic-metadata">

**Author:** [@Shlomit\_Afgin](https://forum.ansible.com/u/Shlomit_Afgin)\
**Replies:** 2\
**Last updated:** [October 16, 2018, 10:26am UTC](https://forum.ansible.com/t/is-there-free-gui-interface-or-easy-way-to-check-ansibles-log/28795 "2018-10-16T10:26:56Z")

</div>

Hi, I’m in a middle of building Ansible on our system. I would like to run it every day to check few servers. Is there any good way to follow the Ansible’s logs to check failed? Is there any free GUI I can use with An…

---

## [Unable to change regional settings on Windows Server](https://forum.ansible.com/t/unable-to-change-regional-settings-on-windows-server/28796)

<div class="topic-metadata">

**Author:** [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Replies:** 0\
**Last updated:** [October 16, 2018, 9:23am UTC](https://forum.ansible.com/t/unable-to-change-regional-settings-on-windows-server/28796 "2018-10-16T09:23:45Z")

</div>

Hi Guys, I want to change regional settings post-Windows Server Provisioning, namely “Display language” and “Input Language” for a) Current User, b) Welcome Screen, and c) New user to “English Australia” I have the …

---

## [Unable to Sync all the instances from the AWS to the Ansible Tower](https://forum.ansible.com/t/unable-to-sync-all-the-instances-from-the-aws-to-the-ansible-tower/28792)

<div class="topic-metadata">

**Author:** [@Raj2](https://forum.ansible.com/u/Raj2)\
**Replies:** 0\
**Last updated:** [October 16, 2018, 3:13am UTC](https://forum.ansible.com/t/unable-to-sync-all-the-instances-from-the-aws-to-the-ansible-tower/28792 "2018-10-16T03:13:16Z")

</div>

I have around 30 Server Instances in AWS all having only the Private IP. In the ansible tower, I have used AWS access key and secret key and thus configured the credentials in the tower. When I start creating a new inv…

---

## [YAML line breaks (newlines) when performing lookups of files or templates](https://forum.ansible.com/t/yaml-line-breaks-newlines-when-performing-lookups-of-files-or-templates/28781)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Panteleyev](https://forum.ansible.com/u/Dmitriy_Panteleyev)\
**Replies:** 2\
**Last updated:** [October 16, 2018, 3:01am UTC](https://forum.ansible.com/t/yaml-line-breaks-newlines-when-performing-lookups-of-files-or-templates/28781 "2018-10-16T03:01:29Z")

</div>

I’ve been banging my head against this for two days. Maybe I’m missing something. When fetching a YAML file or template with lookup function, all the newlines are not preserved, but converted to ‘\\n’. This does not happe…

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

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