# Ansible Project

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

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

**Page:** 148

---

## [How to skip the playbook based on a condition](https://forum.ansible.com/t/how-to-skip-the-playbook-based-on-a-condition/32052)

<div class="topic-metadata">

**Author:** [@Anand\_Solomon](https://forum.ansible.com/u/Anand_Solomon)\
**Replies:** 2\
**Last updated:** [January 24, 2020, 9:04pm UTC](https://forum.ansible.com/t/how-to-skip-the-playbook-based-on-a-condition/32052 "2020-01-24T21:04:43Z")

</div>

Hi, I basically wanted to skip the remaining of the playbook if a file exists name: Check if the file exists stat: path: /home/ansible/dbname/sql/file.sql register: optional\_file debug: msg: “File Exists” whe…

---

## [Unable to connect to Windows 2016 over HTTPS using self signed certificates;  using ansible securely in a mixed active directory environment](https://forum.ansible.com/t/unable-to-connect-to-windows-2016-over-https-using-self-signed-certificates-using-ansible-securely-in-a-mixed-active-directory-environment/32050)

<div class="topic-metadata">

**Author:** [@Dan\_Hebert](https://forum.ansible.com/u/Dan_Hebert)\
**Replies:** 0\
**Last updated:** [January 24, 2020, 5:34pm UTC](https://forum.ansible.com/t/unable-to-connect-to-windows-2016-over-https-using-self-signed-certificates-using-ansible-securely-in-a-mixed-active-directory-environment/32050 "2020-01-24T17:34:36Z")

</div>

Good afternoon, I have been trying to get ansible working over a Windows 2016 HTTPS listener with encryption using TLS encryption and self-signed certificate authentication. User authentication over HTTP is not going t…

---

## [I have Ansible and Jenkins installed on Different Servers how can i configure both](https://forum.ansible.com/t/i-have-ansible-and-jenkins-installed-on-different-servers-how-can-i-configure-both/32035)

<div class="topic-metadata">

**Author:** [@Sai\_Prasha](https://forum.ansible.com/u/Sai_Prasha)\
**Replies:** 1\
**Last updated:** [January 24, 2020, 5:31pm UTC](https://forum.ansible.com/t/i-have-ansible-and-jenkins-installed-on-different-servers-how-can-i-configure-both/32035 "2020-01-24T17:31:30Z")

</div>

I have Ansible and Jenkins on Windows but on different servers how can i establish a connection between this two to trigger a playbook based on inventory files What is the inventory path to be given? My inventory file …

---

## [How to a activate ONOS apps by ansible-playbook?](https://forum.ansible.com/t/how-to-a-activate-onos-apps-by-ansible-playbook/32049)

<div class="topic-metadata">

**Author:** [@Ivy\_Min](https://forum.ansible.com/u/Ivy_Min)\
**Replies:** 0\
**Last updated:** [January 24, 2020, 4:51pm UTC](https://forum.ansible.com/t/how-to-a-activate-onos-apps-by-ansible-playbook/32049 "2020-01-24T16:51:37Z")

</div>

My ansible-playbook version is latest. I try to activate ONOS service in docker container by running ansible-playbook. I tried some ways. However they all failed. --- - hosts: local tasks: - name: Create a onos-a co…

---

## [Encrypted Password in Playbook](https://forum.ansible.com/t/encrypted-password-in-playbook/32016)

<div class="topic-metadata">

**Author:** [@Srinivas\_Naram](https://forum.ansible.com/u/Srinivas_Naram)\
**Replies:** 8\
**Last updated:** [January 24, 2020, 11:51am UTC](https://forum.ansible.com/t/encrypted-password-in-playbook/32016 "2020-01-24T11:51:39Z")

</div>

Hi All, I am trying to use Ansible vault encrypted password in my playbook and don’t see clear documentation on how to use it. Here is what I did so far - In ansible.cfg I have set the ‘vault\_password\_file’. I have a…

---

## [Help on using the wen condition](https://forum.ansible.com/t/help-on-using-the-wen-condition/32047)

<div class="topic-metadata">

**Author:** [@Daniel\_Nanboe](https://forum.ansible.com/u/Daniel_Nanboe)\
**Replies:** 0\
**Last updated:** [January 24, 2020, 11:21am UTC](https://forum.ansible.com/t/help-on-using-the-wen-condition/32047 "2020-01-24T11:21:35Z")

</div>

I have a list of users defined as variable on my inventory. I want to create a task that checks if for each user exists a file in a folder if it exists will run a task if not will run an other task. I have a task that a…

---

## [Printing only stdout\_lines with command + with\_items](https://forum.ansible.com/t/printing-only-stdout-lines-with-command-with-items/32043)

<div class="topic-metadata">

**Author:** [@Nicholas\_Yue](https://forum.ansible.com/u/Nicholas_Yue)\
**Replies:** 1\
**Last updated:** [January 24, 2020, 5:09am UTC](https://forum.ansible.com/t/printing-only-stdout-lines-with-command-with-items/32043 "2020-01-24T05:09:58Z")

</div>

Hi, I have the following ansible script $ cat generated-head-node.yaml hosts: all tasks: name: Run multiple commands command: “{{item}}” with\_items: pwd ls register: out debug: msg=“{{ item.stdout\_lines }}” with…

---

## [Playbook is unable to install specified KB number updates but shows OK  in playbook recap](https://forum.ansible.com/t/playbook-is-unable-to-install-specified-kb-number-updates-but-shows-ok-in-playbook-recap/32041)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 6\
**Last updated:** [January 24, 2020, 1:45am UTC](https://forum.ansible.com/t/playbook-is-unable-to-install-specified-kb-number-updates-but-shows-ok-in-playbook-recap/32041 "2020-01-24T01:45:51Z")

</div>

KB number upgrades/ security patches are not installing? Playbook tasks: name: Install all security, critical, and rollup updates without a scheduled task win\_updates: category\_names: Upgrades SecurityUpdates whit…

---

## [Playbook is stuck, is it bug ?](https://forum.ansible.com/t/playbook-is-stuck-is-it-bug/32044)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 1\
**Last updated:** [January 24, 2020, 1:32am UTC](https://forum.ansible.com/t/playbook-is-stuck-is-it-bug/32044 "2020-01-24T01:32:32Z")

</div>

Hello guys, My playbook seems to be stuck for 5 mins for 1 server. Is it bug ? tasks: name: Search and download Windows updates without installing them win\_updates: category\_names: SecurityUpdates CriticalUpdates U…

---

## [Any updates on this, please help on my POST? https://groups.google.com/forum/#!topic/ansible-project/vVYN7qsRn7U](https://forum.ansible.com/t/any-updates-on-this-please-help-on-my-post-https-groups-google-com-forum-topic-ansible-project-vvyn7qsrn7u/32042)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 1\
**Last updated:** [January 23, 2020, 8:25pm UTC](https://forum.ansible.com/t/any-updates-on-this-please-help-on-my-post-https-groups-google-com-forum-topic-ansible-project-vvyn7qsrn7u/32042 "2020-01-23T20:25:35Z")

</div>

Any updates on this, please help on my POST? https://groups.google.com/forum/#!topic/ansible-project/vVYN7qsRn7U

---

## [Filtering a complex list of dictionaries into another list of dictionaries in an efficient way](https://forum.ansible.com/t/filtering-a-complex-list-of-dictionaries-into-another-list-of-dictionaries-in-an-efficient-way/32029)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 4\
**Last updated:** [January 23, 2020, 7:42pm UTC](https://forum.ansible.com/t/filtering-a-complex-list-of-dictionaries-into-another-list-of-dictionaries-in-an-efficient-way/32029 "2020-01-23T19:42:31Z")

</div>

ansible 2.9.4 Let’s assume the following list of dictionaries: \` list: key1: ‘abc’ ‘def’ key2: ‘ghi’ key3: ‘jkl’ key1: ‘mno’ ‘pqr’ key3: ‘stu’ key4: ‘dfg’ key1: ‘vwx’ ‘yza’ key3: ‘okl’ key4: ‘azel’ \` The goa…

---

## [How to fix this ssh-keyscan problem in my playbook?](https://forum.ansible.com/t/how-to-fix-this-ssh-keyscan-problem-in-my-playbook/32033)

<div class="topic-metadata">

**Author:** [@RobertF](https://forum.ansible.com/u/RobertF)\
**Replies:** 2\
**Last updated:** [January 23, 2020, 7:32pm UTC](https://forum.ansible.com/t/how-to-fix-this-ssh-keyscan-problem-in-my-playbook/32033 "2020-01-23T19:32:40Z")

</div>

I have an Ansible playbook for provisioning servers. After the server is provisioned, I want to remove the old FQDN and/or hostname alias for that server from my local SSH known\_hosts file, pause until the server is up, …

---

## [turn on boto debugging in Ansible (~/.boto)](https://forum.ansible.com/t/turn-on-boto-debugging-in-ansible-boto/21562)

<div class="topic-metadata">

**Author:** [@cosbug](https://forum.ansible.com/u/cosbug)\
**Replies:** 2\
**Last updated:** [January 23, 2020, 12:52pm UTC](https://forum.ansible.com/t/turn-on-boto-debugging-in-ansible-boto/21562 "2020-01-23T12:52:44Z")

</div>

Hi All, Is there any way to turn on boto debugging for Ansible playbooks? In user home directory I created .boto file with contents: \[Boto\] debug = 2 But Ansible doesn’t pick it up though the python script which invo…

---

## [authorized\_key : How to put default value or bypass it](https://forum.ansible.com/t/authorized-key-how-to-put-default-value-or-bypass-it/32036)

<div class="topic-metadata">

**Author:** [@Hieronymus1](https://forum.ansible.com/u/Hieronymus1)\
**Replies:** 2\
**Last updated:** [January 23, 2020, 12:40pm UTC](https://forum.ansible.com/t/authorized-key-how-to-put-default-value-or-bypass-it/32036 "2020-01-23T12:40:12Z")

</div>

Hi I’m using the authorized\_key module in my ansible user role. As some user aren’t ssh key yet, I would like that by default this key is not created and the task escaped. I’ve seen that the key string is required by …

---

## [ignore -has no attribute](https://forum.ansible.com/t/ignore-has-no-attribute/32037)

<div class="topic-metadata">

**Author:** [@jegansignup](https://forum.ansible.com/u/jegansignup)\
**Replies:** 1\
**Last updated:** [January 23, 2020, 10:58am UTC](https://forum.ansible.com/t/ignore-has-no-attribute/32037 "2020-01-23T10:58:22Z")

</div>

Hello Team, I am parsing register value using debug and using when condition to print particular matching value. While doing that am getting below error. some of the register value doesn’t have “volume\_attachments” vari…

---

## [The List manipulation doesnt work](https://forum.ansible.com/t/the-list-manipulation-doesnt-work/32032)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 2\
**Last updated:** [January 23, 2020, 8:16am UTC](https://forum.ansible.com/t/the-list-manipulation-doesnt-work/32032 "2020-01-23T08:16:48Z")

</div>

Hi Ansible Gurus, I have created a list and from that list i want to prepare some customise list as per my need. But when i execute my playbook i get at last step when i want to see my customised list i get an error . …

---

## [Export in-memory inventory to yml or ini file](https://forum.ansible.com/t/export-in-memory-inventory-to-yml-or-ini-file/32034)

<div class="topic-metadata">

**Author:** [@Mike\_V](https://forum.ansible.com/u/Mike_V)\
**Replies:** 3\
**Last updated:** [January 23, 2020, 2:54am UTC](https://forum.ansible.com/t/export-in-memory-inventory-to-yml-or-ini-file/32034 "2020-01-23T02:54:19Z")

</div>

I have a playbook that generates in-memory inventory. The hosts are part of multiple groups. Is there a module or easy way to export the in-memory inventory to an output file?

---

## [Add host using add\_host not taking effect](https://forum.ansible.com/t/add-host-using-add-host-not-taking-effect/32026)

<div class="topic-metadata">

**Author:** [@Punit\_Jain](https://forum.ansible.com/u/Punit_Jain)\
**Replies:** 5\
**Last updated:** [January 22, 2020, 8:09pm UTC](https://forum.ansible.com/t/add-host-using-add-host-not-taking-effect/32026 "2020-01-22T20:09:06Z")

</div>

Hi, I am doing a very straight forward testing of adding a new host dynamically.

---

## [How to specify the user home directory dynamatically with /home/{{ 'echo{$USER}' }}/sub\_dir for copying files with Ansible copy module ?](https://forum.ansible.com/t/how-to-specify-the-user-home-directory-dynamatically-with-home-echo-user-sub-dir-for-copying-files-with-ansible-copy-module/32022)

<div class="topic-metadata">

**Author:** [@FRANK\_L](https://forum.ansible.com/u/FRANK_L)\
**Replies:** 4\
**Last updated:** [January 22, 2020, 4:33pm UTC](https://forum.ansible.com/t/how-to-specify-the-user-home-directory-dynamatically-with-home-echo-user-sub-dir-for-copying-files-with-ansible-copy-module/32022 "2020-01-22T16:33:30Z")

</div>

Hi, I would like to use git for managing Ansible playbooks for version control on an admin server in GCP. So the idea is this: each user in the admin group to run the playbooks pulled from the github ino their repo fro…

---

## [Ansible passwordless login not working](https://forum.ansible.com/t/ansible-passwordless-login-not-working/31967)

<div class="topic-metadata">

**Author:** [@Yehuda\_Pinhas](https://forum.ansible.com/u/Yehuda_Pinhas)\
**Replies:** 23\
**Last updated:** [January 22, 2020, 4:10pm UTC](https://forum.ansible.com/t/ansible-passwordless-login-not-working/31967 "2020-01-22T16:10:58Z")

</div>

Hi!! Here is my code on my /etc/ansible/roles/new\_vlan/vars/new\_vlan\_vars.yml file: ansible\_ssh\_common\_args: -o StrictHostKeyChecking=no -o UserKnownHostsFile=~/.ssh/known\_hosts ansible\_user: ansible ansible\_pass: an…

---

## [Update hostname based on IP](https://forum.ansible.com/t/update-hostname-based-on-ip/32023)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [January 22, 2020, 2:10pm UTC](https://forum.ansible.com/t/update-hostname-based-on-ip/32023 "2020-01-22T14:10:30Z")

</div>

Hi, I would like to update hostname based on server IP. In my ansible host, I have a group that includes 5 servers IP, for each server, I will need to define hostname name based on the IP. \[web server\] 130.1.1.1 130…

---

## [ansible playbook error](https://forum.ansible.com/t/ansible-playbook-error/32024)

<div class="topic-metadata">

**Author:** [@Sandy\_Hung](https://forum.ansible.com/u/Sandy_Hung)\
**Replies:** 1\
**Last updated:** [January 22, 2020, 9:14am UTC](https://forum.ansible.com/t/ansible-playbook-error/32024 "2020-01-22T09:14:56Z")

</div>

ERROR! unexpected parameter type in action: \<class ‘ansible.parsing.yaml.objects.AnsibleSequence’\> The error appears to be in ‘/home/sandy/phpldapadmin.yml’: line 8, column 6, but may be elsewhere in the file depending…

---

## [Flatpak not installing via playbook](https://forum.ansible.com/t/flatpak-not-installing-via-playbook/32012)

<div class="topic-metadata">

**Author:** [@ecrosby](https://forum.ansible.com/u/ecrosby)\
**Replies:** 1\
**Last updated:** [January 22, 2020, 12:06am UTC](https://forum.ansible.com/t/flatpak-not-installing-via-playbook/32012 "2020-01-22T00:06:30Z")

</div>

The following playbook doesn’t seem to work: - hosts: localhost tasks: - name: Enable flathub repo become: yes command: flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - name…

---

## [using when inside and outside a loop](https://forum.ansible.com/t/using-when-inside-and-outside-a-loop/32021)

<div class="topic-metadata">

**Author:** [@Spiro\_Mitsialis](https://forum.ansible.com/u/Spiro_Mitsialis)\
**Replies:** 1\
**Last updated:** [January 21, 2020, 9:09pm UTC](https://forum.ansible.com/t/using-when-inside-and-outside-a-loop/32021 "2020-01-21T21:09:33Z")

</div>

I want to do something like this below: \` name: Create Simple list from Connection Dict set\_fact: connections: “{{ connections | default() + \[ { ‘switchid’: item.id, ‘connectionid’: item.connections\[0\].id } \] }}” …

---

## [ansible expect module not working with openshift installer prompt](https://forum.ansible.com/t/ansible-expect-module-not-working-with-openshift-installer-prompt/32001)

<div class="topic-metadata">

**Author:** [@vk11](https://forum.ansible.com/u/vk11)\
**Replies:** 3\
**Last updated:** [January 21, 2020, 3:58pm UTC](https://forum.ansible.com/t/ansible-expect-module-not-working-with-openshift-installer-prompt/32001 "2020-01-21T15:58:07Z")

</div>

I have created an ansible task to generate openshift config from openshift installer. When done manually, install config gets generated successfully. It asks for user input like shown below: \` ? SSH Public Key \[Use arr…

---

## [Can't contact LDAP server](https://forum.ansible.com/t/cant-contact-ldap-server/32015)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 1\
**Last updated:** [January 21, 2020, 3:20pm UTC](https://forum.ansible.com/t/cant-contact-ldap-server/32015 "2020-01-21T15:20:21Z")

</div>

Dear All: I run command ldapsearch not contact LDAP server but try open port 636 can’t open it please help me thanks. ldapsearch -d 9 -D “cn=test,ou=users,dc=xxxx,dc=com”\\ -w password -b “dc=xxx,dc=com” -H “ldaps://l…

---

## [\[all:vars\] ansible\_become\_method in host inventory file](https://forum.ansible.com/t/all-vars-ansible-become-method-in-host-inventory-file/32020)

<div class="topic-metadata">

**Author:** [@Steven\_Peckins](https://forum.ansible.com/u/Steven_Peckins)\
**Replies:** 0\
**Last updated:** [January 21, 2020, 3:12pm UTC](https://forum.ansible.com/t/all-vars-ansible-become-method-in-host-inventory-file/32020 "2020-01-21T15:12:04Z")

</div>

I developed some playbooks using version 2.7 (I think). Last week I went to run them on what is now 2.9.2, and it seems to fail to pick up the become method from the inventory file like it used to, instead defaulting to …

---

## [How can I connect to Windows Server using WinRM without password(like linux ssh authentication)?](https://forum.ansible.com/t/how-can-i-connect-to-windows-server-using-winrm-without-password-like-linux-ssh-authentication/31989)

<div class="topic-metadata">

**Author:** [@Jiwoong\_Lee](https://forum.ansible.com/u/Jiwoong_Lee)\
**Replies:** 4\
**Last updated:** [January 21, 2020, 2:09pm UTC](https://forum.ansible.com/t/how-can-i-connect-to-windows-server-using-winrm-without-password-like-linux-ssh-authentication/31989 "2020-01-21T14:09:57Z")

</div>

Hi, all. Now I can connect to Linux server without password, It just using SSH key. And I need to connect Windows Server using WinRM but it need to Windows account and password. How can I connect to Windows Server wit…

---

## [Ansible and Jenkins Integration](https://forum.ansible.com/t/ansible-and-jenkins-integration/32019)

<div class="topic-metadata">

**Author:** [@Sai\_Prasha](https://forum.ansible.com/u/Sai_Prasha)\
**Replies:** 1\
**Last updated:** [January 21, 2020, 12:23pm UTC](https://forum.ansible.com/t/ansible-and-jenkins-integration/32019 "2020-01-21T12:23:50Z")

</div>

Is it mandatory to have jenkins and Ansible to be installed on Same Server? I have Jenkins server installed on windows and ansible installed on Linux machine ,how to integrate Anisble and Jenkins?

---

## [Ansible import playbooks with openstack error](https://forum.ansible.com/t/ansible-import-playbooks-with-openstack-error/32017)

<div class="topic-metadata">

**Author:** [@sv1](https://forum.ansible.com/u/sv1)\
**Replies:** 2\
**Last updated:** [January 21, 2020, 10:53am UTC](https://forum.ansible.com/t/ansible-import-playbooks-with-openstack-error/32017 "2020-01-21T10:53:54Z")

</div>

Hi Experts, Im very new to ansible and trying to set a small project by executing the scripts. My anisble --version is 2.2.1.0 Python 2.7.12+ and open stack version is v.3.0 I have a site.yaml file as below site.ya…

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

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