# Latest

**URL:** https://forum.ansible.com/latest.md?page=458

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

**Page:** 459

---

## [Call ansible playbook/tasks from python script.](https://forum.ansible.com/t/call-ansible-playbook-tasks-from-python-script/30391)

<div class="topic-metadata">

**Author:** [@Yz\_Xyz](https://forum.ansible.com/u/Yz_Xyz)\
**Replies:** 3\
**Last updated:** [May 22, 2019, 1:36pm UTC](https://forum.ansible.com/t/call-ansible-playbook-tasks-from-python-script/30391 "2019-05-22T13:36:30Z")

</div>

I have python script and have to call ansible playbook and tasks in various phases of script execution. What is preferred way to call ansible playbook or task? I see python API was suggested to use for internal purpose …

---

## [Play book for changing few words in /etc/ssh/sshd.config](https://forum.ansible.com/t/play-book-for-changing-few-words-in-etc-ssh-sshd-config/30394)

<div class="topic-metadata">

**Author:** [@Vinu\_Vajravel](https://forum.ansible.com/u/Vinu_Vajravel)\
**Replies:** 5\
**Last updated:** [May 22, 2019, 11:08am UTC](https://forum.ansible.com/t/play-book-for-changing-few-words-in-etc-ssh-sshd-config/30394 "2019-05-22T11:08:17Z")

</div>

i want to change few words and restart ssh service , is there any playbook available ? appreciate your help. Thanks Vinu .

---

## [ImportError: cannot import name context](https://forum.ansible.com/t/importerror-cannot-import-name-context/30384)

<div class="topic-metadata">

**Author:** [@Nabil\_Boutayeb](https://forum.ansible.com/u/Nabil_Boutayeb)\
**Replies:** 4\
**Last updated:** [May 22, 2019, 8:46am UTC](https://forum.ansible.com/t/importerror-cannot-import-name-context/30384 "2019-05-22T08:46:58Z")

</div>

hello everyone:weeks ago ansible were working fine, but today, trying to execute ansible i got this message: Traceback (most recent call last): File “/usr/bin/ansible”, line 137, in from ansible import context Impor…

---

## [Looking for playbook to get uptime, disk , cpu , RAM , system load, from multiple Linux servers  in html format or csv format](https://forum.ansible.com/t/looking-for-playbook-to-get-uptime-disk-cpu-ram-system-load-from-multiple-linux-servers-in-html-format-or-csv-format/30385)

<div class="topic-metadata">

**Author:** [@Deepan\_M](https://forum.ansible.com/u/Deepan_M)\
**Replies:** 2\
**Last updated:** [May 22, 2019, 7:00am UTC](https://forum.ansible.com/t/looking-for-playbook-to-get-uptime-disk-cpu-ram-system-load-from-multiple-linux-servers-in-html-format-or-csv-format/30385 "2019-05-22T07:00:57Z")

</div>

Hello, Can someone please suggest me a playbook to get uptime, disk , cpu , RAM , system load, from multiple Linux servers – in HTML format or in CSV format. Thanks, Deepan M

---

## [How can i retrieve playbook name, play name and task name in a playbook?](https://forum.ansible.com/t/how-can-i-retrieve-playbook-name-play-name-and-task-name-in-a-playbook/30373)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 2\
**Last updated:** [May 21, 2019, 6:12pm UTC](https://forum.ansible.com/t/how-can-i-retrieve-playbook-name-play-name-and-task-name-in-a-playbook/30373 "2019-05-21T18:12:41Z")

</div>

Is there a way i can retrieve the currently used playbook name, currently running play and task name using playbook rules? I need these 3 info to send them as a parameter for an external python script which would print a…

---

## [Run job only on new or failed hosts](https://forum.ansible.com/t/run-job-only-on-new-or-failed-hosts/30388)

<div class="topic-metadata">

**Author:** [@Igor\_Turovsky](https://forum.ansible.com/u/Igor_Turovsky)\
**Replies:** 0\
**Last updated:** [May 21, 2019, 5:41pm UTC](https://forum.ansible.com/t/run-job-only-on-new-or-failed-hosts/30388 "2019-05-21T17:41:06Z")

</div>

Hello, I am looking for a way to implement the following scenario: I have generic playbook I want to run against all servers in inventory Inventory is dynamic one and it is populated once per day per scheduled AWX job…

---

## [awx API for template management](https://forum.ansible.com/t/awx-api-for-template-management/30387)

<div class="topic-metadata">

**Author:** [@renato.marcandier](https://forum.ansible.com/u/renato.marcandier)\
**Replies:** 0\
**Last updated:** [May 21, 2019, 4:40pm UTC](https://forum.ansible.com/t/awx-api-for-template-management/30387 "2019-05-21T16:40:23Z")

</div>

Hello all, Is there any documentation/demo for awx api regarding template management. I would like to check if this can be leveraged for version control/management. Regards RG

---

## [Looping over a dictionary within a dictionary](https://forum.ansible.com/t/looping-over-a-dictionary-within-a-dictionary/30386)

<div class="topic-metadata">

**Author:** [@ShadyTrainDriver](https://forum.ansible.com/u/ShadyTrainDriver)\
**Replies:** 0\
**Last updated:** [May 21, 2019, 4:16pm UTC](https://forum.ansible.com/t/looping-over-a-dictionary-within-a-dictionary/30386 "2019-05-21T16:16:43Z")

</div>

Hello, I have writte the following to check that each partition on a device of a certain type has a uuid (N.B. extended partitions used in logical partitioning scheme do not): set\_fact: partitions: “{{ partitions|de…

---

## [Question: ERROR! 'become\_user' is not a valid attribute for a TaskInclude](https://forum.ansible.com/t/question-error-become-user-is-not-a-valid-attribute-for-a-taskinclude/30383)

<div class="topic-metadata">

**Author:** [@Gaurav\_Arora](https://forum.ansible.com/u/Gaurav_Arora)\
**Replies:** 2\
**Last updated:** [May 21, 2019, 3:05pm UTC](https://forum.ansible.com/t/question-error-become-user-is-not-a-valid-attribute-for-a-taskinclude/30383 "2019-05-21T15:05:04Z")

</div>

Hi We are upgrading from Ansible 2.7 to Ansible 2.8. We have following lines which are working perfectly fine with Ansible 2.7 # tasks file for \*\*\*\* - name: Call \*\*\*\* installation tasks for {{ ansible\_distribution|upp…

---

## [Store ssh passphrase for another session.](https://forum.ansible.com/t/store-ssh-passphrase-for-another-session/30382)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 1\
**Last updated:** [May 21, 2019, 2:39pm UTC](https://forum.ansible.com/t/store-ssh-passphrase-for-another-session/30382 "2019-05-21T14:39:36Z")

</div>

I have a set of ansible client servers accessible from ansible engine using ssh-key and passphrase. When I run a ansible ad-hoc command , I have to enter passphase on each servers connections and this is repeating for a…

---

## [Is there a standard GoLang library for calling Ansible commands/playbook from GoLang code?](https://forum.ansible.com/t/is-there-a-standard-golang-library-for-calling-ansible-commands-playbook-from-golang-code/30381)

<div class="topic-metadata">

**Author:** [@apapap](https://forum.ansible.com/u/apapap)\
**Replies:** 0\
**Last updated:** [May 21, 2019, 12:51pm UTC](https://forum.ansible.com/t/is-there-a-standard-golang-library-for-calling-ansible-commands-playbook-from-golang-code/30381 "2019-05-21T12:51:38Z")

</div>

Hi, I want to know if there is any standard library for calling Ansible commands or Ansible playbook from within the GoLang code ? Please help

---

## [Multiple machine credentials when launching job](https://forum.ansible.com/t/multiple-machine-credentials-when-launching-job/30380)

<div class="topic-metadata">

**Author:** [@Juan\_A\_S](https://forum.ansible.com/u/Juan_A_S)\
**Replies:** 1\
**Last updated:** [May 21, 2019, 12:45pm UTC](https://forum.ansible.com/t/multiple-machine-credentials-when-launching-job/30380 "2019-05-21T12:45:06Z")

</div>

Is it possible to set multiple machine credentials (in the field “extra\_credentials”) when launching a job (using the API), for setting remote host and jump host keys?

---

## [Change password of remote hosts](https://forum.ansible.com/t/change-password-of-remote-hosts/30372)

<div class="topic-metadata">

**Author:** [@Kevin\_Kwon](https://forum.ansible.com/u/Kevin_Kwon)\
**Replies:** 3\
**Last updated:** [May 21, 2019, 9:36am UTC](https://forum.ansible.com/t/change-password-of-remote-hosts/30372 "2019-05-21T09:36:19Z")

</div>

Hi… Would you please let me know how can i change the account password? How can i change the password of “root” account ? How can i change the password of “user” account ? Thank you! Kevin

---

## [AWX Cluster](https://forum.ansible.com/t/awx-cluster/30364)

<div class="topic-metadata">

**Author:** [@renato.marcandier](https://forum.ansible.com/u/renato.marcandier)\
**Replies:** 4\
**Last updated:** [May 21, 2019, 6:31am UTC](https://forum.ansible.com/t/awx-cluster/30364 "2019-05-21T06:31:51Z")

</div>

Hello guys, Is there any project to create a cluster of AWX ? Regards RG

---

## [How to update AWS VPC attributes in Ansible playbook 2.8](https://forum.ansible.com/t/how-to-update-aws-vpc-attributes-in-ansible-playbook-2-8/30378)

<div class="topic-metadata">

**Author:** [@Dipak\_Jadhav](https://forum.ansible.com/u/Dipak_Jadhav)\
**Replies:** 0\
**Last updated:** [May 21, 2019, 5:07am UTC](https://forum.ansible.com/t/how-to-update-aws-vpc-attributes-in-ansible-playbook-2-8/30378 "2019-05-21T05:07:28Z")

</div>

Hello, I want to update my vpc attributes using anisble playbook. I used below code but it is not updating. I tries to create new vpc. name: Task to update vpc details ec2\_vpc\_net: dns\_support: yes dns\_hostnames: …

---

## [junos\_scp not working](https://forum.ansible.com/t/junos-scp-not-working/30363)

<div class="topic-metadata">

**Author:** [@ganeshrn](https://forum.ansible.com/u/ganeshrn)\
**Replies:** 2\
**Last updated:** [May 21, 2019, 1:59am UTC](https://forum.ansible.com/t/junos-scp-not-working/30363 "2019-05-21T01:59:42Z")

</div>

Based on the logs it seems you have not set the value of provider argument in the task. junos\_scp module requires the provider key to be set. More details refer the module documentation https://docs.ansible.com/ansible…

---

## [Ansible over SSH on Windows host type progress status needed](https://forum.ansible.com/t/ansible-over-ssh-on-windows-host-type-progress-status-needed/30074)

<div class="topic-metadata">

**Author:** [@Stefano\_Leandro](https://forum.ansible.com/u/Stefano_Leandro)\
**Replies:** 4\
**Last updated:** [May 21, 2019, 1:14am UTC](https://forum.ansible.com/t/ansible-over-ssh-on-windows-host-type-progress-status-needed/30074 "2019-05-21T01:14:22Z")

</div>

Hi Folks, I’m quite new with Ansible. I’m projecting a new one automation platform with that in a mixed large enterprise enviroment. Sadly i found that Ansible not still supporting Windows OS over SSH. so, I’m asking…

---

## [how to bypass a Cisco menu](https://forum.ansible.com/t/how-to-bypass-a-cisco-menu/30377)

<div class="topic-metadata">

**Author:** [@Pete\_Siemsen](https://forum.ansible.com/u/Pete_Siemsen)\
**Replies:** 0\
**Last updated:** [May 20, 2019, 6:09pm UTC](https://forum.ansible.com/t/how-to-bypass-a-cisco-menu/30377 "2019-05-20T18:09:32Z")

</div>

I have Ansible playbooks that use the “ios\_config” module to backup the config of my Cisco devices. Works fine on all my Ciscos except the terminal servers. This makes total sense: when I ssh to one of our terminal serv…

---

## [Error while connecting to MS SQL database using windows authentication](https://forum.ansible.com/t/error-while-connecting-to-ms-sql-database-using-windows-authentication/30376)

<div class="topic-metadata">

**Author:** [@benkteshkumar87](https://forum.ansible.com/u/benkteshkumar87)\
**Replies:** 0\
**Last updated:** [May 20, 2019, 4:28pm UTC](https://forum.ansible.com/t/error-while-connecting-to-ms-sql-database-using-windows-authentication/30376 "2019-05-20T16:28:45Z")

</div>

Hi, I am building a Jenkins pipeline to deploy SQL artifact to Microsoft SQL server(2012) using Liquibase. However it’s giving error while connecting to the database. I am using windows authentication credential to conn…

---

## [Developing Ansible Pipeline for (Window) shared netwrok](https://forum.ansible.com/t/developing-ansible-pipeline-for-window-shared-netwrok/30194)

<div class="topic-metadata">

**Author:** [@benkteshkumar87](https://forum.ansible.com/u/benkteshkumar87)\
**Replies:** 2\
**Last updated:** [May 20, 2019, 3:41pm UTC](https://forum.ansible.com/t/developing-ansible-pipeline-for-window-shared-netwrok/30194 "2019-05-20T15:41:06Z")

</div>

Hi, I have a requirement where the deployment file has to be copied to a window shared network. Jenkins slave is running on Linux server. We are developing Ansible Playbook to achieve this. I need help on below points…

---

## [AWX Architecture](https://forum.ansible.com/t/awx-architecture/30273)

<div class="topic-metadata">

**Author:** [@mohamedjarboui1995](https://forum.ansible.com/u/mohamedjarboui1995)\
**Replies:** 3\
**Last updated:** [May 20, 2019, 2:11pm UTC](https://forum.ansible.com/t/awx-architecture/30273 "2019-05-20T14:11:09Z")

</div>

Hello AWX community ! Can someone provide some insight into how AWX works behind the scenes? I installed it locally and got it working, saw the 5 docker containers come up (awx\_task, awx\_web, postgres, memcached and rab…

---

## [Connection Ansible with Windows host problem](https://forum.ansible.com/t/connection-ansible-with-windows-host-problem/30374)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 3\
**Last updated:** [May 20, 2019, 1:16pm UTC](https://forum.ansible.com/t/connection-ansible-with-windows-host-problem/30374 "2019-05-20T13:16:45Z")

</div>

Hey, I want connect Ansible with my host Windows but i don’t understand why it’s not works. I have groupe in /etc/ansible/hosts : \[windows\] 101.5.213.11 ansible\_connection=ssh ansible\_shell\_type=powershell I have on…

---

## [AWX and Insights integration](https://forum.ansible.com/t/awx-and-insights-integration/30313)

<div class="topic-metadata">

**Author:** [@Toby](https://forum.ansible.com/u/Toby)\
**Replies:** 4\
**Last updated:** [May 20, 2019, 12:40pm UTC](https://forum.ansible.com/t/awx-and-insights-integration/30313 "2019-05-20T12:40:14Z")

</div>

Hi all. Me again. :slight\_smile: I have some odd behaviour after creating an Insights credential and project. Attempting to sync. the Insights project with the Insights credential attempt to authenticate against an une…

---

## [yum: AttributeError: 'module' object has no attribute 'i18n'](https://forum.ansible.com/t/yum-attributeerror-module-object-has-no-attribute-i18n/30375)

<div class="topic-metadata">

**Author:** [@christian.tremel](https://forum.ansible.com/u/christian.tremel)\
**Replies:** 2\
**Last updated:** [May 20, 2019, 11:47am UTC](https://forum.ansible.com/t/yum-attributeerror-module-object-has-no-attribute-i18n/30375 "2019-05-20T11:47:19Z")

</div>

hi, got this error out of nowhere…what’s the problem here? ansible --version ansible 2.7.10 config file = /etc/ansible/aix/ansible.cfg configured module search path = \[u’/root/.ansible/plugins/modules’, u’/usr/share…

---

## [Run script sql on ansible](https://forum.ansible.com/t/run-script-sql-on-ansible/30312)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 3\
**Last updated:** [May 20, 2019, 7:35am UTC](https://forum.ansible.com/t/run-script-sql-on-ansible/30312 "2019-05-20T07:35:19Z")

</div>

Hey all, I have a database SQL Server and i must run some script .sql on this database with ansible. I would like know if possible to run script .sql with ansible on database SQL Server ? Thanks for your help !! …

---

## [How to try one task in Ansible ?](https://forum.ansible.com/t/how-to-try-one-task-in-ansible/30348)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 8\
**Last updated:** [May 20, 2019, 7:19am UTC](https://forum.ansible.com/t/how-to-try-one-task-in-ansible/30348 "2019-05-20T07:19:05Z")

</div>

Hey all, I have a lot of task in my repertory task/main.yml among them, this one : name: “Execut my script shell” script: ./script.sh register: result delegate\_to: localhost I don’t want play this task, i want tha…

---

## [Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع](https://forum.ansible.com/t/us-congress-hearing-of-maan-alsaan-money-laundry/30371)

<div class="topic-metadata">

**Author:** [@fafa\_al](https://forum.ansible.com/u/fafa_al)\
**Replies:** 0\
**Last updated:** [May 19, 2019, 8:43pm UTC](https://forum.ansible.com/t/us-congress-hearing-of-maan-alsaan-money-laundry/30371 "2019-05-19T20:43:56Z")

</div>

YouTube videos of U.S. Congress money laundering hearing of Saudi Billionaire " Maan Al sanea" with bank of America and The owner of Saad Hospital and Schools in the Eastern Province in Saudi Arabia and the Chairm…

---

## [Checking free VG percentage](https://forum.ansible.com/t/checking-free-vg-percentage/30370)

<div class="topic-metadata">

**Author:** [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Replies:** 2\
**Last updated:** [May 19, 2019, 3:22pm UTC](https://forum.ansible.com/t/checking-free-vg-percentage/30370 "2019-05-19T15:22:09Z")

</div>

Hi, I’m trying to check if all the VGs on linux servers have less than 20% using the following:

---

## [How to use vars to work with to\_datetime](https://forum.ansible.com/t/how-to-use-vars-to-work-with-to-datetime/30230)

<div class="topic-metadata">

**Author:** [@asmagana](https://forum.ansible.com/u/asmagana)\
**Replies:** 3\
**Last updated:** [May 19, 2019, 1:26pm UTC](https://forum.ansible.com/t/how-to-use-vars-to-work-with-to-datetime/30230 "2019-05-19T13:26:09Z")

</div>

Hello everyone, My registered vars are not working with my math equation using to\_datetime filter it will work with the string “2019-04-01” but not with my var. \` PLAY \[localhost\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [set facts from an arry with white space](https://forum.ansible.com/t/set-facts-from-an-arry-with-white-space/30369)

<div class="topic-metadata">

**Author:** [@ATHIRA\_sanoj](https://forum.ansible.com/u/ATHIRA_sanoj)\
**Replies:** 0\
**Last updated:** [May 19, 2019, 8:13am UTC](https://forum.ansible.com/t/set-facts-from-an-arry-with-white-space/30369 "2019-05-19T08:13:21Z")

</div>

\` Hello Team i am trying to set facts from a json array, since the key contains space i am unable to parse, can someone help me here, i want to set fact as \`“name”: “IN-FG-04” when \`\`\`“vdom”: “vdom-shop”\`\` \` name: …

[Previous page](https://forum.ansible.com/latest.md?page=457)

[Next page](https://forum.ansible.com/latest.md?page=459)
