# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=232

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

**Page:** 233

---

## [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.

---

## [State file](https://forum.ansible.com/t/state-file/32028)

<div class="topic-metadata">

**Author:** [@Anand\_Solomon](https://forum.ansible.com/u/Anand_Solomon)\
**Replies:** 1\
**Last updated:** [January 22, 2020, 6:01pm UTC](https://forum.ansible.com/t/state-file/32028 "2020-01-22T18:01:33Z")

</div>

Is there a state file concept in Ansible? Can we maintain state of whats been run? Thanks Anand Solomon

---

## [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…

---

## [Why not environment variable to store vault secrets ?](https://forum.ansible.com/t/why-not-environment-variable-to-store-vault-secrets/31602)

<div class="topic-metadata">

**Author:** [@Gabriel\_Lewertowski](https://forum.ansible.com/u/Gabriel_Lewertowski)\
**Replies:** 2\
**Last updated:** [January 22, 2020, 12:16pm UTC](https://forum.ansible.com/t/why-not-environment-variable-to-store-vault-secrets/31602 "2020-01-22T12:16:57Z")

</div>

Hi ! I wrote the PR 64383 to add an option for using environment to store vault secrets. The PR was rejected, I would like to know more about why storing secrets in environment is discouraged. If the variable is export…

---

## [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…

---

## [ansible error message](https://forum.ansible.com/t/ansible-error-message/32018)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 4\
**Last updated:** [January 21, 2020, 10:09am UTC](https://forum.ansible.com/t/ansible-error-message/32018 "2020-01-21T10:09:01Z")

</div>

Dear All: I don’t know this error is? can hlep me thanks. ERROR! conflicting action statements: lineinfile, roles The error appears to be in ‘/home/sandy/phpldapadmin.yml’: line 54, column 6, but may be elsewhere in…

---

## [New Ansible release 2.9.4](https://forum.ansible.com/t/new-ansible-release-2-9-4/32014)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [January 20, 2020, 10:58pm UTC](https://forum.ansible.com/t/new-ansible-release-2-9-4/32014 "2020-01-20T22:58:53Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.9.4 is now available! This release contains a single bugfix to a regression in the yum module, introduced in 2.9.3. How do you get it?

---

## [New Ansible release 2.9.4](https://forum.ansible.com/t/new-ansible-release-2-9-4/32013)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [January 20, 2020, 10:58pm UTC](https://forum.ansible.com/t/new-ansible-release-2-9-4/32013 "2020-01-20T22:58:31Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.9.4 is now available! This release contains a single bugfix to a regression in the yum module, introduced in 2.9.3. How do you get it?

---

## [awx 9.1.0 to 9.1.1 "awx-manage migrate" fails](https://forum.ansible.com/t/awx-9-1-0-to-9-1-1-awx-manage-migrate-fails/31997)

<div class="topic-metadata">

**Author:** [@Nik\_Tetteh-Lartey](https://forum.ansible.com/u/Nik_Tetteh-Lartey)\
**Replies:** 1\
**Last updated:** [January 20, 2020, 8:51pm UTC](https://forum.ansible.com/t/awx-9-1-0-to-9-1-1-awx-manage-migrate-fails/31997 "2020-01-20T20:51:41Z")

</div>

Hi Team, Thought I’d try out the new AWX 9.1.1 release. tried options a) install 9.1.1 fresh everything works, but when I try to initialise with a 9.1.0 backup data “psql\_sql\_dump\_data” it fails after “awx-manage migr…

---

## [How to read binary file from ansible master to use it in k8s module](https://forum.ansible.com/t/how-to-read-binary-file-from-ansible-master-to-use-it-in-k8s-module/32006)

<div class="topic-metadata">

**Author:** [@Jan\_Burian](https://forum.ansible.com/u/Jan_Burian)\
**Replies:** 4\
**Last updated:** [January 20, 2020, 6:41pm UTC](https://forum.ansible.com/t/how-to-read-binary-file-from-ansible-master-to-use-it-in-k8s-module/32006 "2020-01-20T18:41:44Z")

</div>

Hi, I’m trying to read binary file from ansible master (localhost) to use it in k8s module. The task looks like this: \` name: Create ConfigMap with keytab k8s: host: “{{ api\_host }}” api\_version: v1 kind: Config…

---

## [How to use multiple jumpbox on AWS](https://forum.ansible.com/t/how-to-use-multiple-jumpbox-on-aws/32010)

<div class="topic-metadata">

**Author:** [@Blacksensei](https://forum.ansible.com/u/Blacksensei)\
**Replies:** 0\
**Last updated:** [January 20, 2020, 6:33pm UTC](https://forum.ansible.com/t/how-to-use-multiple-jumpbox-on-aws/32010 "2020-01-20T18:33:41Z")

</div>

Hi Team,

---

## [Create file depending on the network](https://forum.ansible.com/t/create-file-depending-on-the-network/32009)

<div class="topic-metadata">

**Author:** [@xxmlud\_gnu](https://forum.ansible.com/u/xxmlud_gnu)\
**Replies:** 0\
**Last updated:** [January 20, 2020, 6:33pm UTC](https://forum.ansible.com/t/create-file-depending-on-the-network/32009 "2020-01-20T18:33:21Z")

</div>

Hi!, I need help. I want to deploy some file with some modifications. The deployment policy is that depending on the network the server belongs to, it will deploy some files or others. I can’t compare the “ansible\_fact…

---

## [How to setup multiple jumpbox with Ansible AWX](https://forum.ansible.com/t/how-to-setup-multiple-jumpbox-with-ansible-awx/32008)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [January 20, 2020, 5:35pm UTC](https://forum.ansible.com/t/how-to-setup-multiple-jumpbox-with-ansible-awx/32008 "2020-01-20T17:35:09Z")

</div>

This list is for Ansible. Use the AWX list for your AWX questions.

---

## [tower\_wait\_job module is not working](https://forum.ansible.com/t/tower-wait-job-module-is-not-working/31998)

<div class="topic-metadata">

**Author:** [@vinod93pop](https://forum.ansible.com/u/vinod93pop)\
**Replies:** 1\
**Last updated:** [January 20, 2020, 5:27pm UTC](https://forum.ansible.com/t/tower-wait-job-module-is-not-working/31998 "2020-01-20T17:27:00Z")

</div>

Hi Folks, I got an issue with tower\_job\_wait module in anisble tower. i use to launch an other template and wait for it to complete. template has been triggered and executed successfully but once after that wait job get…

---

## [loop and pass variables from vars\_files to task command](https://forum.ansible.com/t/loop-and-pass-variables-from-vars-files-to-task-command/32007)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [January 20, 2020, 5:25pm UTC](https://forum.ansible.com/t/loop-and-pass-variables-from-vars-files-to-task-command/32007 "2020-01-20T17:25:14Z")

</div>

This (formatting mess, you should post plain text) is not a correct variable file. What you have here is a list, but this list need to but assigned to a variable for it to be used.

---

## [unable to install vim plugin via shell module](https://forum.ansible.com/t/unable-to-install-vim-plugin-via-shell-module/31988)

<div class="topic-metadata">

**Author:** [@Eric\_Chang](https://forum.ansible.com/u/Eric_Chang)\
**Replies:** 1\
**Last updated:** [January 20, 2020, 5:20pm UTC](https://forum.ansible.com/t/unable-to-install-vim-plugin-via-shell-module/31988 "2020-01-20T17:20:45Z")

</div>

I want to install vim plugins with ansible shell module the task is quite simple as follow name: install vim vundle plugin shell: “vim +PluginInstall +qall” but the playbook will hang at this task like forever. e…

---

## [Calling callback plugin on a specific task](https://forum.ansible.com/t/calling-callback-plugin-on-a-specific-task/32005)

<div class="topic-metadata">

**Author:** [@Punit\_Jain](https://forum.ansible.com/u/Punit_Jain)\
**Replies:** 0\
**Last updated:** [January 20, 2020, 3:10pm UTC](https://forum.ansible.com/t/calling-callback-plugin-on-a-specific-task/32005 "2020-01-20T15:10:18Z")

</div>

Hi, Is there a possibility of calling ansible callback plugin on a specific task of a play ? I couldnt find much documentation. Thanks and Regards, Punit

---

## [scm inventory not update to last commit](https://forum.ansible.com/t/scm-inventory-not-update-to-last-commit/32004)

<div class="topic-metadata">

**Author:** [@Chiku](https://forum.ansible.com/u/Chiku)\
**Replies:** 3\
**Last updated:** [January 20, 2020, 3:02pm UTC](https://forum.ansible.com/t/scm-inventory-not-update-to-last-commit/32004 "2020-01-20T15:02:34Z")

</div>

Hello, With version 9.1.1, I created a scm git project dedicated for inventory. Then I created an inventory with this project as source and checked OVERWRITE, OVERWRITE VARIABLES, UPDATE ON LAUNCH. When this git repo …

---

## [openldap for ubuntu](https://forum.ansible.com/t/openldap-for-ubuntu/32002)

<div class="topic-metadata">

**Author:** [@Sandy\_Hung](https://forum.ansible.com/u/Sandy_Hung)\
**Replies:** 7\
**Last updated:** [January 20, 2020, 10:05am UTC](https://forum.ansible.com/t/openldap-for-ubuntu/32002 "2020-01-20T10:05:23Z")

</div>

I have problem run openldap show error message, how to solved this problem thanks. ERROR! conflicting action statements: copy, force The error appears to be in ‘/home/sandy/phpldapadmin.yml’: line 68, column 6, but may …

[Previous page](https://forum.ansible.com/c/archives/31.md?page=231)

[Next page](https://forum.ansible.com/c/archives/31.md?page=233)
