# Ansible Project

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

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

**Page:** 283

---

## [remove previously used remote\_user (possibly ControlMaster, ControlPersist problem)](https://forum.ansible.com/t/remove-previously-used-remote-user-possibly-controlmaster-controlpersist-problem/26693)

<div class="topic-metadata">

**Author:** [@Davide](https://forum.ansible.com/u/Davide)\
**Replies:** 1\
**Last updated:** [February 9, 2018, 11:23pm UTC](https://forum.ansible.com/t/remove-previously-used-remote-user-possibly-controlmaster-controlpersist-problem/26693 "2018-02-09T23:23:53Z")

</div>

Hi all, to setup raspberry pis I would like to use the following palybooks (the actual yaml is at the end). with remote\_user=defaultuser, become and add newuser with remote\_user=newuser, become and delete defaultuser …

---

## [Deleting a user; still being used](https://forum.ansible.com/t/deleting-a-user-still-being-used/19869)

<div class="topic-metadata">

**Author:** [@Andrew\_Langhorn1](https://forum.ansible.com/u/Andrew_Langhorn1)\
**Replies:** 3\
**Last updated:** [February 9, 2018, 11:16pm UTC](https://forum.ansible.com/t/deleting-a-user-still-being-used/19869 "2018-02-09T23:16:34Z")

</div>

Hello, I am instantiating an EC2 instance from a community AMI in the Marketplace. The AMI comes pre-baked with a default user (ec2-user). I have a role in my Ansible repository which is applied to all machines, called…

---

## [Ansible Tower can't reach SCM source or remote host.](https://forum.ansible.com/t/ansible-tower-cant-reach-scm-source-or-remote-host/26689)

<div class="topic-metadata">

**Author:** [@Pranav\_Baitule](https://forum.ansible.com/u/Pranav_Baitule)\
**Replies:** 2\
**Last updated:** [February 9, 2018, 7:49pm UTC](https://forum.ansible.com/t/ansible-tower-cant-reach-scm-source-or-remote-host/26689 "2018-02-09T19:49:43Z")

</div>

Hello, I have installed Ansible Tower on Ubuntu using Windows Subsystem for Linux. Starting an SCM update or running a playbook against a remote host gives me the following error - \` Can’t create signalfd: Function n…

---

## [unable to run ping command from Ansible server to Application server](https://forum.ansible.com/t/unable-to-run-ping-command-from-ansible-server-to-application-server/26699)

<div class="topic-metadata">

**Author:** [@Lokanath\_Veluru](https://forum.ansible.com/u/Lokanath_Veluru)\
**Replies:** 0\
**Last updated:** [February 9, 2018, 7:19pm UTC](https://forum.ansible.com/t/unable-to-run-ping-command-from-ansible-server-to-application-server/26699 "2018-02-09T19:19:53Z")

</div>

Hi Suresh, Are you able to login SSH manually (ssh 10.XXX.XXX.XX)? → Request you to regenerate the keys and make copy on both servers. It should work…

---

## [Ansible: Failed to connect to the host via ssh](https://forum.ansible.com/t/ansible-failed-to-connect-to-the-host-via-ssh/26697)

<div class="topic-metadata">

**Author:** [@Lokanath\_Veluru](https://forum.ansible.com/u/Lokanath_Veluru)\
**Replies:** 0\
**Last updated:** [February 9, 2018, 3:01pm UTC](https://forum.ansible.com/t/ansible-failed-to-connect-to-the-host-via-ssh/26697 "2018-02-09T15:01:00Z")

</div>

Hi Ansible Team: This is application requirement to do package installation and configuration tunning on multiple servers and i have done with my requirement on all servers except one server(10.XXX.XXX.XX). 10.XXX.XXX.…

---

## [Ansible reporting wrong service status](https://forum.ansible.com/t/ansible-reporting-wrong-service-status/26684)

<div class="topic-metadata">

**Author:** [@Sidh](https://forum.ansible.com/u/Sidh)\
**Replies:** 2\
**Last updated:** [February 9, 2018, 1:17pm UTC](https://forum.ansible.com/t/ansible-reporting-wrong-service-status/26684 "2018-02-09T13:17:04Z")

</div>

Ansible - 2.4 With below snippet, service failed to start at remote host but ansible reports that lighttpd service has been restarted and ok.

---

## [Ansible process email](https://forum.ansible.com/t/ansible-process-email/26686)

<div class="topic-metadata">

**Author:** [@timothy.n.mcgibbon](https://forum.ansible.com/u/timothy.n.mcgibbon)\
**Replies:** 1\
**Last updated:** [February 9, 2018, 6:22am UTC](https://forum.ansible.com/t/ansible-process-email/26686 "2018-02-09T06:22:37Z")

</div>

Has anyone have done email reading using Ansible. I am working on a project that is sending out email with a link to the task that the Ansible Tower would schedule a job to run. The email could be the trigger or the Ans…

---

## [Reusing custom action plugin across multiple custom modules](https://forum.ansible.com/t/reusing-custom-action-plugin-across-multiple-custom-modules/26466)

<div class="topic-metadata">

**Author:** [@Pathangi\_Janardhanan](https://forum.ansible.com/u/Pathangi_Janardhanan)\
**Replies:** 1\
**Last updated:** [February 9, 2018, 6:08am UTC](https://forum.ansible.com/t/reusing-custom-action-plugin-across-multiple-custom-modules/26466 "2018-02-09T06:08:57Z")

</div>

Hi, I have to write a few modules but all of them need some common local host work to be done, which I do in the action plugin. The problem is I am putting one action plugin for each module (since the action plugin has …

---

## [printing readable error message while in playbook debug mode](https://forum.ansible.com/t/printing-readable-error-message-while-in-playbook-debug-mode/26690)

<div class="topic-metadata">

**Author:** [@Tim\_Black](https://forum.ansible.com/u/Tim_Black)\
**Replies:** 2\
**Last updated:** [February 9, 2018, 5:52am UTC](https://forum.ansible.com/t/printing-readable-error-message-while-in-playbook-debug-mode/26690 "2018-02-09T05:52:44Z")

</div>

I get this error when I run my playbook (with debug strategy enabled): \` TASK \[Add authorized keys for developer user\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Failure on only one server running ansible playbook for key/user management](https://forum.ansible.com/t/failure-on-only-one-server-running-ansible-playbook-for-key-user-management/26692)

<div class="topic-metadata">

**Author:** [@Joe\_G](https://forum.ansible.com/u/Joe_G)\
**Replies:** 0\
**Last updated:** [February 8, 2018, 11:09pm UTC](https://forum.ansible.com/t/failure-on-only-one-server-running-ansible-playbook-for-key-user-management/26692 "2018-02-08T23:09:37Z")

</div>

I’ll preface this by saying I’m novice to ansible and certainly not a linux expert so I might need extra details if you ask me to do anything, so please be specific with instructions. This has been working flawlessly in …

---

## [How to loop over result and retry in the same task?](https://forum.ansible.com/t/how-to-loop-over-result-and-retry-in-the-same-task/26527)

<div class="topic-metadata">

**Author:** [@Eric\_Chong](https://forum.ansible.com/u/Eric_Chong)\
**Replies:** 3\
**Last updated:** [February 8, 2018, 7:50pm UTC](https://forum.ansible.com/t/how-to-loop-over-result-and-retry-in-the-same-task/26527 "2018-02-08T19:50:39Z")

</div>

For example, if I want a task to pull ec2\_instance\_facts until any instance is in running state, and retry if none is running.

---

## [How to log what a perl script does,called from an Ansible shell module?](https://forum.ansible.com/t/how-to-log-what-a-perl-script-does-called-from-an-ansible-shell-module/26685)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 3\
**Last updated:** [February 8, 2018, 6:07pm UTC](https://forum.ansible.com/t/how-to-log-what-a-perl-script-does-called-from-an-ansible-shell-module/26685 "2018-02-08T18:07:57Z")

</div>

I’m trying to automate installation of gitsyncd and gitmirrord applications via download of the git-syncing.git repository, which installs a /tmp/git-sync/install.pl PERL script. I then run the following: \` name: Inst…

---

## [YAML code to list yum repositories and yum history using yum module.?](https://forum.ansible.com/t/yaml-code-to-list-yum-repositories-and-yum-history-using-yum-module/26687)

<div class="topic-metadata">

**Author:** [@Mohan\_Ganesan](https://forum.ansible.com/u/Mohan_Ganesan)\
**Replies:** 0\
**Last updated:** [February 8, 2018, 5:19pm UTC](https://forum.ansible.com/t/yaml-code-to-list-yum-repositories-and-yum-history-using-yum-module/26687 "2018-02-08T17:19:26Z")

</div>

I would like to explore yum module in my yaml code. I am looking for a YAML code to list yum repositories and yum history using yum module. Are the commands yum repolist & yum history built on the yum module? Please l…

---

## [Ansible on CENTOS VM SSH failing](https://forum.ansible.com/t/ansible-on-centos-vm-ssh-failing/26677)

<div class="topic-metadata">

**Author:** [@Alfredo\_Bosca\_Batall](https://forum.ansible.com/u/Alfredo_Bosca_Batall)\
**Replies:** 1\
**Last updated:** [February 8, 2018, 5:05pm UTC](https://forum.ansible.com/t/ansible-on-centos-vm-ssh-failing/26677 "2018-02-08T17:05:38Z")

</div>

Hi gents, After installing ansible and check that my version is 2.4.2.0 I have created a inventory file like this: Afterward, I have tried to access one of them throught ssh but I can’t. The fail message is the next: …

---

## [How Ansible Works?](https://forum.ansible.com/t/how-ansible-works/26681)

<div class="topic-metadata">

**Author:** [@lucielina02](https://forum.ansible.com/u/lucielina02)\
**Replies:** 0\
**Last updated:** [February 8, 2018, 9:44am UTC](https://forum.ansible.com/t/how-ansible-works/26681 "2018-02-08T09:44:36Z")

</div>

There are many similar automation tools available like Puppet, Capistrano, Chef, Salt, Space Walk etc, but Ansible categorize into two types of server: controlling machines and nodes. The controlling machine, where Ansi…

---

## [errors in backing up a config from a juniper device](https://forum.ansible.com/t/errors-in-backing-up-a-config-from-a-juniper-device/26640)

<div class="topic-metadata">

**Author:** [@DOkuwa](https://forum.ansible.com/u/DOkuwa)\
**Replies:** 8\
**Last updated:** [February 8, 2018, 9:24am UTC](https://forum.ansible.com/t/errors-in-backing-up-a-config-from-a-juniper-device/26640 "2018-02-08T09:24:41Z")

</div>

hello all I have this in my backup\_config\_yaml

---

## [Unable to use specified private key when connecting as a different user](https://forum.ansible.com/t/unable-to-use-specified-private-key-when-connecting-as-a-different-user/26680)

<div class="topic-metadata">

**Author:** [@0lai.m.mariano](https://forum.ansible.com/u/0lai.m.mariano)\
**Replies:** 0\
**Last updated:** [February 8, 2018, 8:33am UTC](https://forum.ansible.com/t/unable-to-use-specified-private-key-when-connecting-as-a-different-user/26680 "2018-02-08T08:33:11Z")

</div>

Scenario - I am logged in to my Ansible server as “0lai” but would like to run my testPlay.yml as a different user (“ansible”) so I used the —user option. However, I don’t know user ansible’s password and would like to m…

---

## [sudo su - oracle not working](https://forum.ansible.com/t/sudo-su-oracle-not-working/26679)

<div class="topic-metadata">

**Author:** [@P\_L](https://forum.ansible.com/u/P_L)\
**Replies:** 0\
**Last updated:** [February 8, 2018, 4:05am UTC](https://forum.ansible.com/t/sudo-su-oracle-not-working/26679 "2018-02-08T04:05:32Z")

</div>

Hi, I’m trying to to Oracle patch name: opatch lsinv shell: /app/oracle/OPatch/opatch lsinv become: true become\_method: sudo become\_user: oracle become\_flags: ‘su - /bin/sh’ it is faling saying PERMISSION DENIED…

---

## [Not able to change runlevel in /etc/inittab using aix\_inittab module](https://forum.ansible.com/t/not-able-to-change-runlevel-in-etc-inittab-using-aix-inittab-module/26513)

<div class="topic-metadata">

**Author:** [@Anurag\_Berdia](https://forum.ansible.com/u/Anurag_Berdia)\
**Replies:** 2\
**Last updated:** [February 8, 2018, 12:29am UTC](https://forum.ansible.com/t/not-able-to-change-runlevel-in-etc-inittab-using-aix-inittab-module/26513 "2018-02-08T00:29:53Z")

</div>

Hi, I am new to Ansible and this is my first post on this community. I am trying to use “aix\_inittab” module and this is how my playbook looks like: name: Change runlevel aix\_inittab: name: myservice runlevel: 4 …

---

## [Download multiple files from S3](https://forum.ansible.com/t/download-multiple-files-from-s3/26676)

<div class="topic-metadata">

**Author:** [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Replies:** 1\
**Last updated:** [February 7, 2018, 2:34pm UTC](https://forum.ansible.com/t/download-multiple-files-from-s3/26676 "2018-02-07T14:34:11Z")

</div>

How can i download multiple files from same bucket, can we use wildcard for this? i am confused a bit name: Download from S3 s3: profile: iupdate region: ap-southeast-1 bucket: reareses object: sdaces/{{item}} wi…

---

## [ansible vmware\_guest failed to find a matching datastore](https://forum.ansible.com/t/ansible-vmware-guest-failed-to-find-a-matching-datastore/25628)

<div class="topic-metadata">

**Author:** [@Victor1](https://forum.ansible.com/u/Victor1)\
**Replies:** 1\
**Last updated:** [February 7, 2018, 11:39am UTC](https://forum.ansible.com/t/ansible-vmware-guest-failed-to-find-a-matching-datastore/25628 "2018-02-07T11:39:22Z")

</div>

Hi , I have upgraded to ansible 2.4 and using vmware\_guest module to create a VM. I am getting “Failed to find a matching datastore”. same code works fine in ansiblke 2.3. is this a known issue or am i missing somethi…

---

## [synchronize not working between](https://forum.ansible.com/t/synchronize-not-working-between/26600)

<div class="topic-metadata">

**Author:** [@Gopi\_Krishna](https://forum.ansible.com/u/Gopi_Krishna)\
**Replies:** 1\
**Last updated:** [February 7, 2018, 10:33am UTC](https://forum.ansible.com/t/synchronize-not-working-between/26600 "2018-02-07T10:33:25Z")

</div>

Hi all, synchronize command is not working.

---

## [requests-credssp and credentials encryprion at first hop.](https://forum.ansible.com/t/requests-credssp-and-credentials-encryprion-at-first-hop/26597)

<div class="topic-metadata">

**Author:** [@user92](https://forum.ansible.com/u/user92)\
**Replies:** 12\
**Last updated:** [February 7, 2018, 6:09am UTC](https://forum.ansible.com/t/requests-credssp-and-credentials-encryprion-at-first-hop/26597 "2018-02-07T06:09:13Z")

</div>

Hello. I have security-related question. In our environment we use ansible for application deployment. Ansible playbooks running by jenkins. Scope for deployment contains Windows-based servers (2008R2+). In some case…

---

## [Using Ansible per directory instead of per host](https://forum.ansible.com/t/using-ansible-per-directory-instead-of-per-host/26675)

<div class="topic-metadata">

**Author:** [@Emmanuel\_Jaep](https://forum.ansible.com/u/Emmanuel_Jaep)\
**Replies:** 1\
**Last updated:** [February 6, 2018, 9:47pm UTC](https://forum.ansible.com/t/using-ansible-per-directory-instead-of-per-host/26675 "2018-02-06T21:47:49Z")

</div>

I know it will sound a bit strange but I wonder if there is a way to use Ansible per directory instead of per host. Our current use case is the following: the same application (here WordPress) is deployed into multiple …

---

## ['service' should succeed to stop a service, even if non-existant (and spelling issues)](https://forum.ansible.com/t/service-should-succeed-to-stop-a-service-even-if-non-existant-and-spelling-issues/26674)

<div class="topic-metadata">

**Author:** [@burton](https://forum.ansible.com/u/burton)\
**Replies:** 2\
**Last updated:** [February 6, 2018, 6:21pm UTC](https://forum.ansible.com/t/service-should-succeed-to-stop-a-service-even-if-non-existant-and-spelling-issues/26674 "2018-02-06T18:21:56Z")

</div>

Right now if you stop a service which isn’t installed you get an error. service: name=kube-apiserver state=stopped … if the kube-apiservice service isn’t installed it will just fail. It shouldn’t fail. It’s ‘stopped’ …

---

## [Is the following ansible documentation incorrect? "the first 10: --limit boston\[1:10\]". Shouldn't it be "--limit boston\[0:9\]"](https://forum.ansible.com/t/is-the-following-ansible-documentation-incorrect-the-first-10-limit-boston-1-10-shouldnt-it-be-limit-boston-0-9/26629)

<div class="topic-metadata">

**Author:** [@Mike\_Cavedon](https://forum.ansible.com/u/Mike_Cavedon)\
**Replies:** 3\
**Last updated:** [February 6, 2018, 3:27pm UTC](https://forum.ansible.com/t/is-the-following-ansible-documentation-incorrect-the-first-10-limit-boston-1-10-shouldnt-it-be-limit-boston-0-9/26629 "2018-02-06T15:27:11Z")

</div>

I’m seeing what appears to be two different definitions of how limits work. There is the first one here: http://docs.ansible.com/ansible/latest/playbooks\_best\_practices.html What about just the first 10, and then the n…

---

## [\--limit \[exclusive, inclusive\] not working as expected](https://forum.ansible.com/t/limit-exclusive-inclusive-not-working-as-expected/26673)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [February 6, 2018, 3:05pm UTC](https://forum.ansible.com/t/limit-exclusive-inclusive-not-working-as-expected/26673 "2018-02-06T15:05:29Z")

</div>

The range is inclusive.

---

## [Switch config template](https://forum.ansible.com/t/switch-config-template/26672)

<div class="topic-metadata">

**Author:** [@Surjeet\_Singh](https://forum.ansible.com/u/Surjeet_Singh)\
**Replies:** 0\
**Last updated:** [February 6, 2018, 2:18pm UTC](https://forum.ansible.com/t/switch-config-template/26672 "2018-02-06T14:18:33Z")

</div>

Hi All, I am working to prepare config template for one of my on going project, where i have four type of devices to create template and push the config. i have made my strategy to how to deal with this. now i want wri…

---

## [Ansible - create LVM](https://forum.ansible.com/t/ansible-create-lvm/26668)

<div class="topic-metadata">

**Author:** [@tasiorek27](https://forum.ansible.com/u/tasiorek27)\
**Replies:** 2\
**Last updated:** [February 6, 2018, 7:11am UTC](https://forum.ansible.com/t/ansible-create-lvm/26668 "2018-02-06T07:11:32Z")

</div>

Hello, I’m pretty new in ansible, so excuse me for this (stupid?) question, but it bothers me. I’m trying to set up LVM on the remote host with ansible. Here is my role: \`

---

## [Simple YAMl File syntax errors](https://forum.ansible.com/t/simple-yaml-file-syntax-errors/26579)

<div class="topic-metadata">

**Author:** [@Mallireddy\_Gangadhar](https://forum.ansible.com/u/Mallireddy_Gangadhar)\
**Replies:** 2\
**Last updated:** [February 6, 2018, 3:28am UTC](https://forum.ansible.com/t/simple-yaml-file-syntax-errors/26579 "2018-02-06T03:28:43Z")

</div>

Hi , I have written a simple yaml file to install httpd package

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

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