# Ansible Project

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

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

**Page:** 270

---

## [Install solr packages on ansible](https://forum.ansible.com/t/install-solr-packages-on-ansible/27195)

<div class="topic-metadata">

**Author:** [@boy\_fantastico](https://forum.ansible.com/u/boy_fantastico)\
**Replies:** 0\
**Last updated:** [April 5, 2018, 1:38pm UTC](https://forum.ansible.com/t/install-solr-packages-on-ansible/27195 "2018-04-05T13:38:29Z")

</div>

Good afternoon. I’m installing an ckan via ansible project. However, I need to install SOLR packages, but I can not. I would like to ask you for help, knowing in this way which commands you could produce for the follo…

---

## [AWX Installation - Help](https://forum.ansible.com/t/awx-installation-help/27191)

<div class="topic-metadata">

**Author:** [@Vino\_B](https://forum.ansible.com/u/Vino_B)\
**Replies:** 1\
**Last updated:** [April 5, 2018, 10:53am UTC](https://forum.ansible.com/t/awx-installation-help/27191 "2018-04-05T10:53:14Z")

</div>

Hi All, Trying to install AWX and facing the below error, request your help on the same. There are few blogs stating to downgrade pip-docker to 3.0.0 (https://github.com/ansible/awx/issues/1197) so do we need to downgra…

---

## [Installing Jenkins plugins with their dependencies](https://forum.ansible.com/t/installing-jenkins-plugins-with-their-dependencies/27177)

<div class="topic-metadata">

**Author:** [@JiElPe-Fr38](https://forum.ansible.com/u/JiElPe-Fr38)\
**Replies:** 2\
**Last updated:** [April 5, 2018, 8:07am UTC](https://forum.ansible.com/t/installing-jenkins-plugins-with-their-dependencies/27177 "2018-04-05T08:07:16Z")

</div>

Dear all, I have created a jenkins role that creates a jenkins instance and add plugins. The task related to plugins is as follows : \` \` name: Install plugins jenkins\_plugin: group: “{{ jenkins\_process\_group }}” …

---

## [How to make mandatory variables if variable is defined](https://forum.ansible.com/t/how-to-make-mandatory-variables-if-variable-is-defined/27193)

<div class="topic-metadata">

**Author:** [@Javier\_Marti](https://forum.ansible.com/u/Javier_Marti)\
**Replies:** 1\
**Last updated:** [April 5, 2018, 7:25am UTC](https://forum.ansible.com/t/how-to-make-mandatory-variables-if-variable-is-defined/27193 "2018-04-05T07:25:31Z")

</div>

Hi, I want to make sure before execution of the role that if a variable is defined you have to define another variables, can I do that? I have a template: {% if variable1 != ‘’ %} variable1 = {{ variable1 }} variable…

---

## [ansible-vault encrypt\_string and inventory files](https://forum.ansible.com/t/ansible-vault-encrypt-string-and-inventory-files/27192)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [April 5, 2018, 5:15am UTC](https://forum.ansible.com/t/ansible-vault-encrypt-string-and-inventory-files/27192 "2018-04-05T05:15:14Z")

</div>

Have you tried ansible\_password: !vault | $ANSIBLE\_VAULT;1.1;AES256 30653431356634633165316664383264313636623136623831663566303436613834366536663333 62366664356131643061623462616663393532303…

---

## [ansible-vault encrypt\_string and inventory files](https://forum.ansible.com/t/ansible-vault-encrypt-string-and-inventory-files/27189)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 3\
**Last updated:** [April 5, 2018, 4:47am UTC](https://forum.ansible.com/t/ansible-vault-encrypt-string-and-inventory-files/27189 "2018-04-05T04:47:08Z")

</div>

It will never work in ini file, you can encrypt the whole inventory though (yaml or ini). As for the single var, it 'should' work in a YAML inventory, but i don't think we had it as a specific feature.

---

## [Subject: Ansible 2.4.4.0 Final released](https://forum.ansible.com/t/subject-ansible-2-4-4-0-final-released/27190)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [April 5, 2018, 4:17am UTC](https://forum.ansible.com/t/subject-ansible-2-4-4-0-final-released/27190 "2018-04-05T04:17:24Z")

</div>

Hi all, For everyone who has not yet decided to upgrade to ansible-2.5.0 we're happy to announce that ansible- 2.4.4.0 has been released.

---

## [ansible regex with lineinfile module not updating all host](https://forum.ansible.com/t/ansible-regex-with-lineinfile-module-not-updating-all-host/27184)

<div class="topic-metadata">

**Author:** [@rraka1002](https://forum.ansible.com/u/rraka1002)\
**Replies:** 2\
**Last updated:** [April 5, 2018, 3:49am UTC](https://forum.ansible.com/t/ansible-regex-with-lineinfile-module-not-updating-all-host/27184 "2018-04-05T03:49:12Z")

</div>

Esteemed Collegues, I have created a Playbook to replcae the Entry in a file using a lineinfile module, while i tried running it run and replace in entry on the one host while not on the another host, i don’t understand …

---

## [Ansible help regex](https://forum.ansible.com/t/ansible-help-regex/27182)

<div class="topic-metadata">

**Author:** [@Numi](https://forum.ansible.com/u/Numi)\
**Replies:** 1\
**Last updated:** [April 4, 2018, 5:51pm UTC](https://forum.ansible.com/t/ansible-help-regex/27182 "2018-04-04T17:51:42Z")

</div>

Hello, I was wondering if someone can possible help me with my Ansible playbook. I have a file called myfile.yml with a line that contains an image. Example line: service: blahblah image: myoldimagename blahblah I want…

---

## [set\_fact, map command combination returning 'undefined'](https://forum.ansible.com/t/set-fact-map-command-combination-returning-undefined/27187)

<div class="topic-metadata">

**Author:** [@Gregory\_Mirsky](https://forum.ansible.com/u/Gregory_Mirsky)\
**Replies:** 0\
**Last updated:** [April 4, 2018, 1:45pm UTC](https://forum.ansible.com/t/set-fact-map-command-combination-returning-undefined/27187 "2018-04-04T13:45:39Z")

</div>

I am able to successfully execute Ansible module ec2\_vpc\_subnet\_facts and register the output into a variable, subnet\_facts. I am using Ansible version 2.5.0and python version = 2.7.14 I am able to check that subnet\_fa…

---

## [ansible.parsing.yaml.objects.AnsibleUnicode error](https://forum.ansible.com/t/ansible-parsing-yaml-objects-ansibleunicode-error/27175)

<div class="topic-metadata">

**Author:** [@Ridvan\_KARATAS](https://forum.ansible.com/u/Ridvan_KARATAS)\
**Replies:** 1\
**Last updated:** [April 4, 2018, 11:08am UTC](https://forum.ansible.com/t/ansible-parsing-yaml-objects-ansibleunicode-error/27175 "2018-04-04T11:08:46Z")

</div>

Hi I’m using ansible 2.5.0 When I’m trying to deploy a service it gives me this error: \` ansible.parsing.yaml.objects.AnsibleUnicode object’ has no attribute ‘ipv4’ \` I couldn’t find much more relevant according to…

---

## [errors for unknown reasons](https://forum.ansible.com/t/errors-for-unknown-reasons/27183)

<div class="topic-metadata">

**Author:** [@Paul\_Franks](https://forum.ansible.com/u/Paul_Franks)\
**Replies:** 0\
**Last updated:** [April 4, 2018, 5:09am UTC](https://forum.ansible.com/t/errors-for-unknown-reasons/27183 "2018-04-04T05:09:40Z")

</div>

Hi All - noob question - trying to create resources via ansible → CFN and i get an error i can’t understand Failed to create stack pfranks-VPC: Parameter validation failed:\\nUnknown parameter in input: "ClientRequestTok…

---

## [Set up a check for the patching logs in the nodes](https://forum.ansible.com/t/set-up-a-check-for-the-patching-logs-in-the-nodes/26804)

<div class="topic-metadata">

**Author:** [@Shreela\_Roy](https://forum.ansible.com/u/Shreela_Roy)\
**Replies:** 4\
**Last updated:** [April 3, 2018, 8:12pm UTC](https://forum.ansible.com/t/set-up-a-check-for-the-patching-logs-in-the-nodes/26804 "2018-04-03T20:12:40Z")

</div>

I am running an ansible playbook for patching the nodes from the control server. I want to set up a check which would check for the word COMPLETED in the file: something like: /var/log/12-2017PM-PATCH.log| grep -o COMP…

---

## [Absurd run\_once behavior, skipping entirely if first node fails a when test](https://forum.ansible.com/t/absurd-run-once-behavior-skipping-entirely-if-first-node-fails-a-when-test/27044)

<div class="topic-metadata">

**Author:** [@Alex\_Hunt](https://forum.ansible.com/u/Alex_Hunt)\
**Replies:** 18\
**Last updated:** [April 3, 2018, 7:15pm UTC](https://forum.ansible.com/t/absurd-run-once-behavior-skipping-entirely-if-first-node-fails-a-when-test/27044 "2018-04-03T19:15:27Z")

</div>

When running a task with run\_once, if the first node is skipped, the entire task is skipped, rather than running on the first host that is not skipped. This behavior is not what is intuitively understood, this behavior …

---

## [How do you add an EC2 instance created with ec2 module to ~/.ssh/known\_hosts](https://forum.ansible.com/t/how-do-you-add-an-ec2-instance-created-with-ec2-module-to-ssh-known-hosts/27181)

<div class="topic-metadata">

**Author:** [@Tim\_Stewart](https://forum.ansible.com/u/Tim_Stewart)\
**Replies:** 0\
**Last updated:** [April 3, 2018, 5:36pm UTC](https://forum.ansible.com/t/how-do-you-add-an-ec2-instance-created-with-ec2-module-to-ssh-known-hosts/27181 "2018-04-03T17:36:46Z")

</div>

Let’s say I have this ec2 task (taken from the documentation) in a file named site.yml: \` Basic provisioning example ec2: key\_name: mykey instance\_type: t2.micro image: ami-123456 wait: yes group: webserver cou…

---

## [Config multiple devices](https://forum.ansible.com/t/config-multiple-devices/27166)

<div class="topic-metadata">

**Author:** [@Juraj\_Papic1](https://forum.ansible.com/u/Juraj_Papic1)\
**Replies:** 3\
**Last updated:** [April 3, 2018, 5:05pm UTC](https://forum.ansible.com/t/config-multiple-devices/27166 "2018-04-03T17:05:20Z")

</div>

all, I have to configure multiple devices with different configurations, how can I run a single playbook and separate the configurations for each device? .

---

## [having a ssh connection failure between visual studio and ansible server. But playbook works fine between to two servers](https://forum.ansible.com/t/having-a-ssh-connection-failure-between-visual-studio-and-ansible-server-but-playbook-works-fine-between-to-two-servers/27180)

<div class="topic-metadata">

**Author:** [@workarea448](https://forum.ansible.com/u/workarea448)\
**Replies:** 0\
**Last updated:** [April 3, 2018, 4:44pm UTC](https://forum.ansible.com/t/having-a-ssh-connection-failure-between-visual-studio-and-ansible-server-but-playbook-works-fine-between-to-two-servers/27180 "2018-04-03T16:44:12Z")

</div>

Can any provide me what should i provide and modify in ansible server. even though i have given RUN PLAYBOOK details in vsts getting below error. please help me 2018-03-28T23:20:19.5242922Z ##\[section\]Starting: Run play…

---

## [Outputs to TXT & Compare](https://forum.ansible.com/t/outputs-to-txt-compare/27178)

<div class="topic-metadata">

**Author:** [@Juraj\_Papic1](https://forum.ansible.com/u/Juraj_Papic1)\
**Replies:** 0\
**Last updated:** [April 3, 2018, 12:42pm UTC](https://forum.ansible.com/t/outputs-to-txt-compare/27178 "2018-04-03T12:42:48Z")

</div>

Hi all, I have a playbook that grabas a config from a Network device, the issue is how can I configure the output so it can have the time stamp, on the name because it always saves the file with the same name. If I can …

---

## [Ansible command-line like verbose \> 3 using python API 2.0](https://forum.ansible.com/t/ansible-command-line-like-verbose-3-using-python-api-2-0/27176)

<div class="topic-metadata">

**Author:** [@Suren\_Baskaran](https://forum.ansible.com/u/Suren_Baskaran)\
**Replies:** 0\
**Last updated:** [April 3, 2018, 11:33am UTC](https://forum.ansible.com/t/ansible-command-line-like-verbose-3-using-python-api-2-0/27176 "2018-04-03T11:33:25Z")

</div>

Hi So when we run a ansible playbook in command line with -vvv \[ verbosity=3\] we get all these below information like “Task path” , “using module” and the internals of how each hosts gets connectivity established. TASK…

---

## [Ansible 2.4.4 RC2 is ready for testing](https://forum.ansible.com/t/ansible-2-4-4-rc2-is-ready-for-testing/27160)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 1\
**Last updated:** [April 3, 2018, 9:10am UTC](https://forum.ansible.com/t/ansible-2-4-4-rc2-is-ready-for-testing/27160 "2018-04-03T09:10:24Z")

</div>

For those who are waiting a bit to upgrade to Ansible-2.5.x, we're happy to announce that RC2 for 2.4.4 is now available for testing! How do you get it?

---

## [EOF occurred in violation of protocol](https://forum.ansible.com/t/eof-occurred-in-violation-of-protocol/27174)

<div class="topic-metadata">

**Author:** [@chanond](https://forum.ansible.com/u/chanond)\
**Replies:** 1\
**Last updated:** [April 3, 2018, 8:09am UTC](https://forum.ansible.com/t/eof-occurred-in-violation-of-protocol/27174 "2018-04-03T08:09:16Z")

</div>

I am setting up ansible on a new device using the following step. Machine setup: Windows 10 with WSL enabled sudo apt-get-y install python-pip python-dev libffi-dev libssl-dev pip install ansible --user echoPATH=$HOME/…

---

## [Check for a string value in a log file in a path and match and proceed accordingly using ansible find module](https://forum.ansible.com/t/check-for-a-string-value-in-a-log-file-in-a-path-and-match-and-proceed-accordingly-using-ansible-find-module/27173)

<div class="topic-metadata">

**Author:** [@Shreela\_Roy](https://forum.ansible.com/u/Shreela_Roy)\
**Replies:** 0\
**Last updated:** [April 3, 2018, 5:59am UTC](https://forum.ansible.com/t/check-for-a-string-value-in-a-log-file-in-a-path-and-match-and-proceed-accordingly-using-ansible-find-module/27173 "2018-04-03T05:59:03Z")

</div>

What I want to achieve here is check the log file: 12-2017PM-PATCH.log in /var/log and find for the word COMPLETED in it and return to me the output for each hosts in Inventory . What would be the syntax to put the sea…

---

## [Ansible Azure create VM with Java installed](https://forum.ansible.com/t/ansible-azure-create-vm-with-java-installed/27168)

<div class="topic-metadata">

**Author:** [@Bubul\_Medhi](https://forum.ansible.com/u/Bubul_Medhi)\
**Replies:** 2\
**Last updated:** [April 2, 2018, 7:28pm UTC](https://forum.ansible.com/t/ansible-azure-create-vm-with-java-installed/27168 "2018-04-02T19:28:28Z")

</div>

Hi, I am new to Ansible. I have two separate playbooks to create VM and Install Java on it. I am trying to create a single playbook which creates an VM with latest Java installed on it. Please help. Regards, Uday

---

## [Ansible ad hoc =\> stop after first host failed?](https://forum.ansible.com/t/ansible-ad-hoc-stop-after-first-host-failed/27169)

<div class="topic-metadata">

**Author:** [@Cappu](https://forum.ansible.com/u/Cappu)\
**Replies:** 0\
**Last updated:** [April 2, 2018, 10:01am UTC](https://forum.ansible.com/t/ansible-ad-hoc-stop-after-first-host-failed/27169 "2018-04-02T10:01:31Z")

</div>

e.g.: ansible my\_host\_group -m shell -a “systemctl restart my\_service” --fork 1 is it possible to stop when the first host failed?

---

## [couldn't install 'nginx' on node machines using ansible](https://forum.ansible.com/t/couldnt-install-nginx-on-node-machines-using-ansible/27163)

<div class="topic-metadata">

**Author:** [@Tharak](https://forum.ansible.com/u/Tharak)\
**Replies:** 1\
**Last updated:** [March 31, 2018, 6:14pm UTC](https://forum.ansible.com/t/couldnt-install-nginx-on-node-machines-using-ansible/27163 "2018-03-31T18:14:58Z")

</div>

nginx.yml file

---

## [Looping through list/array values](https://forum.ansible.com/t/looping-through-list-array-values/27151)

<div class="topic-metadata">

**Author:** [@gtreynolds](https://forum.ansible.com/u/gtreynolds)\
**Replies:** 3\
**Last updated:** [March 31, 2018, 5:41am UTC](https://forum.ansible.com/t/looping-through-list-array-values/27151 "2018-03-31T05:41:07Z")

</div>

Hello Everyone, I’m new to Ansible/yaml and have been trying to develop some basic playbooks to assist with some simple deployment/verification tasks. I have a simple playbook/play that is using the uri module to make a…

---

## [How to properly iterate over an array and set\_fact when the array can be variable length?](https://forum.ansible.com/t/how-to-properly-iterate-over-an-array-and-set-fact-when-the-array-can-be-variable-length/27155)

<div class="topic-metadata">

**Author:** [@Dayton\_Jones](https://forum.ansible.com/u/Dayton_Jones)\
**Replies:** 3\
**Last updated:** [March 30, 2018, 8:05pm UTC](https://forum.ansible.com/t/how-to-properly-iterate-over-an-array-and-set-fact-when-the-array-can-be-variable-length/27155 "2018-03-30T20:05:21Z")

</div>

I’m trying to use the efs module to create EFS volumes dynamically in AWS/EC2 by getting the list of subnets/security groups for a VPC. My problem is some VPCs have 2 subnets, some have 3, etc - so the tasks below fail. …

---

## [Depreciated \`ask\_sudo\_pass\` works while new-hotness \`ask\_become\_pass\` fails](https://forum.ansible.com/t/depreciated-ask-sudo-pass-works-while-new-hotness-ask-become-pass-fails/27159)

<div class="topic-metadata">

**Author:** [@Matthew\_Wyant](https://forum.ansible.com/u/Matthew_Wyant)\
**Replies:** 2\
**Last updated:** [March 30, 2018, 4:14pm UTC](https://forum.ansible.com/t/depreciated-ask-sudo-pass-works-while-new-hotness-ask-become-pass-fails/27159 "2018-03-30T16:14:15Z")

</div>

I’m in the middle of migrating our Ansible projects to 2.5. Specifically, moving to the new network\_cli connection module. So far, everything is working well, except using the become framework. The short of it is, in an…

---

## [How to properyly set up target groups for an application load balancer (ALB)?](https://forum.ansible.com/t/how-to-properyly-set-up-target-groups-for-an-application-load-balancer-alb/27143)

<div class="topic-metadata">

**Author:** [@Tim\_Stewart](https://forum.ansible.com/u/Tim_Stewart)\
**Replies:** 3\
**Last updated:** [March 30, 2018, 3:07pm UTC](https://forum.ansible.com/t/how-to-properyly-set-up-target-groups-for-an-application-load-balancer-alb/27143 "2018-03-30T15:07:35Z")

</div>

Hi, Background: We are developing a system using a Microservices approach and deploying it with Ansible 2.5.0. I’m writing a site.yml playbook that will provision two Ubuntu 16.04 servers for each of eight different m…

---

## [How to use ansible-vault encrypt\_string](https://forum.ansible.com/t/how-to-use-ansible-vault-encrypt-string/27148)

<div class="topic-metadata">

**Author:** [@eric\_landers](https://forum.ansible.com/u/eric_landers)\
**Replies:** 1\
**Last updated:** [March 30, 2018, 9:03am UTC](https://forum.ansible.com/t/how-to-use-ansible-vault-encrypt-string/27148 "2018-03-30T09:03:11Z")

</div>

I’m trying to encrypt a password to use in a playbook but I don’t understand what the parameters mean when running the encrypt string command. Let’s say my password is Password!123 Do I run the command like this? \[roo…

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

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