# Ansible Project

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

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

**Page:** 273

---

## [Don't create user when updating passwords](https://forum.ansible.com/t/dont-create-user-when-updating-passwords/27078)

<div class="topic-metadata">

**Author:** [@mkempster22uu](https://forum.ansible.com/u/mkempster22uu)\
**Replies:** 1\
**Last updated:** [March 22, 2018, 1:26pm UTC](https://forum.ansible.com/t/dont-create-user-when-updating-passwords/27078 "2018-03-22T13:26:05Z")

</div>

Is there a way in the user module to not create a user if it doesn’t find it. This is so we can update the password for that user on a list of servers, but if the server doesn’t have the user it will just skip it rather …

---

## [ansible-playbook error  for load\_config()](https://forum.ansible.com/t/ansible-playbook-error-for-load-config/26811)

<div class="topic-metadata">

**Author:** [@Dark\_Night](https://forum.ansible.com/u/Dark_Night)\
**Replies:** 1\
**Last updated:** [March 22, 2018, 12:55pm UTC](https://forum.ansible.com/t/ansible-playbook-error-for-load-config/26811 "2018-03-22T12:55:47Z")

</div>

dear team, this is my actual yml file

---

## [Ansible playbook text/line insertion in file](https://forum.ansible.com/t/ansible-playbook-text-line-insertion-in-file/27077)

<div class="topic-metadata">

**Author:** [@Abhinav\_Agnihotri](https://forum.ansible.com/u/Abhinav_Agnihotri)\
**Replies:** 0\
**Last updated:** [March 22, 2018, 12:09pm UTC](https://forum.ansible.com/t/ansible-playbook-text-line-insertion-in-file/27077 "2018-03-22T12:09:56Z")

</div>

Hi, This is my file, in which i want to change some existing line. Some random text: testing line Below are examples: Example 0 Example 1 Example 2 path:this file path is /home/ansible/Test\_folder1/Test\_path.cgf i…

---

## [Ansible Installation Issue on Linux](https://forum.ansible.com/t/ansible-installation-issue-on-linux/27065)

<div class="topic-metadata">

**Author:** [@SHR](https://forum.ansible.com/u/SHR)\
**Replies:** 5\
**Last updated:** [March 22, 2018, 10:42am UTC](https://forum.ansible.com/t/ansible-installation-issue-on-linux/27065 "2018-03-22T10:42:53Z")

</div>

Hi All, M getting below error message after ansible installation. Is this error can be ignorable: " \[root@Test0 Desktop\]# ansible --version ERROR! Unexpected Exception, this is probably a bug: (pyasn1 0.1.6 (/usr/lib…

---

## [Install playbook errors out](https://forum.ansible.com/t/install-playbook-errors-out/27074)

<div class="topic-metadata">

**Author:** [@Rahul\_Singh](https://forum.ansible.com/u/Rahul_Singh)\
**Replies:** 0\
**Last updated:** [March 22, 2018, 9:04am UTC](https://forum.ansible.com/t/install-playbook-errors-out/27074 "2018-03-22T09:04:49Z")

</div>

dict object has no attributes ‘sydout’\\n\\nThe error appears to have been in 'usr/share/ceph-ansible-vmasc/roles/ceph-common/tasks/miscsystem\_tuning.yml

---

## [\[vsphere\_guest\] add a new vmdk disk with an automatic number](https://forum.ansible.com/t/vsphere-guest-add-a-new-vmdk-disk-with-an-automatic-number/23831)

<div class="topic-metadata">

**Author:** [@Vincent\_Burgun](https://forum.ansible.com/u/Vincent_Burgun)\
**Replies:** 1\
**Last updated:** [March 21, 2018, 10:24pm UTC](https://forum.ansible.com/t/vsphere-guest-add-a-new-vmdk-disk-with-an-automatic-number/23831 "2018-03-21T22:24:08Z")

</div>

Hi, We use ansible 2.1.0.0 for create VM on vmware vSphere 6.0. Sometimes we need to add a disk We use a role “srv\_disk” - name: “Configure extra disk” delegate\_to: localhost ignore\_errors: yes vsphere\_guest: vce…

---

## [Ansible installation issue - Makefile](https://forum.ansible.com/t/ansible-installation-issue-makefile/27069)

<div class="topic-metadata">

**Author:** [@Andreas\_Olsson](https://forum.ansible.com/u/Andreas_Olsson)\
**Replies:** 0\
**Last updated:** [March 21, 2018, 6:55pm UTC](https://forum.ansible.com/t/ansible-installation-issue-makefile/27069 "2018-03-21T18:55:59Z")

</div>

ons 2018-03-21 klockan 06:40 -0700 skrev Camille Beaudou: I'm trying to install Ansible on a Ubuntu 16.04 VM (VMWare). I'm following the install instruction on Ansible website, however when executing the command "mak…

---

## [exception: mapping values are not allowed in this context](https://forum.ansible.com/t/exception-mapping-values-are-not-allowed-in-this-context/27067)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [March 21, 2018, 4:03pm UTC](https://forum.ansible.com/t/exception-mapping-values-are-not-allowed-in-this-context/27067 "2018-03-21T16:03:59Z")

</div>

I have the following playbook. If I comment out the line for import\_playbook, the error goes away. Can anybody see what is wrong with this? I am guessing a syntax error, but I can’t seem to find it. Thanks in advance!: \`…

---

## [napalm-ansible...NXOS](https://forum.ansible.com/t/napalm-ansible-nxos/27064)

<div class="topic-metadata">

**Author:** [@Sunil6057](https://forum.ansible.com/u/Sunil6057)\
**Replies:** 1\
**Last updated:** [March 21, 2018, 11:36am UTC](https://forum.ansible.com/t/napalm-ansible-nxos/27064 "2018-03-21T11:36:21Z")

</div>

hi --- - hosts: leaf connection: local tasks: - napalm\_install\_config: hostname: "{{ inventory\_hostname }}" username: "{{ username }}" password: "{{ password }}" dev\_os: "{{ nxos …

---

## [Failed to find handler for](https://forum.ansible.com/t/failed-to-find-handler-for/27066)

<div class="topic-metadata">

**Author:** [@danish09](https://forum.ansible.com/u/danish09)\
**Replies:** 0\
**Last updated:** [March 21, 2018, 11:13am UTC](https://forum.ansible.com/t/failed-to-find-handler-for/27066 "2018-03-21T11:13:50Z")

</div>

When I am downloading a tar.gz file and unarchiving it using the unarchive module, ansible fails with “Failed to find handler for "/usr/share/openjdk-9.0.4\_linux-x64\_bin.tar.gz". Make sure the required command to extract…

---

## [Ansible with Multiboot Machines](https://forum.ansible.com/t/ansible-with-multiboot-machines/27063)

<div class="topic-metadata">

**Author:** [@shane](https://forum.ansible.com/u/shane)\
**Replies:** 0\
**Last updated:** [March 20, 2018, 11:28pm UTC](https://forum.ansible.com/t/ansible-with-multiboot-machines/27063 "2018-03-20T23:28:22Z")

</div>

Hi All Has anyone had successful experience using Ansible with multi boot machines. My case we have clusters of 16 machines that have 3 Boots: 1. Ubuntu 16 grub option 0 2. Windows 10 Pro grub option 1 3. Windows se…

---

## [vault-encrypted admin\_password issues in azure\_rm\_virtualmachine module](https://forum.ansible.com/t/vault-encrypted-admin-password-issues-in-azure-rm-virtualmachine-module/26985)

<div class="topic-metadata">

**Author:** [@Alex\_Pilon](https://forum.ansible.com/u/Alex_Pilon)\
**Replies:** 4\
**Last updated:** [March 20, 2018, 11:04pm UTC](https://forum.ansible.com/t/vault-encrypted-admin-password-issues-in-azure-rm-virtualmachine-module/26985 "2018-03-20T23:04:31Z")

</div>

Hello, Having an issue here. I created a role with variables both stored in the role’s /vars folder, and in a /group\_vars’ encrypted vault. The variables in the encrypted vault are for username and password when creat…

---

## [Aliases + module.params](https://forum.ansible.com/t/aliases-module-params/27060)

<div class="topic-metadata">

**Author:** [@Alex\_Stephen1](https://forum.ansible.com/u/Alex_Stephen1)\
**Replies:** 0\
**Last updated:** [March 20, 2018, 9:34pm UTC](https://forum.ansible.com/t/aliases-module-params/27060 "2018-03-20T21:34:43Z")

</div>

I’m in the process of writing an Ansible module. I’ve currently got an Ansible task that includes this piece of code: ... allowed: - ip\_protocol: 'tcp' - port: '22' ... AnsibleModule looks something like this: Ansibl…

---

## [Inventory](https://forum.ansible.com/t/inventory/27058)

<div class="topic-metadata">

**Author:** [@Vino\_B](https://forum.ansible.com/u/Vino_B)\
**Replies:** 1\
**Last updated:** [March 20, 2018, 7:36pm UTC](https://forum.ansible.com/t/inventory/27058 "2018-03-20T19:36:45Z")

</div>

Hi All, Can someone provide me an example on how to accomplish the below task, I have 10 task, I need to execute 5 task on all the host which are under the group test in the inventory file and task 6-8 on first 2 serve…

---

## [How to remote to Windows using Linux](https://forum.ansible.com/t/how-to-remote-to-windows-using-linux/27045)

<div class="topic-metadata">

**Author:** [@Rachel\_Leonard](https://forum.ansible.com/u/Rachel_Leonard)\
**Replies:** 4\
**Last updated:** [March 20, 2018, 6:18pm UTC](https://forum.ansible.com/t/how-to-remote-to-windows-using-linux/27045 "2018-03-20T18:18:26Z")

</div>

I am trying to use credssp to remote login into Windows and I am not getting any response when trying to connect from the Linux box. I can’t ping the windows box either. I can ping the linux box from the windows box. I h…

---

## [Using serial strategy for playbook imported in a toplevel playbook causes entire play termination if some host is unreachable](https://forum.ansible.com/t/using-serial-strategy-for-playbook-imported-in-a-toplevel-playbook-causes-entire-play-termination-if-some-host-is-unreachable/27055)

<div class="topic-metadata">

**Author:** [@Andrey\_Agenosov](https://forum.ansible.com/u/Andrey_Agenosov)\
**Replies:** 1\
**Last updated:** [March 20, 2018, 5:53pm UTC](https://forum.ansible.com/t/using-serial-strategy-for-playbook-imported-in-a-toplevel-playbook-causes-entire-play-termination-if-some-host-is-unreachable/27055 "2018-03-20T17:53:48Z")

</div>

Hello all. Here is a simplified example: \` import\_playbook: test\_unavailable\_node\_different\_strategy.yml hosts: 127.0.0.1 connection: local The question is would we end up here in case of imported playbook (a…

---

## [source archive succeeds however, downloading and unarchiving fails](https://forum.ansible.com/t/source-archive-succeeds-however-downloading-and-unarchiving-fails/27056)

<div class="topic-metadata">

**Author:** [@danish09](https://forum.ansible.com/u/danish09)\
**Replies:** 0\
**Last updated:** [March 20, 2018, 4:51pm UTC](https://forum.ansible.com/t/source-archive-succeeds-however-downloading-and-unarchiving-fails/27056 "2018-03-20T16:51:44Z")

</div>

Hi, Please provide your suggestions. Kindly help me on what mistake I am doing, \` ansible --version ansible 2.4.3.0 config file = None configured module search path = \[u’/home/xxxxxx/.ansible/plugins/modules’, u’/u…

---

## [how to convert Template to VM](https://forum.ansible.com/t/how-to-convert-template-to-vm/27031)

<div class="topic-metadata">

**Author:** [@olivier\_pouilly](https://forum.ansible.com/u/olivier_pouilly)\
**Replies:** 2\
**Last updated:** [March 20, 2018, 4:16pm UTC](https://forum.ansible.com/t/how-to-convert-template-to-vm/27031 "2018-03-20T16:16:55Z")

</div>

Hi all, I tried to convert my template to a VM. I created a playbook to do that but when I play the playbook it, It don’t work: hosts: all gather\_facts: false connection: local tasks: name: Create a VM template v…

---

## [running a command & remotely](https://forum.ansible.com/t/running-a-command-remotely/27053)

<div class="topic-metadata">

**Author:** [@Abhijit\_Chakraborty](https://forum.ansible.com/u/Abhijit_Chakraborty)\
**Replies:** 2\
**Last updated:** [March 20, 2018, 1:26pm UTC](https://forum.ansible.com/t/running-a-command-remotely/27053 "2018-03-20T13:26:51Z")

</div>

Hi all, I am running a command using the command module. This is how it is - name: start command: /opt/eate/bin/script.pl \>/dev/null & Now the problem is , after running the command, its not able to come out and i ha…

---

## [Starting AppDynamics with play](https://forum.ansible.com/t/starting-appdynamics-with-play/26983)

<div class="topic-metadata">

**Author:** [@Patrick\_Hunt](https://forum.ansible.com/u/Patrick_Hunt)\
**Replies:** 3\
**Last updated:** [March 20, 2018, 1:16pm UTC](https://forum.ansible.com/t/starting-appdynamics-with-play/26983 "2018-03-20T13:16:49Z")

</div>

I have a play that is fairly simple, to start AppDynamics. I am able to start/stop each part as needed, except a portion called EUM (End User Monitoring). My test play looks like: \`

---

## [Jumphost + Ansible](https://forum.ansible.com/t/jumphost-ansible/27050)

<div class="topic-metadata">

**Author:** [@Luke\_Baldan](https://forum.ansible.com/u/Luke_Baldan)\
**Replies:** 0\
**Last updated:** [March 20, 2018, 11:45am UTC](https://forum.ansible.com/t/jumphost-ansible/27050 "2018-03-20T11:45:12Z")

</div>

Hi, I’ve started my ansible journey and i am impressed so far. A function i am hoping to utilise is the ability to connect via a jump/bastion host in order to get to my devices i wish to run commands on. The issue is …

---

## [Not able to login to a Router using Ansible](https://forum.ansible.com/t/not-able-to-login-to-a-router-using-ansible/27049)

<div class="topic-metadata">

**Author:** [@Thulasi\_Raman](https://forum.ansible.com/u/Thulasi_Raman)\
**Replies:** 0\
**Last updated:** [March 20, 2018, 8:43am UTC](https://forum.ansible.com/t/not-able-to-login-to-a-router-using-ansible/27049 "2018-03-20T08:43:26Z")

</div>

Hi, Can someone please help to find out the issue here. I am trying to login to a non-cisco Router but the socket path is always returning as None I tried with same playbook,hostfile for a nexus device and it works fin…

---

## [Win\_service name option contains non permitted characters and doesn't allow escaping](https://forum.ansible.com/t/win-service-name-option-contains-non-permitted-characters-and-doesnt-allow-escaping/27040)

<div class="topic-metadata">

**Author:** [@bob1](https://forum.ansible.com/u/bob1)\
**Replies:** 3\
**Last updated:** [March 19, 2018, 8:20pm UTC](https://forum.ansible.com/t/win-service-name-option-contains-non-permitted-characters-and-doesnt-allow-escaping/27040 "2018-03-19T20:20:26Z")

</div>

Hi All I am trying to use thw win\_service module to start a service. My issue is the service name contains non-valid characters and I dont seem to be able escape the name correctly. The service name is this:- “SAS \[co…

---

## [How to login to Avocent servers and run ansible playbooks on the Network devices which are connected serially](https://forum.ansible.com/t/how-to-login-to-avocent-servers-and-run-ansible-playbooks-on-the-network-devices-which-are-connected-serially/25515)

<div class="topic-metadata">

**Author:** [@Mini](https://forum.ansible.com/u/Mini)\
**Replies:** 2\
**Last updated:** [March 19, 2018, 7:07pm UTC](https://forum.ansible.com/t/how-to-login-to-avocent-servers-and-run-ansible-playbooks-on-the-network-devices-which-are-connected-serially/25515 "2018-03-19T19:07:31Z")

</div>

I have been redirected from git hub issue list to here. Could someone please take a look and suggest: I am trying to work on a scenario in which I want to access Cisco and Juniper network devices and run my ansible netw…

---

## [Sending email notifications to group once playbook is executed](https://forum.ansible.com/t/sending-email-notifications-to-group-once-playbook-is-executed/27023)

<div class="topic-metadata">

**Author:** [@Balaji1](https://forum.ansible.com/u/Balaji1)\
**Replies:** 2\
**Last updated:** [March 19, 2018, 6:25pm UTC](https://forum.ansible.com/t/sending-email-notifications-to-group-once-playbook-is-executed/27023 "2018-03-19T18:25:03Z")

</div>

Hello Everyone…! I have a scenario where I have to send an email to a group of people based on playbook completion. Site.yml - \> master playbook consists of all individual playbook. app1.yml app2.yml app3.yml host …

---

## [How to run a symbolic link by module command?](https://forum.ansible.com/t/how-to-run-a-symbolic-link-by-module-command/27042)

<div class="topic-metadata">

**Author:** [@CHEN\_YANQING](https://forum.ansible.com/u/CHEN_YANQING)\
**Replies:** 1\
**Last updated:** [March 19, 2018, 5:00pm UTC](https://forum.ansible.com/t/how-to-run-a-symbolic-link-by-module-command/27042 "2018-03-19T17:00:12Z")

</div>

Hello, As a beginner of ansible, I tried to run my script test.sh (which is a symbolic link) by le bloc in my playbook: hosts: my\_host become: true become\_user: root tasks: name: my test command: /xxx/xx/test.sh B…

---

## [ansible download project from gitlib](https://forum.ansible.com/t/ansible-download-project-from-gitlib/27039)

<div class="topic-metadata">

**Author:** [@Bill\_Nolf](https://forum.ansible.com/u/Bill_Nolf)\
**Replies:** 1\
**Last updated:** [March 19, 2018, 4:11pm UTC](https://forum.ansible.com/t/ansible-download-project-from-gitlib/27039 "2018-03-19T16:11:29Z")

</div>

I have a project in gitlab that contains config files for an application. I need to download the files using ansible. I don’t really want to download each file, because they are in different directory and they may change…

---

## [I would like 'vagrant provision' to save my ansible\_python\_interpreter setting in the inventory file](https://forum.ansible.com/t/i-would-like-vagrant-provision-to-save-my-ansible-python-interpreter-setting-in-the-inventory-file/27025)

<div class="topic-metadata">

**Author:** [@Tim\_Stewart](https://forum.ansible.com/u/Tim_Stewart)\
**Replies:** 2\
**Last updated:** [March 19, 2018, 2:41pm UTC](https://forum.ansible.com/t/i-would-like-vagrant-provision-to-save-my-ansible-python-interpreter-setting-in-the-inventory-file/27025 "2018-03-19T14:41:54Z")

</div>

Ansible Version: \` $ ansible --version ansible 2.4.3.0 config file = /home/tim/AnsibleFun/ansible.cfg configured module search path = \[u’/home/tim/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’\] a…

---

## [Add new user and add to existing group](https://forum.ansible.com/t/add-new-user-and-add-to-existing-group/27036)

<div class="topic-metadata">

**Author:** [@Zeljko\_Dokman](https://forum.ansible.com/u/Zeljko_Dokman)\
**Replies:** 2\
**Last updated:** [March 19, 2018, 12:40pm UTC](https://forum.ansible.com/t/add-new-user-and-add-to-existing-group/27036 "2018-03-19T12:40:53Z")

</div>

Hi, Can some one help me with my playbook for adding new user and adding that user to existing groups… Playbook… \` hosts: “{{ target }}” become: yes become\_user: root become\_method: sudo gather\_facts: no tasks: …

---

## [Find an entry in a file and email the file if the entry IS NOT found  - Tower](https://forum.ansible.com/t/find-an-entry-in-a-file-and-email-the-file-if-the-entry-is-not-found-tower/27037)

<div class="topic-metadata">

**Author:** [@scott.fosberry](https://forum.ansible.com/u/scott.fosberry)\
**Replies:** 1\
**Last updated:** [March 19, 2018, 12:25pm UTC](https://forum.ansible.com/t/find-an-entry-in-a-file-and-email-the-file-if-the-entry-is-not-found-tower/27037 "2018-03-19T12:25:58Z")

</div>

Hi, I am fairly new to Ansible, so would appreciate some help. I am trying to look in a .csv or .txt file. I need to email it when the entry ‘0 rows’ does not appear. Basically the file has been produced by a software v…

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

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