# Ansible Project

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

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

**Page:** 223

---

## [Installing WinRM offline](https://forum.ansible.com/t/installing-winrm-offline/29055)

<div class="topic-metadata">

**Author:** [@Kartik\_Jayaraman](https://forum.ansible.com/u/Kartik_Jayaraman)\
**Replies:** 2\
**Last updated:** [November 19, 2018, 9:14pm UTC](https://forum.ansible.com/t/installing-winrm-offline/29055 "2018-11-19T21:14:09Z")

</div>

Hello, I have a Centos VM which is cut off from the internet. It does have Ansible installed but does not have pywinrm installed. It did not even have pip installed. So I installed pip offline, basically downloaded the…

---

## [Template File Transfer](https://forum.ansible.com/t/template-file-transfer/29062)

<div class="topic-metadata">

**Author:** [@Ian\_Burrows](https://forum.ansible.com/u/Ian_Burrows)\
**Replies:** 3\
**Last updated:** [November 19, 2018, 2:00pm UTC](https://forum.ansible.com/t/template-file-transfer/29062 "2018-11-19T14:00:05Z")

</div>

Hi, I am very new to Ansible and I have a question regarding the template module. I am receiving an error running a playbook where ansible cannot find or access the j2 file. If I transfer the file manually into /tmp/ki…

---

## [Unarchive can't handle empty archive files](https://forum.ansible.com/t/unarchive-cant-handle-empty-archive-files/29064)

<div class="topic-metadata">

**Author:** [@philippe.mxm](https://forum.ansible.com/u/philippe.mxm)\
**Replies:** 0\
**Last updated:** [November 19, 2018, 1:16pm UTC](https://forum.ansible.com/t/unarchive-cant-handle-empty-archive-files/29064 "2018-11-19T13:16:26Z")

</div>

Hello, When extracting an empty archive, the unarchive module exists with an error: “failed: \[localhost\] (item=/tmp/foo/bar.zip) =\> {“changed”: false, “item”: “/tmp/foo/bar.zip”, “msg”: “Failed to find handler for "/tm…

---

## [How to include/import yml files based on condition](https://forum.ansible.com/t/how-to-include-import-yml-files-based-on-condition/29063)

<div class="topic-metadata">

**Author:** [@Yerigeri](https://forum.ansible.com/u/Yerigeri)\
**Replies:** 0\
**Last updated:** [November 19, 2018, 12:12pm UTC](https://forum.ansible.com/t/how-to-include-import-yml-files-based-on-condition/29063 "2018-11-19T12:12:06Z")

</div>

Hi Im a newbie on Ansible. I have a scenario where Steps: I look for a version of an application. If version is present call uninstall.yml else call install.yml snippet i tried win\_shell: D:\\Build\\regread2.vbs XXX…

---

## [ERROR    awx.main.utils Publish Exception: ZMQError('Operation cannot be accomplished in current state')](https://forum.ansible.com/t/error-awx-main-utils-publish-exception-zmqerror-operation-cannot-be-accomplished-in-current-state/22188)

<div class="topic-metadata">

**Author:** [@Arun\_John\_Varughese](https://forum.ansible.com/u/Arun_John_Varughese)\
**Replies:** 2\
**Last updated:** [November 19, 2018, 10:57am UTC](https://forum.ansible.com/t/error-awx-main-utils-publish-exception-zmqerror-operation-cannot-be-accomplished-in-current-state/22188 "2018-11-19T10:57:23Z")

</div>

Hi, I am currently testing Ansible Tower using a trial license. And, I get the following error: Live events: error connecting to Tower server… in the UI after hovering the mouse pointer over the red dot at the top rig…

---

## [How to force Ansible to update PATH?](https://forum.ansible.com/t/how-to-force-ansible-to-update-path/29060)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Panteleyev](https://forum.ansible.com/u/Dmitriy_Panteleyev)\
**Replies:** 0\
**Last updated:** [November 19, 2018, 2:23am UTC](https://forum.ansible.com/t/how-to-force-ansible-to-update-path/29060 "2018-11-19T02:23:22Z")

</div>

I am installing snapd via Ansible on \*buntu. After installation, snap binaries are linked from /snap/bin. When snapd is installed, it adds a script to /etc/profile.d/ that basically add /snap/bin to bash PATH. My probl…

---

## [Parallel execution of tasks in playbook](https://forum.ansible.com/t/parallel-execution-of-tasks-in-playbook/29026)

<div class="topic-metadata">

**Author:** [@e9893ac46c6125c219ad](https://forum.ansible.com/u/e9893ac46c6125c219ad)\
**Replies:** 5\
**Last updated:** [November 18, 2018, 11:58pm UTC](https://forum.ansible.com/t/parallel-execution-of-tasks-in-playbook/29026 "2018-11-18T23:58:21Z")

</div>

Hi Experts, Can you please share the tips to improve the execution time of Ansible playbook by executing the tasks in parallel? Currently all tasks are executed in sequential manner and waiting for prior task to complet…

---

## [ssh to remote node and run CLI](https://forum.ansible.com/t/ssh-to-remote-node-and-run-cli/29024)

<div class="topic-metadata">

**Author:** [@Abdul\_Rahim](https://forum.ansible.com/u/Abdul_Rahim)\
**Replies:** 3\
**Last updated:** [November 18, 2018, 6:47pm UTC](https://forum.ansible.com/t/ssh-to-remote-node-and-run-cli/29024 "2018-11-18T18:47:28Z")

</div>

Hello Experts, As you can see struggling through basic tasks will appreciate any pointers , using ansible version 2.7 cat inventory.yml fabric01: hosts: build\_node: build\_host: 192.168.115.101 build\_username: root …

---

## [use display\_ok\_hosts = no and debug module simultaneously](https://forum.ansible.com/t/use-display-ok-hosts-no-and-debug-module-simultaneously/29056)

<div class="topic-metadata">

**Author:** [@Uwe\_Sauter](https://forum.ansible.com/u/Uwe_Sauter)\
**Replies:** 0\
**Last updated:** [November 17, 2018, 4:40pm UTC](https://forum.ansible.com/t/use-display-ok-hosts-no-and-debug-module-simultaneously/29056 "2018-11-17T16:40:05Z")

</div>

Hi, currently with ansible.cfg containing \[defaults\] display\_ok\_hosts = no display\_skipped\_hosts = no stdout\_callback = yaml no output is given when I use the debug module. This is obviously correct behavior becaus…

---

## [CPU](https://forum.ansible.com/t/cpu/29016)

<div class="topic-metadata">

**Author:** [@Vinu\_Vajravel](https://forum.ansible.com/u/Vinu_Vajravel)\
**Replies:** 9\
**Last updated:** [November 17, 2018, 11:07am UTC](https://forum.ansible.com/t/cpu/29016 "2018-11-17T11:07:19Z")

</div>

HI Ansible Experts , Can anyone let me know how can i monitor CPU and memory usage using a play books please ? THanks VInu

---

## [don't print statement if "command not found"  and compare variable value with list of values](https://forum.ansible.com/t/dont-print-statement-if-command-not-found-and-compare-variable-value-with-list-of-values/29050)

<div class="topic-metadata">

**Author:** [@moissetgerard0](https://forum.ansible.com/u/moissetgerard0)\
**Replies:** 2\
**Last updated:** [November 17, 2018, 3:44am UTC](https://forum.ansible.com/t/dont-print-statement-if-command-not-found-and-compare-variable-value-with-list-of-values/29050 "2018-11-17T03:44:42Z")

</div>

i’m trying this in a playbook: … vars: actionTodo: “{{ variable\_actionTodo }}” servicesList: “{{ variable\_servicesList }}” actionTodo\_list: \[start,stop,rstart,rstop,status,rstatus\] … name: manage services using …

---

## [ANSIBLE PERMISSIONS](https://forum.ansible.com/t/ansible-permissions/29054)

<div class="topic-metadata">

**Author:** [@fahad.riaz1718](https://forum.ansible.com/u/fahad.riaz1718)\
**Replies:** 1\
**Last updated:** [November 16, 2018, 8:00pm UTC](https://forum.ansible.com/t/ansible-permissions/29054 "2018-11-16T20:00:51Z")

</div>

I wrote a playbook that allows a local user to use ansible “LINEINFILE” module to edit /etc/sssd/sssd.conf and /etc/fstab. However I gave that local user to run all sudo commands without password. I want to limit the lo…

---

## [subversion export issue](https://forum.ansible.com/t/subversion-export-issue/29047)

<div class="topic-metadata">

**Author:** [@rajendra.rawat17](https://forum.ansible.com/u/rajendra.rawat17)\
**Replies:** 1\
**Last updated:** [November 16, 2018, 2:47pm UTC](https://forum.ansible.com/t/subversion-export-issue/29047 "2018-11-16T14:47:37Z")

</div>

Hi All, I am trying to export subversion repo using ansible-playbook.

---

## [Get "Could not find the requested service" when trying to restart httpd; but it is installed](https://forum.ansible.com/t/get-could-not-find-the-requested-service-when-trying-to-restart-httpd-but-it-is-installed/29035)

<div class="topic-metadata">

**Author:** [@Sean\_Hederman](https://forum.ansible.com/u/Sean_Hederman)\
**Replies:** 3\
**Last updated:** [November 16, 2018, 8:51am UTC](https://forum.ansible.com/t/get-could-not-find-the-requested-service-when-trying-to-restart-httpd-but-it-is-installed/29035 "2018-11-16T08:51:56Z")

</div>

name: Restart Apache service: name: “{{ services }}” state: restarted enabled: yes become: true vars: services: httpd Have tried variants with different states, enabled, become. All fail with exact same error: …

---

## [how to use systemd to start my custom service](https://forum.ansible.com/t/how-to-use-systemd-to-start-my-custom-service/29044)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 0\
**Last updated:** [November 16, 2018, 8:48am UTC](https://forum.ansible.com/t/how-to-use-systemd-to-start-my-custom-service/29044 "2018-11-16T08:48:49Z")

</div>

"msg": "Failed to get D-Bus connection: Operation not permitted", you're not running ansible with high enough privileges. try a become: yes somewhere in there.

---

## [Ansible 2.6.8 is available](https://forum.ansible.com/t/ansible-2-6-8-is-available/29043)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [November 16, 2018, 3:07am UTC](https://forum.ansible.com/t/ansible-2-6-8-is-available/29043 "2018-11-16T03:07:19Z")

</div>

Hi all – we’re happy to announce that the general release of Ansible 2.6.8 is now available! How do you get it?

---

## [Adding mutiple groups from var file](https://forum.ansible.com/t/adding-mutiple-groups-from-var-file/29040)

<div class="topic-metadata">

**Author:** [@John\_McCoy](https://forum.ansible.com/u/John_McCoy)\
**Replies:** 7\
**Last updated:** [November 16, 2018, 12:53am UTC](https://forum.ansible.com/t/adding-mutiple-groups-from-var-file/29040 "2018-11-16T00:53:26Z")

</div>

Hey All I’m new to Ansible so I may be trying to do things completely wrong… Ideally I’d like “adding groups” to be a stand alone task, so I can call it with the group file name from other tasks but lets crawl before we…

---

## [Ansible-2.7.2](https://forum.ansible.com/t/ansible-2-7-2/29041)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [November 15, 2018, 11:43pm UTC](https://forum.ansible.com/t/ansible-2-7-2/29041 "2018-11-15T23:43:31Z")

</div>

Hi all- we're happy to announce that the general release of Ansible 2.7.2 is now available! How do you get it?

---

## [ssh client config referenced by ssh\_args in ansible.cfg](https://forum.ansible.com/t/ssh-client-config-referenced-by-ssh-args-in-ansible-cfg/29031)

<div class="topic-metadata">

**Author:** [@lucky\_numbersevun](https://forum.ansible.com/u/lucky_numbersevun)\
**Replies:** 4\
**Last updated:** [November 15, 2018, 7:07pm UTC](https://forum.ansible.com/t/ssh-client-config-referenced-by-ssh-args-in-ansible-cfg/29031 "2018-11-15T19:07:38Z")

</div>

i have a ssh client config that works, and it has Host definition for the bastion at the top, and then all the inside hosts are listed below it in the same file with an appropriate ProxyCommand statement. i have a direc…

---

## [Galaxy 3.1 releasing on 16 Nov 2018](https://forum.ansible.com/t/galaxy-3-1-releasing-on-16-nov-2018/29036)

<div class="topic-metadata">

**Author:** [@chousekn](https://forum.ansible.com/u/chousekn)\
**Replies:** 0\
**Last updated:** [November 15, 2018, 2:44pm UTC](https://forum.ansible.com/t/galaxy-3-1-releasing-on-16-nov-2018/29036 "2018-11-15T14:44:34Z")

</div>

The Galaxy team will be deploying version 3.1 this Friday, 16 Nov 2018. The release will happen around 3 AM Eastern on Friday. We don’t anticipate any downtime, but should problems arise, watch for updates on the Ansible…

---

## [ERROR! A malformed role declaration was encountere](https://forum.ansible.com/t/error-a-malformed-role-declaration-was-encountere/28536)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [November 15, 2018, 11:51am UTC](https://forum.ansible.com/t/error-a-malformed-role-declaration-was-encountere/28536 "2018-11-15T11:51:24Z")

</div>

'roles' should be a list: - hosts: web-core roles: - telegrafw Dick

---

## [need some help with a password in a vault](https://forum.ansible.com/t/need-some-help-with-a-password-in-a-vault/29030)

<div class="topic-metadata">

**Author:** [@Brad2](https://forum.ansible.com/u/Brad2)\
**Replies:** 2\
**Last updated:** [November 15, 2018, 11:28am UTC](https://forum.ansible.com/t/need-some-help-with-a-password-in-a-vault/29030 "2018-11-15T11:28:08Z")

</div>

I have a group of CentOS 7 servers that I want to run a playbook against to set up audit and rsyslog. The systems are currently set up for root ssh with password. One of the later tasks will be to turn off root ssh acces…

---

## [need to replace a line in config file](https://forum.ansible.com/t/need-to-replace-a-line-in-config-file/28940)

<div class="topic-metadata">

**Author:** [@Vivek1](https://forum.ansible.com/u/Vivek1)\
**Replies:** 20\
**Last updated:** [November 15, 2018, 8:44am UTC](https://forum.ansible.com/t/need-to-replace-a-line-in-config-file/28940 "2018-11-15T08:44:57Z")

</div>

Hi Experts, Please help me with your guidance here. I want to comment a line in one config file and need to uncomment the other lline using ansible. My file content as below.

---

## [Working with Ansible on Windows Hosts](https://forum.ansible.com/t/working-with-ansible-on-windows-hosts/29013)

<div class="topic-metadata">

**Author:** [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Replies:** 22\
**Last updated:** [November 14, 2018, 10:40pm UTC](https://forum.ansible.com/t/working-with-ansible-on-windows-hosts/29013 "2018-11-14T22:40:59Z")

</div>

Hello All, did anyone figured out working with ansible on windows host, if so please give me the process and info how you guys get this working on windows. thanks, Narmada

---

## [Is there any way to write a module that does 'remove\_host' or 'replace\_hosts'?](https://forum.ansible.com/t/is-there-any-way-to-write-a-module-that-does-remove-host-or-replace-hosts/29029)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 2\
**Last updated:** [November 14, 2018, 4:56pm UTC](https://forum.ansible.com/t/is-there-any-way-to-write-a-module-that-does-remove-host-or-replace-hosts/29029 "2018-11-14T16:56:36Z")

</div>

I have plays that look like, eg \` name: provision ec2 instance … set\_fact: newly\_created\_ips: … import\_playbook: …/configure/nomad-server.yml \` Inside nomad-server.yml it looks like \` name: Configure n…

---

## [syntax error while putting mapped values in arguments in ansible playbook](https://forum.ansible.com/t/syntax-error-while-putting-mapped-values-in-arguments-in-ansible-playbook/29025)

<div class="topic-metadata">

**Author:** [@Vivek1](https://forum.ansible.com/u/Vivek1)\
**Replies:** 3\
**Last updated:** [November 14, 2018, 12:28pm UTC](https://forum.ansible.com/t/syntax-error-while-putting-mapped-values-in-arguments-in-ansible-playbook/29025 "2018-11-14T12:28:45Z")

</div>

Hello Experts, Good Day!! I was searching for some solution on my ansible playbook where i want run an application inbuilt .sh script with arguments and corresponding mapped values. the below is the command which i ca…

---

## [Building inventory from csv file](https://forum.ansible.com/t/building-inventory-from-csv-file/29021)

<div class="topic-metadata">

**Author:** [@Abdul\_Rahim](https://forum.ansible.com/u/Abdul_Rahim)\
**Replies:** 1\
**Last updated:** [November 14, 2018, 8:05am UTC](https://forum.ansible.com/t/building-inventory-from-csv-file/29021 "2018-11-14T08:05:22Z")

</div>

Hi there , I am new to ansible , looking to see if I can import variables from csv file and either build an inventory file or use them in a playbook , Appreciate your feedback. Basic playbook I tried: root@ansibile-la…

---

## [Open Command prompt as RunAsAdministrator and install setup.exe](https://forum.ansible.com/t/open-command-prompt-as-runasadministrator-and-install-setup-exe/29015)

<div class="topic-metadata">

**Author:** [@mvramana212](https://forum.ansible.com/u/mvramana212)\
**Replies:** 3\
**Last updated:** [November 14, 2018, 7:18am UTC](https://forum.ansible.com/t/open-command-prompt-as-runasadministrator-and-install-setup-exe/29015 "2018-11-14T07:18:46Z")

</div>

Hi Team, I want to open command prompt as runas administrator to install my setup.exe file in windows. below is my playbook. \[Setup\_install.yml\]

---

## [LOOP\_CONTROL with ansible](https://forum.ansible.com/t/loop-control-with-ansible/29023)

<div class="topic-metadata">

**Author:** [@Dhara\_Patel](https://forum.ansible.com/u/Dhara_Patel)\
**Replies:** 0\
**Last updated:** [November 14, 2018, 2:09am UTC](https://forum.ansible.com/t/loop-control-with-ansible/29023 "2018-11-14T02:09:27Z")

</div>

Hi, When i run my playbook i run into this issue. It pops us as Warning. \[WARNING\]: The loop variable ‘item’ is already in use. You should set the loop\_var value in the loop\_control option for the task to something el…

---

## [openstack networks using ansible](https://forum.ansible.com/t/openstack-networks-using-ansible/29022)

<div class="topic-metadata">

**Author:** [@Abdul\_Rahim](https://forum.ansible.com/u/Abdul_Rahim)\
**Replies:** 1\
**Last updated:** [November 13, 2018, 11:59pm UTC](https://forum.ansible.com/t/openstack-networks-using-ansible/29022 "2018-11-13T23:59:54Z")

</div>

Hi Ansible Experts, I am using ansible 2.7 Can some one . please guide me to the steps required before I can use ansible to provision openstack/neutron networks using the os\_network , os\_subnet , os\_router and os\_port …

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

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