# Ansible Project

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

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

**Page:** 147

---

## [Quick question- how to run ansible playbook on Saturday night at 12 PM and save the output in amazon s3 bucket](https://forum.ansible.com/t/quick-question-how-to-run-ansible-playbook-on-saturday-night-at-12-pm-and-save-the-output-in-amazon-s3-bucket/32071)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 4\
**Last updated:** [January 29, 2020, 9:17pm UTC](https://forum.ansible.com/t/quick-question-how-to-run-ansible-playbook-on-saturday-night-at-12-pm-and-save-the-output-in-amazon-s3-bucket/32071 "2020-01-29T21:17:46Z")

</div>

Quick question- how to run ansible-playbook on Saturday night at 12 PM and save the output in the amazon s3 bucket- “abc”?

---

## [Need help in installing windows service pack](https://forum.ansible.com/t/need-help-in-installing-windows-service-pack/32092)

<div class="topic-metadata">

**Author:** [@Ases](https://forum.ansible.com/u/Ases)\
**Replies:** 0\
**Last updated:** [January 29, 2020, 8:52pm UTC](https://forum.ansible.com/t/need-help-in-installing-windows-service-pack/32092 "2020-01-29T20:52:12Z")

</div>

Hello there, Have a dependency installing an agent on windows. If the agent installer is run manually into the server, it prompts for the need of service to be installed and complete it subsequently after agreeing. But…

---

## [kerberos authentication issue with Azure Dynamic Inventory](https://forum.ansible.com/t/kerberos-authentication-issue-with-azure-dynamic-inventory/32089)

<div class="topic-metadata">

**Author:** [@Aravind\_Sivaraman](https://forum.ansible.com/u/Aravind_Sivaraman)\
**Replies:** 0\
**Last updated:** [January 29, 2020, 5:52pm UTC](https://forum.ansible.com/t/kerberos-authentication-issue-with-azure-dynamic-inventory/32089 "2020-01-29T17:52:36Z")

</div>

I am testing Azure Dynamic Inventory Plugin against my windows VM using Kerberos authentication it fails with the error. The dynamic inventory works fine when authentication is set to ‘basic’ and when testing with stati…

---

## [Upload and install file using uri module](https://forum.ansible.com/t/upload-and-install-file-using-uri-module/32088)

<div class="topic-metadata">

**Author:** [@Amarnatha\_Reddy](https://forum.ansible.com/u/Amarnatha_Reddy)\
**Replies:** 2\
**Last updated:** [January 29, 2020, 5:51pm UTC](https://forum.ansible.com/t/upload-and-install-file-using-uri-module/32088 "2020-01-29T17:51:23Z")

</div>

Hi All, I am trying to upload and installing package on remote machine using uri module. How to convert below existing method of curl to ansible uri module? Upload a package AND install curl -u admin:admin -F…

---

## [waits for password when I don't want it to](https://forum.ansible.com/t/waits-for-password-when-i-dont-want-it-to/32087)

<div class="topic-metadata">

**Author:** [@dmartin](https://forum.ansible.com/u/dmartin)\
**Replies:** 1\
**Last updated:** [January 29, 2020, 5:32pm UTC](https://forum.ansible.com/t/waits-for-password-when-i-dont-want-it-to/32087 "2020-01-29T17:32:31Z")

</div>

Hi all. I have an environment with several hundred unreliable machines. Sometimes they’re just dead, sometimes they’re misconfigured. I always encounter some where the keys in my ssh-agent don’t work and it prompts me t…

---

## [Azure dynamic inventory default to SSH even for win\_ping](https://forum.ansible.com/t/azure-dynamic-inventory-default-to-ssh-even-for-win-ping/32077)

<div class="topic-metadata">

**Author:** [@Aravind\_Sivaraman](https://forum.ansible.com/u/Aravind_Sivaraman)\
**Replies:** 1\
**Last updated:** [January 29, 2020, 5:17pm UTC](https://forum.ansible.com/t/azure-dynamic-inventory-default-to-ssh-even-for-win-ping/32077 "2020-01-29T17:17:03Z")

</div>

I am testing the Azure Dynamic Inventory plugin, have a windows VM in one of the resource group, when i am trying to do win\_ping it default the connection to SSH. How do I specify to use by windows credentials here?

---

## [exporting grafana dashboards (containerised) using ansible](https://forum.ansible.com/t/exporting-grafana-dashboards-containerised-using-ansible/32067)

<div class="topic-metadata">

**Author:** [@Vishal\_Bobade](https://forum.ansible.com/u/Vishal_Bobade)\
**Replies:** 1\
**Last updated:** [January 29, 2020, 5:12pm UTC](https://forum.ansible.com/t/exporting-grafana-dashboards-containerised-using-ansible/32067 "2020-01-29T17:12:06Z")

</div>

Hello, I am looking forward to export grafana json dashboards using ansible. Could you please help me on how can I use dockerized grafana to do so . Regards, vbob

---

## [Powershell script from Ansible Playbook](https://forum.ansible.com/t/powershell-script-from-ansible-playbook/32084)

<div class="topic-metadata">

**Author:** [@Sai\_Prasha](https://forum.ansible.com/u/Sai_Prasha)\
**Replies:** 1\
**Last updated:** [January 29, 2020, 1:00pm UTC](https://forum.ansible.com/t/powershell-script-from-ansible-playbook/32084 "2020-01-29T13:00:01Z")

</div>

I have .psl file i want to run that file on Ansible nodes ,So when i try to invoke the .psl file using adhoc command : ansible win1 -m win\_command -a “powershell.exe -File C:\\Sample\\tomeescript.ps1” , It works fine When…

---

## [Anchors to specific module parameters in the docs?](https://forum.ansible.com/t/anchors-to-specific-module-parameters-in-the-docs/32083)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [January 29, 2020, 12:07pm UTC](https://forum.ansible.com/t/anchors-to-specific-module-parameters-in-the-docs/32083 "2020-01-29T12:07:21Z")

</div>

Hi Not sure if this is the right place, but.... I used URLs to module documentation a lot, for instance: https://docs.ansible.com/ansible/latest/modules/docker\_container\_module.html But what I most of the time want, …

---

## [Create module ansible](https://forum.ansible.com/t/create-module-ansible/32081)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 0\
**Last updated:** [January 29, 2020, 11:06am UTC](https://forum.ansible.com/t/create-module-ansible/32081 "2020-01-29T11:06:07Z")

</div>

Hello guy !! :slight\_smile: I want create module for connection and execution script sql in my database MSSQL. I have create programme python : #!/usr/bin/python import pymssql conn = pymssql.connect(host=“my\_host\_d…

---

## [Execut script with Ansible](https://forum.ansible.com/t/execut-script-with-ansible/32074)

<div class="topic-metadata">

**Author:** [@P\_Varsha](https://forum.ansible.com/u/P_Varsha)\
**Replies:** 6\
**Last updated:** [January 29, 2020, 9:56am UTC](https://forum.ansible.com/t/execut-script-with-ansible/32074 "2020-01-29T09:56:03Z")

</div>

can you please share what actually error log you are getting.

---

## [letsencrypt](https://forum.ansible.com/t/letsencrypt/32078)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 2\
**Last updated:** [January 29, 2020, 9:10am UTC](https://forum.ansible.com/t/letsencrypt/32078 "2020-01-29T09:10:25Z")

</div>

I saw there is a module\[1\] that you can use to create a letsencrypt cert. How do you use it to renew said certificate? \[1\] https://docs.ansible.com/ansible/latest/modules/acme\_certificate\_module.html#acme-certificate-m…

---

## [get\_config with filter nc: namespace issue](https://forum.ansible.com/t/get-config-with-filter-nc-namespace-issue/32079)

<div class="topic-metadata">

**Author:** [@Eshna\_Jain](https://forum.ansible.com/u/Eshna_Jain)\
**Replies:** 0\
**Last updated:** [January 29, 2020, 4:56am UTC](https://forum.ansible.com/t/get-config-with-filter-nc-namespace-issue/32079 "2020-01-29T04:56:55Z")

</div>

Hello, I am using ansible to configure my system over ansible. I am making a get\_config query with a filter. the filter is : config\_filter: I call the netconf connection module’s get\_config with the above filter. At …

---

## [What is the best approach to creating a inlude\_vars file for my requirement](https://forum.ansible.com/t/what-is-the-best-approach-to-creating-a-inlude-vars-file-for-my-requirement/32055)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 4\
**Last updated:** [January 28, 2020, 9:53pm UTC](https://forum.ansible.com/t/what-is-the-best-approach-to-creating-a-inlude-vars-file-for-my-requirement/32055 "2020-01-28T21:53:06Z")

</div>

I use the stat module to read multiple files statistics from each remote server. Thus, I’m able to get the file mode and checksum value of say 3 files on host1 and 2 files on host2. I wish to know what is a good way to…

---

## [Ansible 2.9 hostvars localhost issue](https://forum.ansible.com/t/ansible-2-9-hostvars-localhost-issue/32076)

<div class="topic-metadata">

**Author:** [@Michael\_Garris](https://forum.ansible.com/u/Michael_Garris)\
**Replies:** 2\
**Last updated:** [January 28, 2020, 8:14pm UTC](https://forum.ansible.com/t/ansible-2-9-hostvars-localhost-issue/32076 "2020-01-28T20:14:14Z")

</div>

I have a local playbook on my laptop which I use to build local vms for testing. I have noticed recently (with the update to Ansible 2.9) that I have been having issues with the playbook running successfully. It used to …

---

## [kerberos: the python kerberos library is not installed](https://forum.ansible.com/t/kerberos-the-python-kerberos-library-is-not-installed/32068)

<div class="topic-metadata">

**Author:** [@Aravind\_Sivaraman](https://forum.ansible.com/u/Aravind_Sivaraman)\
**Replies:** 4\
**Last updated:** [January 28, 2020, 1:47pm UTC](https://forum.ansible.com/t/kerberos-the-python-kerberos-library-is-not-installed/32068 "2020-01-28T13:47:46Z")

</div>

I am trying to authenticated to windows servers using "Kerberos” , but I am getting an error as “kerberos: the python kerberos library is not installed”. The basic authentication to the windows servers works well. Kerber…

---

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

<div class="topic-metadata">

**Author:** [@Sai\_Prasha](https://forum.ansible.com/u/Sai_Prasha)\
**Replies:** 3\
**Last updated:** [January 28, 2020, 1:21pm UTC](https://forum.ansible.com/t/ansible-and-jenkins/32073 "2020-01-28T13:21:58Z")

</div>

I Installed Anisble Server on Windows by enabling WSL (Windows system for Linux ) having Ubuntu Client Now I have Jenkins Installed on the same Windows machine but when i try to run simple ansible command i am seeing th…

---

## [Help with meta end\_host](https://forum.ansible.com/t/help-with-meta-end-host/31324)

<div class="topic-metadata">

**Author:** [@KSS](https://forum.ansible.com/u/KSS)\
**Replies:** 2\
**Last updated:** [January 28, 2020, 1:16pm UTC](https://forum.ansible.com/t/help-with-meta-end-host/31324 "2020-01-28T13:16:28Z")

</div>

Hi, I have a playbook that uses a meta task to end the play for hosts not meeting a certain condition. Further along the playbook I have a run\_once task that uses the ansible\_play\_hosts variable to provide a list of the…

---

## [Ansible custom plugin path change](https://forum.ansible.com/t/ansible-custom-plugin-path-change/32072)

<div class="topic-metadata">

**Author:** [@ansiblekrazy](https://forum.ansible.com/u/ansiblekrazy)\
**Replies:** 2\
**Last updated:** [January 28, 2020, 10:20am UTC](https://forum.ansible.com/t/ansible-custom-plugin-path-change/32072 "2020-01-28T10:20:31Z")

</div>

Right now, by default custom plugins are stored in home directory : ~/.ansible/plugins/callback Our custom plugins are placed in comman directory : say : /var/ansible/plugin We dont have comman user to login to perform …

---

## [Running a select statement as script using oracle\_sql module](https://forum.ansible.com/t/running-a-select-statement-as-script-using-oracle-sql-module/32057)

<div class="topic-metadata">

**Author:** [@Anand\_Solomon](https://forum.ansible.com/u/Anand_Solomon)\
**Replies:** 2\
**Last updated:** [January 27, 2020, 11:40pm UTC](https://forum.ansible.com/t/running-a-select-statement-as-script-using-oracle-sql-module/32057 "2020-01-27T23:40:39Z")

</div>

Hi, I am trying to run a sql script which has simple select statement. (select username from dba\_users). Will oracle\_sql module run a “Select” statement and returns the results ? My playbook is name: Script will crea…

---

## [Simple Loop](https://forum.ansible.com/t/simple-loop/32066)

<div class="topic-metadata">

**Author:** [@Anand\_Solomon](https://forum.ansible.com/u/Anand_Solomon)\
**Replies:** 5\
**Last updated:** [January 27, 2020, 11:39pm UTC](https://forum.ansible.com/t/simple-loop/32066 "2020-01-27T23:39:20Z")

</div>

Hi, I want to create users in the database using Ansible. I need ansible to run the task (creating user) for all the users mentioned in the vars: schemaname. How do I do that in loop ? var: schemaname: user1, user2, u…

---

## [Ansible win\_ping fails](https://forum.ansible.com/t/ansible-win-ping-fails/32069)

<div class="topic-metadata">

**Author:** [@Scott\_V](https://forum.ansible.com/u/Scott_V)\
**Replies:** 1\
**Last updated:** [January 27, 2020, 9:27pm UTC](https://forum.ansible.com/t/ansible-win-ping-fails/32069 "2020-01-27T21:27:03Z")

</div>

I have OpenSSH configured on a Windows 2012 server and I can establish an SSH connection to it from Centos 7, but when I run the command: sudo ansible windows -m win\_ping I get: ansible 2.9.2 config file = /etc/ansib…

---

## [GCP: How to pull inventory dynamically with multiple labels using Inventory Plugins?](https://forum.ansible.com/t/gcp-how-to-pull-inventory-dynamically-with-multiple-labels-using-inventory-plugins/32063)

<div class="topic-metadata">

**Author:** [@Sreenivas\_Chokkarapu](https://forum.ansible.com/u/Sreenivas_Chokkarapu)\
**Replies:** 0\
**Last updated:** [January 27, 2020, 11:30am UTC](https://forum.ansible.com/t/gcp-how-to-pull-inventory-dynamically-with-multiple-labels-using-inventory-plugins/32063 "2020-01-27T11:30:53Z")

</div>

Hi Folks, I’m using ansible 2.8.4 with Google cloud platform. I’m using Inventory Plugins to get the dynamic inventory as ansible recommends. I’ve 2 Apache nifi clusters, so I’m pulling inventory using gcp\_compute. Eac…

---

## [Problem with Conditional variable](https://forum.ansible.com/t/problem-with-conditional-variable/32039)

<div class="topic-metadata">

**Author:** [@Yehuda\_Pinhas](https://forum.ansible.com/u/Yehuda_Pinhas)\
**Replies:** 5\
**Last updated:** [January 27, 2020, 9:22am UTC](https://forum.ansible.com/t/problem-with-conditional-variable/32039 "2020-01-27T09:22:20Z")

</div>

Hi! I want to make the variable qos\_policy set on conditional basis: If bandwidth\_mb == ‘50’ then qos\_policy == ‘qos-nested-50’ else qos\_policy == ‘qos-nested-new-50’ My code is this (not working): qos\_policy: “{{…

---

## [Basic beginner question](https://forum.ansible.com/t/basic-beginner-question/32061)

<div class="topic-metadata">

**Author:** [@Waqar\_Khan](https://forum.ansible.com/u/Waqar_Khan)\
**Replies:** 3\
**Last updated:** [January 26, 2020, 1:54pm UTC](https://forum.ansible.com/t/basic-beginner-question/32061 "2020-01-26T13:54:46Z")

</div>

Starting out with ansible and trying to configure sshd config. Here is what I have, it works but is there a better way to do with for future reference. e.g. if I have many different distributions it looks like a lot of c…

---

## [Run excel VB or Macro?](https://forum.ansible.com/t/run-excel-vb-or-macro/32054)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 1\
**Last updated:** [January 25, 2020, 10:56pm UTC](https://forum.ansible.com/t/run-excel-vb-or-macro/32054 "2020-01-25T22:56:41Z")

</div>

I am trying to automate a process. Is it possible, natively in Ansible, to run an Excel Macro, or Visual Basic code against an .csv? Thanks in advance.

---

## [Hostvars giving  me undefined error](https://forum.ansible.com/t/hostvars-giving-me-undefined-error/32048)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 7\
**Last updated:** [January 25, 2020, 10:25pm UTC](https://forum.ansible.com/t/hostvars-giving-me-undefined-error/32048 "2020-01-25T22:25:40Z")

</div>

Hi Iam trying to access the variable from other hosts using hostvars. I am getting the undefined error. Can anybody help me: stuck at this point hosts: yum gather\_facts: false vars: file\_locn: “/san/repos/{{ vers…

---

## [Need Help in Ansible regex](https://forum.ansible.com/t/need-help-in-ansible-regex/32046)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 2\
**Last updated:** [January 25, 2020, 1:51am UTC](https://forum.ansible.com/t/need-help-in-ansible-regex/32046 "2020-01-25T01:51:31Z")

</div>

Hi all, I have a rpm whcich i have added in a list. I want to make it dynamic i.e when the version of rpm changes playbook should handle it. I have build a logic but the playbook skips the task where i have mentioned t…

---

## [What is the module to install drivers?](https://forum.ansible.com/t/what-is-the-module-to-install-drivers/32056)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 2\
**Last updated:** [January 25, 2020, 12:35am UTC](https://forum.ansible.com/t/what-is-the-module-to-install-drivers/32056 "2020-01-25T00:35:43Z")

</div>

What is the module to install drivers ? it’s not working with win\_updates.

---

## [can someone please explain about "undefined" error](https://forum.ansible.com/t/can-someone-please-explain-about-undefined-error/32045)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 3\
**Last updated:** [January 24, 2020, 11:01pm UTC](https://forum.ansible.com/t/can-someone-please-explain-about-undefined-error/32045 "2020-01-24T23:01:26Z")

</div>

Hello Guys, can someone please explain about “undefined” error Task name: reboot if required win\_reboot: when: update\_count.reboot\_required TASK \[reboot if required\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

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

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