# Archives

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

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

**Page:** 198

---

## [How to copy directory recursively using pattern to remote machine?](https://forum.ansible.com/t/how-to-copy-directory-recursively-using-pattern-to-remote-machine/33062)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 3\
**Last updated:** [June 1, 2020, 3:38pm UTC](https://forum.ansible.com/t/how-to-copy-directory-recursively-using-pattern-to-remote-machine/33062 "2020-06-01T15:38:58Z")

</div>

Hello All, I have got the following playbooks where i am trying to copy directories and all its contents recursively which is present in project repo. For identifying the correct directory, i am using a variable which h…

---

## [How to manage different SSH keys in local Vs AWX deployment](https://forum.ansible.com/t/how-to-manage-different-ssh-keys-in-local-vs-awx-deployment/33060)

<div class="topic-metadata">

**Author:** [@Anurag\_Bhatia](https://forum.ansible.com/u/Anurag_Bhatia)\
**Replies:** 0\
**Last updated:** [May 31, 2020, 7:24pm UTC](https://forum.ansible.com/t/how-to-manage-different-ssh-keys-in-local-vs-awx-deployment/33060 "2020-05-31T19:24:06Z")

</div>

Hello, I was wondering how can one manage inventory seamlessly when SSH keys are referred in those? So say I have an inventory file and it says: \[location1\] vm1 vm2 vm3 \[location1:vars\] ansible\_ssh\_private\_key\_fi…

---

## [loop query](https://forum.ansible.com/t/loop-query/33057)

<div class="topic-metadata">

**Author:** [@kanna3k6](https://forum.ansible.com/u/kanna3k6)\
**Replies:** 3\
**Last updated:** [May 30, 2020, 8:01pm UTC](https://forum.ansible.com/t/loop-query/33057 "2020-05-30T20:01:55Z")

</div>

Hi Team, Recently i came to know that with.list is getting retired , so what it is the replacement of it. For eg using the filesystem module i need to format the list of disc please let me know which format is correct …

---

## [How to over come the password prompts while installing packages](https://forum.ansible.com/t/how-to-over-come-the-password-prompts-while-installing-packages/32894)

<div class="topic-metadata">

**Author:** [@jayanth\_reddy](https://forum.ansible.com/u/jayanth_reddy)\
**Replies:** 2\
**Last updated:** [May 30, 2020, 6:07pm UTC](https://forum.ansible.com/t/how-to-over-come-the-password-prompts-while-installing-packages/32894 "2020-05-30T18:07:14Z")

</div>

Hello, Hope you are doing safe and well. While I’m running apt-get install mythtv-database package I’m getting one pop-up screen (as attached)where I need to enter my database password. How can I overcome that using An…

---

## [Unable to run command on windows. Please explain!](https://forum.ansible.com/t/unable-to-run-command-on-windows-please-explain/33056)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 1\
**Last updated:** [May 30, 2020, 5:45am UTC](https://forum.ansible.com/t/unable-to-run-command-on-windows-please-explain/33056 "2020-05-30T05:45:36Z")

</div>

Hi, I am unable to run command and throws an error. What am I doing wrong? Please explain! Thanks “ansible\_facts”: { “discovered\_interpreter\_python”: “/usr/bin/python” }, “changed”: false, “module\_stderr”: "Exceptio…

---

## [ansible-base 2.10 beta 1 delayed](https://forum.ansible.com/t/ansible-base-2-10-beta-1-delayed/33055)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [May 29, 2020, 9:23pm UTC](https://forum.ansible.com/t/ansible-base-2-10-beta-1-delayed/33055 "2020-05-29T21:23:10Z")

</div>

Hi all, The release of ansible-base 2.10 beta 1 (and the associated freeze) will be delayed by two weeks to Monday, June 15. There are a few features and infrastructure bits we want to make sure are included that just a…

---

## [reuse of paramter value inside configuration file](https://forum.ansible.com/t/reuse-of-paramter-value-inside-configuration-file/33054)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [May 29, 2020, 8:50pm UTC](https://forum.ansible.com/t/reuse-of-paramter-value-inside-configuration-file/33054 "2020-05-29T20:50:09Z")

</div>

Hi, I’m running a playbook that create a user on remote server and also, generate keytab file for that user based on domain properties. I have a configuration file that holds the username , uid and some other informati…

---

## [Executing a role dependency on all hosts in a list before executing main role](https://forum.ansible.com/t/executing-a-role-dependency-on-all-hosts-in-a-list-before-executing-main-role/33053)

<div class="topic-metadata">

**Author:** [@quaffles](https://forum.ansible.com/u/quaffles)\
**Replies:** 0\
**Last updated:** [May 29, 2020, 8:10pm UTC](https://forum.ansible.com/t/executing-a-role-dependency-on-all-hosts-in-a-list-before-executing-main-role/33053 "2020-05-29T20:10:15Z")

</div>

I’m relatively new to Ansible and I have a question about role dependencies. Is it possible to have a dependency execute on all hosts in a hostList before proceeding to perform the tasks of the given role Just a sudo c…

---

## [Using get\_url or uri - substitute for curl?](https://forum.ansible.com/t/using-get-url-or-uri-substitute-for-curl/33042)

<div class="topic-metadata">

**Author:** [@Bill\_Biker](https://forum.ansible.com/u/Bill_Biker)\
**Replies:** 1\
**Last updated:** [May 29, 2020, 5:33pm UTC](https://forum.ansible.com/t/using-get-url-or-uri-substitute-for-curl/33042 "2020-05-29T17:33:49Z")

</div>

Hello, I have been searching for a way to use ansible to find a file on a remote host that is accessible via http. I have a bash script that uses curl to connect to the http addr, and look for a \*.iso file. If it find…

---

## [Parsing results](https://forum.ansible.com/t/parsing-results/33023)

<div class="topic-metadata">

**Author:** [@Andrew\_Morgan](https://forum.ansible.com/u/Andrew_Morgan)\
**Replies:** 8\
**Last updated:** [May 29, 2020, 5:19pm UTC](https://forum.ansible.com/t/parsing-results/33023 "2020-05-29T17:19:38Z")

</div>

Hello All, I have a script below that will get the instance ID and the subnet ID and then out put the information. I am using the module ec2\_instance\_info https://docs.ansible.com/ansible/latest/modules/ec2\_instance\_inf…

---

## [Cannot run playbooks on AWX](https://forum.ansible.com/t/cannot-run-playbooks-on-awx/33050)

<div class="topic-metadata">

**Author:** [@Dieye\_Pape\_Doudou](https://forum.ansible.com/u/Dieye_Pape_Doudou)\
**Replies:** 2\
**Last updated:** [May 29, 2020, 1:33pm UTC](https://forum.ansible.com/t/cannot-run-playbooks-on-awx/33050 "2020-05-29T13:33:30Z")

</div>

Hello, i’am a new user AWX ! I developed playbooks who runs very well in my local server . I decided to test them on AWX. I have an errror when i run the script in AWX. Can someone help me please to reslove this issue…

---

## [How do the migrations work?](https://forum.ansible.com/t/how-do-the-migrations-work/33046)

<div class="topic-metadata">

**Author:** [@Onno](https://forum.ansible.com/u/Onno)\
**Replies:** 1\
**Last updated:** [May 29, 2020, 1:12pm UTC](https://forum.ansible.com/t/how-do-the-migrations-work/33046 "2020-05-29T13:12:00Z")

</div>

As a first time user of AWX using local\_docker install option version 11.2.0 I am staring the get curious about the way database setup / migrations are setup and supposed to work. I made several attempts to get AWX up a…

---

## [AWX integration with gitlab](https://forum.ansible.com/t/awx-integration-with-gitlab/33051)

<div class="topic-metadata">

**Author:** [@jorge\_perez](https://forum.ansible.com/u/jorge_perez)\
**Replies:** 1\
**Last updated:** [May 29, 2020, 12:59pm UTC](https://forum.ansible.com/t/awx-integration-with-gitlab/33051 "2020-05-29T12:59:49Z")

</div>

I need to know how can integrate AWX with git repo or gitlab

---

## [Restricting Commands after privilege escalation using sudo in ansible.](https://forum.ansible.com/t/restricting-commands-after-privilege-escalation-using-sudo-in-ansible/33049)

<div class="topic-metadata">

**Author:** [@varun\_mohan](https://forum.ansible.com/u/varun_mohan)\
**Replies:** 1\
**Last updated:** [May 29, 2020, 10:46am UTC](https://forum.ansible.com/t/restricting-commands-after-privilege-escalation-using-sudo-in-ansible/33049 "2020-05-29T10:46:16Z")

</div>

Hi, Currently ansible uses wrapper scripts(shell/python) for executing commands as privileged user suing sudo. Due to this its currently not possible to restrict what commands ansible fires on the remote machine after p…

---

## [Question: how to Use name of shell script as value to variable and execute it](https://forum.ansible.com/t/question-how-to-use-name-of-shell-script-as-value-to-variable-and-execute-it/33048)

<div class="topic-metadata">

**Author:** [@Adam\_Memon](https://forum.ansible.com/u/Adam_Memon)\
**Replies:** 0\
**Last updated:** [May 29, 2020, 10:31am UTC](https://forum.ansible.com/t/question-how-to-use-name-of-shell-script-as-value-to-variable-and-execute-it/33048 "2020-05-29T10:31:46Z")

</div>

Hi All, I have a requirement to login to multiple application servers and just run different scripts individually on different servers Rather than creating task for each server - I would like to just create one task wi…

---

## [Which companies are using AWX](https://forum.ansible.com/t/which-companies-are-using-awx/33000)

<div class="topic-metadata">

**Author:** [@Test1](https://forum.ansible.com/u/Test1)\
**Replies:** 2\
**Last updated:** [May 29, 2020, 7:06am UTC](https://forum.ansible.com/t/which-companies-are-using-awx/33000 "2020-05-29T07:06:15Z")

</div>

I would like to know which companies are using AWX, thanks!

---

## [Issue with lineinfile module #69739](https://forum.ansible.com/t/issue-with-lineinfile-module-69739/33045)

<div class="topic-metadata">

**Author:** [@Amith\_sha](https://forum.ansible.com/u/Amith_sha)\
**Replies:** 1\
**Last updated:** [May 29, 2020, 6:14am UTC](https://forum.ansible.com/t/issue-with-lineinfile-module-69739/33045 "2020-05-29T06:14:45Z")

</div>

SUMMARY Tried to write a line using lineinfule module sequentially were observed that the random lines are missed to write on the file.

---

## [authorized\_keys module is deleting too many line when using state: absent](https://forum.ansible.com/t/authorized-keys-module-is-deleting-too-many-line-when-using-state-absent/33039)

<div class="topic-metadata">

**Author:** [@Mario\_Garcia](https://forum.ansible.com/u/Mario_Garcia)\
**Replies:** 8\
**Last updated:** [May 28, 2020, 11:56pm UTC](https://forum.ansible.com/t/authorized-keys-module-is-deleting-too-many-line-when-using-state-absent/33039 "2020-05-28T23:56:48Z")

</div>

Hello I need to clean up a bit the authorized keys files on our infra i created a simple palybook that goes and removed one key from the remote authorized\_keys files but when I run it in check/diff mode i see it tried …

---

## [how to execute python script using ansible, python script running on different sub-directory under same project folder](https://forum.ansible.com/t/how-to-execute-python-script-using-ansible-python-script-running-on-different-sub-directory-under-same-project-folder/33030)

<div class="topic-metadata">

**Author:** [@aditya\_govindaraju](https://forum.ansible.com/u/aditya_govindaraju)\
**Replies:** 8\
**Last updated:** [May 28, 2020, 8:20pm UTC](https://forum.ansible.com/t/how-to-execute-python-script-using-ansible-python-script-running-on-different-sub-directory-under-same-project-folder/33030 "2020-05-28T20:20:59Z")

</div>

Am trying to write a playbook in order to execute a python script running on a different subdirectory under the same project folder A python script running on - /home/{username}/project1/reports/test1.py And playbook r…

---

## [Failed to import the required Python library (pexpect) - Ansible](https://forum.ansible.com/t/failed-to-import-the-required-python-library-pexpect-ansible/33044)

<div class="topic-metadata">

**Author:** [@Carina\_Muller](https://forum.ansible.com/u/Carina_Muller)\
**Replies:** 0\
**Last updated:** [May 28, 2020, 8:01pm UTC](https://forum.ansible.com/t/failed-to-import-the-required-python-library-pexpect-ansible/33044 "2020-05-28T20:01:08Z")

</div>

In my ansible playbook I am using expect module. The error that I get is: “msg”: “Failed to import the required Python library (pexpect) on quickstart.cloudera’s Python /usr/bin/python. Please read module documentation…

---

## [How to deal with "virtual" hostnames?](https://forum.ansible.com/t/how-to-deal-with-virtual-hostnames/33043)

<div class="topic-metadata">

**Author:** [@Toni\_Mueller](https://forum.ansible.com/u/Toni_Mueller)\
**Replies:** 0\
**Last updated:** [May 28, 2020, 6:52pm UTC](https://forum.ansible.com/t/how-to-deal-with-virtual-hostnames/33043 "2020-05-28T18:52:30Z")

</div>

Hi, I would like to create a data structure which resembles a (virtual) host, but in a replicated fashion. Say, I have a number of nodes, and now I want to create the same "vhost" on a subset of them, for redundancy. …

---

## [SSH in shell command](https://forum.ansible.com/t/ssh-in-shell-command/33040)

<div class="topic-metadata">

**Author:** [@Sivaraman\_P](https://forum.ansible.com/u/Sivaraman_P)\
**Replies:** 1\
**Last updated:** [May 28, 2020, 5:44pm UTC](https://forum.ansible.com/t/ssh-in-shell-command/33040 "2020-05-28T17:44:48Z")

</div>

I am new to ansible, i have the script in the remote machine and the script name is ssh.sh which contains below lines to ssh into some another server and run the script, ssh @${server} "sh /tmp/script.sh" the question …

---

## [Unsupported parameters for (yum) module: enabled](https://forum.ansible.com/t/unsupported-parameters-for-yum-module-enabled/33038)

<div class="topic-metadata">

**Author:** [@sarang\_khulape](https://forum.ansible.com/u/sarang_khulape)\
**Replies:** 2\
**Last updated:** [May 28, 2020, 1:27pm UTC](https://forum.ansible.com/t/unsupported-parameters-for-yum-module-enabled/33038 "2020-05-28T13:27:55Z")

</div>

tasks: name: Start and enable vmtoolsd yum: name=vmtoolsd state=started enabled=yes How to resolve below error ? fatal: \[\<IP\_ADDRESS\>\]: FAILED! =\> {“changed”: false, “msg”: “Unsupported parameters for (yum) module: …

---

## [PureStorage FlashArray Networking Module](https://forum.ansible.com/t/purestorage-flasharray-networking-module/33037)

<div class="topic-metadata">

**Author:** [@Jorge\_Rua1](https://forum.ansible.com/u/Jorge_Rua1)\
**Replies:** 1\
**Last updated:** [May 28, 2020, 11:32am UTC](https://forum.ansible.com/t/purestorage-flasharray-networking-module/33037 "2020-05-28T11:32:34Z")

</div>

Hi all, I am trying to configure some fa devices, as part of that process of configuring them we need to set some network parameters for certain interfaces. I’ve seen there’s a module for FlashBlades\[1\], but not for Fl…

---

## [vmfs device name of datastore](https://forum.ansible.com/t/vmfs-device-name-of-datastore/33031)

<div class="topic-metadata">

**Author:** [@Sadanand\_Alegaonkar](https://forum.ansible.com/u/Sadanand_Alegaonkar)\
**Replies:** 4\
**Last updated:** [May 28, 2020, 11:25am UTC](https://forum.ansible.com/t/vmfs-device-name-of-datastore/33031 "2020-05-28T11:25:34Z")

</div>

Hello All, I am trying to find out vmfs device name i.e. storage Lun number or WWPN (naa.60002ac0000000000000000000000000 ) I searched in vmware datastore facts module not able to get the exact result. Please help me …

---

## [retrive secrets from vault using github token](https://forum.ansible.com/t/retrive-secrets-from-vault-using-github-token/33036)

<div class="topic-metadata">

**Author:** [@Asmitha\_j.s](https://forum.ansible.com/u/Asmitha_j.s)\
**Replies:** 0\
**Last updated:** [May 28, 2020, 11:11am UTC](https://forum.ansible.com/t/retrive-secrets-from-vault-using-github-token/33036 "2020-05-28T11:11:19Z")

</div>

I want retrieve secrets from HashiCorp’s vault in ansible playbook using github token. When I checked the documentation https://docs.ansible.com/ansible/latest/plugins/lookup/hashi\_vault.html, I found auth method can be …

---

## [How to use cloud-init to customize a windows virtual machine in oracle cloud on first boot using ansible](https://forum.ansible.com/t/how-to-use-cloud-init-to-customize-a-windows-virtual-machine-in-oracle-cloud-on-first-boot-using-ansible/31726)

<div class="topic-metadata">

**Author:** [@Rahul\_Rawat](https://forum.ansible.com/u/Rahul_Rawat)\
**Replies:** 4\
**Last updated:** [May 27, 2020, 4:47pm UTC](https://forum.ansible.com/t/how-to-use-cloud-init-to-customize-a-windows-virtual-machine-in-oracle-cloud-on-first-boot-using-ansible/31726 "2020-05-27T16:47:46Z")

</div>

Hi, I have created VM using oci-ansible-modules on oracle cloud. Now, I want to run powershell script on first boot with the use of cloud-init using ansible. Means when my playbook run from ansible role, Firstly, VM c…

---

## [Ansible Module Development: TypeError: Value of unknown type: \<class 'bson.objectid.ObjectId'\>, 5ec14572cce378f1d3df48eb](https://forum.ansible.com/t/ansible-module-development-typeerror-value-of-unknown-type-class-bson-objectid-objectid-5ec14572cce378f1d3df48eb/33034)

<div class="topic-metadata">

**Author:** [@rhysmeister](https://forum.ansible.com/u/rhysmeister)\
**Replies:** 0\
**Last updated:** [May 27, 2020, 4:20pm UTC](https://forum.ansible.com/t/ansible-module-development-typeerror-value-of-unknown-type-class-bson-objectid-objectid-5ec14572cce378f1d3df48eb/33034 "2020-05-27T16:20:50Z")

</div>

Hello, I have started development of an Ansible module to insert a document into a MongoDB database. It’s over at https://github.com/ansible-collections/community.mongodb/ When a MongoDB document is inserted, without p…

---

## [is it possible to  connect ms sql server locally with ansible?](https://forum.ansible.com/t/is-it-possible-to-connect-ms-sql-server-locally-with-ansible/33033)

<div class="topic-metadata">

**Author:** [@vinod\_devops](https://forum.ansible.com/u/vinod_devops)\
**Replies:** 0\
**Last updated:** [May 27, 2020, 3:56pm UTC](https://forum.ansible.com/t/is-it-possible-to-connect-ms-sql-server-locally-with-ansible/33033 "2020-05-27T15:56:15Z")

</div>

is it possible to connect ms sql server locally with ansible? I have paas database, i need to execute sql sripts from ansible control machine. first i need to login into paas db and execute the sql scripts. Thanks vin…

---

## [Using variable to compare stdout parameter](https://forum.ansible.com/t/using-variable-to-compare-stdout-parameter/33024)

<div class="topic-metadata">

**Author:** [@Sivakumar\_Saravanamu](https://forum.ansible.com/u/Sivakumar_Saravanamu)\
**Replies:** 5\
**Last updated:** [May 27, 2020, 11:46am UTC](https://forum.ansible.com/t/using-variable-to-compare-stdout-parameter/33024 "2020-05-27T11:46:33Z")

</div>

Hi I am writing a post build verification task and servers are located in three difference location. US, EU and AU I want to check chrony.conf output so that if servers in group\_names US it should check chrony.conf fi…

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

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