# Ansible Project

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

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

**Page:** 275

---

## [Copy files from windows machine to linux machine using ansible](https://forum.ansible.com/t/copy-files-from-windows-machine-to-linux-machine-using-ansible/21259)

<div class="topic-metadata">

**Author:** [@Mick\_st\_john](https://forum.ansible.com/u/Mick_st_john)\
**Replies:** 8\
**Last updated:** [March 14, 2018, 8:39pm UTC](https://forum.ansible.com/t/copy-files-from-windows-machine-to-linux-machine-using-ansible/21259 "2018-03-14T20:39:37Z")

</div>

I trying to copy files from a remote windows machine to my local machine(linux machine) using ansible. As fetch module works for linux to linux file transfer, is there anything similar that could enable me to fetch files…

---

## [Ansible windows issue about running yml task](https://forum.ansible.com/t/ansible-windows-issue-about-running-yml-task/26994)

<div class="topic-metadata">

**Author:** [@selim\_sarisu](https://forum.ansible.com/u/selim_sarisu)\
**Replies:** 4\
**Last updated:** [March 14, 2018, 8:38pm UTC](https://forum.ansible.com/t/ansible-windows-issue-about-running-yml-task/26994 "2018-03-14T20:38:17Z")

</div>

Hi Friends , When I tried to run any .yml task on the Ansible , I get following error ; My Syntax is here , - name: Create directory structure win\_file: path: C:\\Temp\\folder\\subfolder state: directory ERR…

---

## [Digest for ansible-project@googlegroups.com - 11 updates in 7 topics](https://forum.ansible.com/t/digest-for-ansible-project-googlegroups-com-11-updates-in-7-topics/26998)

<div class="topic-metadata">

**Author:** [@lpescatore](https://forum.ansible.com/u/lpescatore)\
**Replies:** 0\
**Last updated:** [March 14, 2018, 4:42pm UTC](https://forum.ansible.com/t/digest-for-ansible-project-googlegroups-com-11-updates-in-7-topics/26998 "2018-03-14T16:42:51Z")

</div>

You don’t have whitespace right, which Ansible is very finicky about. Try: name: Create directory structure win\_file: path: C:\\Temp\\folder\\subfolder state: directory Don’t use “tab” keys, use your space bar. HTH, …

---

## [fetch command](https://forum.ansible.com/t/fetch-command/26997)

<div class="topic-metadata">

**Author:** [@DOkuwa](https://forum.ansible.com/u/DOkuwa)\
**Replies:** 0\
**Last updated:** [March 14, 2018, 4:16pm UTC](https://forum.ansible.com/t/fetch-command/26997 "2018-03-14T16:16:11Z")

</div>

Hello Can someone use the fetch command to copy a file from a juniper or cisco device to a server since juniper has some form on Linux on it Thanks Daley

---

## [Running PowerCli scripts within PowerShell scripts in Ansible](https://forum.ansible.com/t/running-powercli-scripts-within-powershell-scripts-in-ansible/23180)

<div class="topic-metadata">

**Author:** [@Rajesh\_N](https://forum.ansible.com/u/Rajesh_N)\
**Replies:** 6\
**Last updated:** [March 14, 2018, 2:10pm UTC](https://forum.ansible.com/t/running-powercli-scripts-within-powershell-scripts-in-ansible/23180 "2018-03-14T14:10:53Z")

</div>

Folks, I have an Ansible server and a Windows PowerShell server with PowerCli. I encapsulate PowerCli commands within PowerShell scripts and call them in Ansible. It works on one Windows server and doesn’t on another. …

---

## [Editing a YAML file, using Ansible](https://forum.ansible.com/t/editing-a-yaml-file-using-ansible/26993)

<div class="topic-metadata">

**Author:** [@ykaul](https://forum.ansible.com/u/ykaul)\
**Replies:** 0\
**Last updated:** [March 14, 2018, 10:31am UTC](https://forum.ansible.com/t/editing-a-yaml-file-using-ansible/26993 "2018-03-14T10:31:25Z")

</div>

I’m trying to edit a YAML file (Ansible playbook, who knew) using the replace module. What I’d like to do is something like: original: cloud\_init: to: cloud\_init: custom\_script: “{{ install\_guest\_agent\_script }}” W…

---

## [Variable Prompt under a Task](https://forum.ansible.com/t/variable-prompt-under-a-task/26980)

<div class="topic-metadata">

**Author:** [@Mohit\_Dhingra](https://forum.ansible.com/u/Mohit_Dhingra)\
**Replies:** 3\
**Last updated:** [March 14, 2018, 8:58am UTC](https://forum.ansible.com/t/variable-prompt-under-a-task/26980 "2018-03-14T08:58:35Z")

</div>

Hi All, I want to get the variable from user. But the definition of the variable prompt has to be in the role. I am using three actions, Lets say A,B and C. for every action(input from user) different roles will be cal…

---

## [Cluster in Ansible Core](https://forum.ansible.com/t/cluster-in-ansible-core/26991)

<div class="topic-metadata">

**Author:** [@SUMIT\_SAHAY](https://forum.ansible.com/u/SUMIT_SAHAY)\
**Replies:** 0\
**Last updated:** [March 14, 2018, 6:19am UTC](https://forum.ansible.com/t/cluster-in-ansible-core/26991 "2018-03-14T06:19:00Z")

</div>

Hi All, I want to implement cluster in ansible core, in tower it is possible. can I do the same thing in ansible core? Is there any way to do this? Looking forward for your reply. Thanks & Regards Sumit Sahay

---

## [Sysctl](https://forum.ansible.com/t/sysctl/26979)

<div class="topic-metadata">

**Author:** [@Vino\_B](https://forum.ansible.com/u/Vino_B)\
**Replies:** 3\
**Last updated:** [March 14, 2018, 5:23am UTC](https://forum.ansible.com/t/sysctl/26979 "2018-03-14T05:23:33Z")

</div>

Hi All, Request your help, on the below code, i wanted to check whether the sysctl paramater “vm.nr\_hugepages” has any numeric value . name: Check whether System Settings are Optimized command: sysctl -n {{ item.pna…

---

## [ERROR! this task 'import\_playbook' has extra params](https://forum.ansible.com/t/error-this-task-import-playbook-has-extra-params/26987)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 4\
**Last updated:** [March 13, 2018, 7:31pm UTC](https://forum.ansible.com/t/error-this-task-import-playbook-has-extra-params/26987 "2018-03-13T19:31:19Z")

</div>

I can’t figure out why this is failing… syntax is correct as far as I can see. I could use another pair of eyes. ERROR: \` ERROR! this task ‘import\_playbook’ has extra params, which is only allowed in the following mod…

---

## [ansible\_processor\_vcpus - What does mean this value ?](https://forum.ansible.com/t/ansible-processor-vcpus-what-does-mean-this-value/26986)

<div class="topic-metadata">

**Author:** [@tom.reynick](https://forum.ansible.com/u/tom.reynick)\
**Replies:** 0\
**Last updated:** [March 13, 2018, 5:54pm UTC](https://forum.ansible.com/t/ansible-processor-vcpus-what-does-mean-this-value/26986 "2018-03-13T17:54:56Z")

</div>

Hi, can someone try to explain what does it mean ansible\_processor\_vcpus ? How does it refer to number of cores, number of threads and so on. What about HT capability of processor ?

---

## [Cronjobs](https://forum.ansible.com/t/cronjobs/26948)

<div class="topic-metadata">

**Author:** [@Adam](https://forum.ansible.com/u/Adam)\
**Replies:** 1\
**Last updated:** [March 13, 2018, 3:30pm UTC](https://forum.ansible.com/t/cronjobs/26948 "2018-03-13T15:30:42Z")

</div>

Hi - I’ve got a task to manage cronjobs on systems that works perfectly fine unless I have the following as the job: find /iqstage01/archive/\* /iqstage01/error/\* -type f -exec gzip {} ; Ansible doesn’t like the escape…

---

## [Default shell behavior: Where are scripts executed? No such file or directory.](https://forum.ansible.com/t/default-shell-behavior-where-are-scripts-executed-no-such-file-or-directory/26972)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 1\
**Last updated:** [March 13, 2018, 12:29pm UTC](https://forum.ansible.com/t/default-shell-behavior-where-are-scripts-executed-no-such-file-or-directory/26972 "2018-03-13T12:29:49Z")

</div>

shell executes on the remote machine, it does not look for any resources 'local' to the controller, the 'working directory' depends on login/become setup used on the target machine (normally /home/\<remote\_user|become\_…

---

## [Need variable that matches certain group-host run](https://forum.ansible.com/t/need-variable-that-matches-certain-group-host-run/26965)

<div class="topic-metadata">

**Author:** [@Naftali\_Burnham](https://forum.ansible.com/u/Naftali_Burnham)\
**Replies:** 1\
**Last updated:** [March 13, 2018, 9:10am UTC](https://forum.ansible.com/t/need-variable-that-matches-certain-group-host-run/26965 "2018-03-13T09:10:52Z")

</div>

Hi, Im not finding exactly what Im trying to do, or maybe Im not getting how to accomplish this. Ive been playing with different ways to do this. I need so set some different variable in a template. this is content of…

---

## [Unable to parse int value with\_items in ansible](https://forum.ansible.com/t/unable-to-parse-int-value-with-items-in-ansible/26976)

<div class="topic-metadata">

**Author:** [@Parimi\_Srikant](https://forum.ansible.com/u/Parimi_Srikant)\
**Replies:** 0\
**Last updated:** [March 13, 2018, 5:37am UTC](https://forum.ansible.com/t/unable-to-parse-int-value-with-items-in-ansible/26976 "2018-03-13T05:37:14Z")

</div>

Hi I have a playbook which enters a naptr record on infoblox and I am using uri module to do that everything is working but when I am trying to parse different vales to “order”: “{{ item.count\_order }}” I am having erro…

---

## [provider argument](https://forum.ansible.com/t/provider-argument/26973)

<div class="topic-metadata">

**Author:** [@Carl\_Dubois](https://forum.ansible.com/u/Carl_Dubois)\
**Replies:** 0\
**Last updated:** [March 12, 2018, 9:33pm UTC](https://forum.ansible.com/t/provider-argument/26973 "2018-03-12T21:33:11Z")

</div>

Hi, Recently upgraded to ansible 2.5rc2. When running a role “bigip\_check” I noticed an argument that is not defined anywhere is used. “provider” fatal: \[10.255.111.175\]: FAILED! =\> { “changed”: false, “invocation”:…

---

## [Passing extra\_vars via provisioning callback using PowerShell](https://forum.ansible.com/t/passing-extra-vars-via-provisioning-callback-using-powershell/26949)

<div class="topic-metadata">

**Author:** [@travisk](https://forum.ansible.com/u/travisk)\
**Replies:** 1\
**Last updated:** [March 12, 2018, 5:40pm UTC](https://forum.ansible.com/t/passing-extra-vars-via-provisioning-callback-using-powershell/26949 "2018-03-12T17:40:48Z")

</div>

Hello, I have a template that needs to be run against Windows hosts that make use the callback URL to initiate the job against them. This works for that purpose: Invoke-WebRequest -Method POST -Body @{host\_config\_key…

---

## [with\_items clause with ios config module is not working](https://forum.ansible.com/t/with-items-clause-with-ios-config-module-is-not-working/26968)

<div class="topic-metadata">

**Author:** [@Vishlesh\_Patel](https://forum.ansible.com/u/Vishlesh_Patel)\
**Replies:** 1\
**Last updated:** [March 12, 2018, 4:38pm UTC](https://forum.ansible.com/t/with-items-clause-with-ios-config-module-is-not-working/26968 "2018-03-12T16:38:40Z")

</div>

vars: hubs: “{{groups\[‘Hubs’\]}}” connection: local tasks: name: debug tasks debug: msg: “{{hostvars\[item\].tunnel\_address}}” with\_items: “{{ hubs }}” name: test ios config ios\_config: parents: interface Tunn…

---

## [How to Pick and match the inventory\_hostname against {{ ansible\_hostname }} using groups.hosts](https://forum.ansible.com/t/how-to-pick-and-match-the-inventory-hostname-against-ansible-hostname-using-groups-hosts/26967)

<div class="topic-metadata">

**Author:** [@rraka1002](https://forum.ansible.com/u/rraka1002)\
**Replies:** 3\
**Last updated:** [March 12, 2018, 4:11pm UTC](https://forum.ansible.com/t/how-to-pick-and-match-the-inventory-hostname-against-ansible-hostname-using-groups-hosts/26967 "2018-03-12T16:11:15Z")

</div>

Hi Experts,

---

## [EC2 instance roles for EC2 inventory plugin?](https://forum.ansible.com/t/ec2-instance-roles-for-ec2-inventory-plugin/26969)

<div class="topic-metadata">

**Author:** [@Graham\_Babbitt](https://forum.ansible.com/u/Graham_Babbitt)\
**Replies:** 0\
**Last updated:** [March 12, 2018, 4:11pm UTC](https://forum.ansible.com/t/ec2-instance-roles-for-ec2-inventory-plugin/26969 "2018-03-12T16:11:07Z")

</div>

Hello, Unless I’m missing something I don’t believe the ec2 inventory plugin currently supports getting aws credentials via an ec2 instance role? Specifically in \_set\_credentials: https://github.com/ansible/ansible/bl…

---

## [New Ansible setup architecture](https://forum.ansible.com/t/new-ansible-setup-architecture/26901)

<div class="topic-metadata">

**Author:** [@DevOps\_Unleashed](https://forum.ansible.com/u/DevOps_Unleashed)\
**Replies:** 2\
**Last updated:** [March 12, 2018, 9:31am UTC](https://forum.ansible.com/t/new-ansible-setup-architecture/26901 "2018-03-12T09:31:57Z")

</div>

I am tasked with setting up Ansible in my team. In another team, we setup Ansible in a docker image, and spun up a new container per playbook execution. Question - what general setup architecture should i use?. (E.g. …

---

## [Ansible Disk Usage and Disk Space Full Alert generation Script.](https://forum.ansible.com/t/ansible-disk-usage-and-disk-space-full-alert-generation-script/26930)

<div class="topic-metadata">

**Author:** [@Kiran\_Shrimali](https://forum.ansible.com/u/Kiran_Shrimali)\
**Replies:** 7\
**Last updated:** [March 12, 2018, 9:22am UTC](https://forum.ansible.com/t/ansible-disk-usage-and-disk-space-full-alert-generation-script/26930 "2018-03-12T09:22:31Z")

</div>

Hi, I am tryig to write an Ansible script which will Generat Alert on Disk Usage. Once the Disk Usage goes above the Threshold, alert will be generated. Below is start up code.

---

## [Split stdout based on white space](https://forum.ansible.com/t/split-stdout-based-on-white-space/26964)

<div class="topic-metadata">

**Author:** [@Vino\_B](https://forum.ansible.com/u/Vino_B)\
**Replies:** 1\
**Last updated:** [March 12, 2018, 8:45am UTC](https://forum.ansible.com/t/split-stdout-based-on-white-space/26964 "2018-03-12T08:45:41Z")

</div>

Hi All, Request your help on the below name: Check whether run level is set to Multi-User System command: runlevel register: rlevel\_status failed\_when: rlevel\_status.stdout.split()\[1\] != 3 The output of rlevel\_sta…

---

## [Checking for a string and value](https://forum.ansible.com/t/checking-for-a-string-and-value/26953)

<div class="topic-metadata">

**Author:** [@Vino\_B](https://forum.ansible.com/u/Vino_B)\
**Replies:** 6\
**Last updated:** [March 12, 2018, 6:31am UTC](https://forum.ansible.com/t/checking-for-a-string-and-value/26953 "2018-03-12T06:31:11Z")

</div>

Hi All, Request your help, I need to find whether the string numa\_balancing is set to disabled in the file /etc/default/grub where the string in contained in the string GRUB\_CMDLINE\_LINUX\_DEFAULT any help on this is muc…

---

## [Firewalld module and check / diff modes](https://forum.ansible.com/t/firewalld-module-and-check-diff-modes/26963)

<div class="topic-metadata">

**Author:** [@James\_Birkett](https://forum.ansible.com/u/James_Birkett)\
**Replies:** 0\
**Last updated:** [March 12, 2018, 6:16am UTC](https://forum.ansible.com/t/firewalld-module-and-check-diff-modes/26963 "2018-03-12T06:16:50Z")

</div>

When using the templates module, I find running ansible-playbook --check --diff really useful. If anything has been added to or removed from the config file on the server for any reason, ansible shows it shows me the dif…

---

## [Getting error when install ansible tower](https://forum.ansible.com/t/getting-error-when-install-ansible-tower/26962)

<div class="topic-metadata">

**Author:** [@Suresh\_Sharma](https://forum.ansible.com/u/Suresh_Sharma)\
**Replies:** 0\
**Last updated:** [March 12, 2018, 6:10am UTC](https://forum.ansible.com/t/getting-error-when-install-ansible-tower/26962 "2018-03-12T06:10:50Z")

</div>

Setup log saved to setup.log. \[root@localhost ansible-tower-setup-bundle-2.3.0-1.el6\]# ./setup.sh -p SSH password: Using /root/ansible-tower-setup-bundle-2.3.0-1.el6/ansible.cfg as config file \[DEPRECATION WARNING\]: T…

---

## [How to get varibles from defauls folder in ansible roles.](https://forum.ansible.com/t/how-to-get-varibles-from-defauls-folder-in-ansible-roles/26961)

<div class="topic-metadata">

**Author:** [@jaychandran\_subraman](https://forum.ansible.com/u/jaychandran_subraman)\
**Replies:** 0\
**Last updated:** [March 12, 2018, 5:51am UTC](https://forum.ansible.com/t/how-to-get-varibles-from-defauls-folder-in-ansible-roles/26961 "2018-03-12T05:51:14Z")

</div>

Hi , We have many common varibales and we needs to call it from defautls/main.yaml file . for ex common variables:

---

## [Testing for new psexec module](https://forum.ansible.com/t/testing-for-new-psexec-module/26960)

<div class="topic-metadata">

**Author:** [@jborean](https://forum.ansible.com/u/jborean)\
**Replies:** 0\
**Last updated:** [March 12, 2018, 3:09am UTC](https://forum.ansible.com/t/testing-for-new-psexec-module/26960 "2018-03-12T03:09:14Z")

</div>

Hi All I’ve been working on an Ansible module that allows you to run a command on a Windows host remotely without the need for WinRM and in the end I’ve created a module called psexec to do this. If any Windows admins (…

---

## [Two different version of ansible gives two different outputs for same ansible playbook](https://forum.ansible.com/t/two-different-version-of-ansible-gives-two-different-outputs-for-same-ansible-playbook/26958)

<div class="topic-metadata">

**Author:** [@Mahendra\_Raghuwanshi](https://forum.ansible.com/u/Mahendra_Raghuwanshi)\
**Replies:** 4\
**Last updated:** [March 11, 2018, 10:33am UTC](https://forum.ansible.com/t/two-different-version-of-ansible-gives-two-different-outputs-for-same-ansible-playbook/26958 "2018-03-11T10:33:12Z")

</div>

\- hosts: Ebonding become: yes become\_method: sudo tasks - name: Clearing cache of Server4 file: path=/weblogic/bea/user\_projects/domains/tmp state=absent become: yes become\_use…

---

## [Is it possible to use S3 Ansible module on on-premise S3 Scality storage ?](https://forum.ansible.com/t/is-it-possible-to-use-s3-ansible-module-on-on-premise-s3-scality-storage/26957)

<div class="topic-metadata">

**Author:** [@Coolman](https://forum.ansible.com/u/Coolman)\
**Replies:** 0\
**Last updated:** [March 10, 2018, 9:35pm UTC](https://forum.ansible.com/t/is-it-possible-to-use-s3-ansible-module-on-on-premise-s3-scality-storage/26957 "2018-03-10T21:35:03Z")

</div>

Hello there, We have a S3 storage on on-premise cloud. I try to use the S3 Ansible module but it does not work : the S3 Ansible module seems to try to call AWS S3 instead of my on-premise S3 storage (despite parameters…

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

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