# Ansible Project

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

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

**Page:** 225

---

## [Working Docker image for Ansible Galaxy](https://forum.ansible.com/t/working-docker-image-for-ansible-galaxy/28983)

<div class="topic-metadata">

**Author:** [@Thad\_Guidry](https://forum.ansible.com/u/Thad_Guidry)\
**Replies:** 4\
**Last updated:** [November 9, 2018, 3:02am UTC](https://forum.ansible.com/t/working-docker-image-for-ansible-galaxy/28983 "2018-11-09T03:02:14Z")

</div>

Is there a working docker image for Ansible Galaxy ? I noticed these under https://github.com/ansible/galaxy/tree/devel/scripts/docker/release but couldn’t get a regular docker run to work… C:\\Users\\eguitha\> docker ru…

---

## [Replace command not picking up on my regex](https://forum.ansible.com/t/replace-command-not-picking-up-on-my-regex/28981)

<div class="topic-metadata">

**Author:** [@EspressoBeanies](https://forum.ansible.com/u/EspressoBeanies)\
**Replies:** 0\
**Last updated:** [November 8, 2018, 5:32pm UTC](https://forum.ansible.com/t/replace-command-not-picking-up-on-my-regex/28981 "2018-11-08T17:32:52Z")

</div>

I’m trying to use Ansible to add several lines of text after a specific line in a config file using the replace module and for whatever reason when I run the playbook, I get back OK responses instead of CHANGED. Below is…

---

## [Question on virt - Manages virtual machines supported by libvirt](https://forum.ansible.com/t/question-on-virt-manages-virtual-machines-supported-by-libvirt/28980)

<div class="topic-metadata">

**Author:** [@Harry\_Zhang](https://forum.ansible.com/u/Harry_Zhang)\
**Replies:** 0\
**Last updated:** [November 8, 2018, 3:52pm UTC](https://forum.ansible.com/t/question-on-virt-manages-virtual-machines-supported-by-libvirt/28980 "2018-11-08T15:52:16Z")

</div>

Hi, Everybody, I read the “virt - Manages virtual machines supported by libvirt” page and like to try the tool. I search through the internet and ansible-galaxy for the roles but I could not find them. May I ask where t…

---

## [Multiple tasks with same prompt values](https://forum.ansible.com/t/multiple-tasks-with-same-prompt-values/28978)

<div class="topic-metadata">

**Author:** [@Bozo](https://forum.ansible.com/u/Bozo)\
**Replies:** 0\
**Last updated:** [November 8, 2018, 3:11pm UTC](https://forum.ansible.com/t/multiple-tasks-with-same-prompt-values/28978 "2018-11-08T15:11:24Z")

</div>

Hello, I am trying to create playbook for data center configuration changes. I would like to be prompted once for name of input file, username and pass and those values to be used trough all tasks on different hosts. S…

---

## [Issue with redhat\_subscription module #48302](https://forum.ansible.com/t/issue-with-redhat-subscription-module-48302/28970)

<div class="topic-metadata">

**Author:** [@fabietto82](https://forum.ansible.com/u/fabietto82)\
**Replies:** 1\
**Last updated:** [November 8, 2018, 10:10am UTC](https://forum.ansible.com/t/issue-with-redhat-subscription-module-48302/28970 "2018-11-08T10:10:49Z")

</div>

Hi, I'm trying to register new machines with ansible. Prior using ansible I used to run: subscription-manager register --org="MYCOMPANY" --activationkey="MYKEY" In my ansible playbook i used redhat\_subscription modul…

---

## [S3 list result to file or variable](https://forum.ansible.com/t/s3-list-result-to-file-or-variable/28964)

<div class="topic-metadata">

**Author:** [@tonitsh](https://forum.ansible.com/u/tonitsh)\
**Replies:** 3\
**Last updated:** [November 7, 2018, 9:05pm UTC](https://forum.ansible.com/t/s3-list-result-to-file-or-variable/28964 "2018-11-07T21:05:40Z")

</div>

Hi. Im trying to automate our restore machine testing. At one point i need to connect to amason S3 and download the latest data from a bucket. s3://bucet.name/application\_name/DATE/version/files1-3 What i have tried t…

---

## [Prevent ansible from re-ordering JSON?](https://forum.ansible.com/t/prevent-ansible-from-re-ordering-json/28956)

<div class="topic-metadata">

**Author:** [@Eddie\_Mashayev](https://forum.ansible.com/u/Eddie_Mashayev)\
**Replies:** 4\
**Last updated:** [November 7, 2018, 3:43pm UTC](https://forum.ansible.com/t/prevent-ansible-from-re-ordering-json/28956 "2018-11-07T15:43:43Z")

</div>

Hey, I’ve this weird situation when I’m passing json(as a string) it still reordering it’s order and not consistent. Example: my\_var: | { "b": 1 "a": 2 } when running ansible with \` name: “Set up json …

---

## [How to reopen issue in ansible (github)](https://forum.ansible.com/t/how-to-reopen-issue-in-ansible-github/28963)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 1\
**Last updated:** [November 7, 2018, 3:15pm UTC](https://forum.ansible.com/t/how-to-reopen-issue-in-ansible-github/28963 "2018-11-07T15:15:48Z")

</div>

Hi @all, could someone please tell me and/or reopen the following issue: https://github.com/ansible/ansible/issues/25046 The issue is closed and is supposed to be fixed for 2.3 , it still exists in 2.6, though Thanks…

---

## [copying file.j2 to the mahine returning error](https://forum.ansible.com/t/copying-file-j2-to-the-mahine-returning-error/28965)

<div class="topic-metadata">

**Author:** [@nadim\_mansour](https://forum.ansible.com/u/nadim_mansour)\
**Replies:** 0\
**Last updated:** [November 7, 2018, 3:09pm UTC](https://forum.ansible.com/t/copying-file-j2-to-the-mahine-returning-error/28965 "2018-11-07T15:09:30Z")

</div>

I have a configuration file.j2 , I am trying to copy the file from ansible templates to destination(server) it keeps giving the below error fatal: \[uat\_cdxdb\]: FAILED! =\> {“changed”: false, “msg”: “Template source file…

---

## [Ansible to automate Docker Datacenter backup](https://forum.ansible.com/t/ansible-to-automate-docker-datacenter-backup/27235)

<div class="topic-metadata">

**Author:** [@Derek\_Lai](https://forum.ansible.com/u/Derek_Lai)\
**Replies:** 1\
**Last updated:** [November 7, 2018, 12:22pm UTC](https://forum.ansible.com/t/ansible-to-automate-docker-datacenter-backup/27235 "2018-11-07T12:22:59Z")

</div>

Hi Anyone used Ansible to automate tasks in Docker DataCenter (EE)? It looks like it is using a Linux variant, Moby Linux. I am able to ssh into it to perform the backup operation. When I tried to do ansible ddc-ucp -m …

---

## [Delegate\_to register when](https://forum.ansible.com/t/delegate-to-register-when/20791)

<div class="topic-metadata">

**Author:** [@Steve\_Irvine](https://forum.ansible.com/u/Steve_Irvine)\
**Replies:** 2\
**Last updated:** [November 7, 2018, 10:56am UTC](https://forum.ansible.com/t/delegate-to-register-when/20791 "2018-11-07T10:56:36Z")

</div>

Hi Everyone, Quick question, I have a play where I put a laravel queue system in maintenance mode before running updates against it’s consumers. I’d like to check for the existence of a file with stat on the queue mana…

---

## [uri POST with xml template](https://forum.ansible.com/t/uri-post-with-xml-template/28957)

<div class="topic-metadata">

**Author:** [@Leo-San](https://forum.ansible.com/u/Leo-San)\
**Replies:** 2\
**Last updated:** [November 7, 2018, 5:53am UTC](https://forum.ansible.com/t/uri-post-with-xml-template/28957 "2018-11-07T05:53:05Z")

</div>

Hey everyone, so, I am trying to upload an xml template with the uri module, but I cannot find a way which is working. Mostly I am getting the error “Error in XML file. Possible mismatch between resource specified in th…

---

## [CredSSP error on windows machine - ansible](https://forum.ansible.com/t/credssp-error-on-windows-machine-ansible/28953)

<div class="topic-metadata">

**Author:** [@sase\_kumar](https://forum.ansible.com/u/sase_kumar)\
**Replies:** 3\
**Last updated:** [November 6, 2018, 8:59pm UTC](https://forum.ansible.com/t/credssp-error-on-windows-machine-ansible/28953 "2018-11-06T20:59:41Z")

</div>

Hi Folks., I’m trying to run playbooks on win2016 after enabling enable-credssp on remote machine and other prerequisite and mentioned ansible\_winrm\_transport as credssp but now I’m facing this error from ansible “msg…

---

## [include\_vars for defaults](https://forum.ansible.com/t/include-vars-for-defaults/15105)

<div class="topic-metadata">

**Author:** [@matt](https://forum.ansible.com/u/matt)\
**Replies:** 10\
**Last updated:** [November 6, 2018, 8:11pm UTC](https://forum.ansible.com/t/include-vars-for-defaults/15105 "2018-11-06T20:11:19Z")

</div>

Hi, I’m trying to write generic roles for particular applications and keep hitting across the same problem: I want to set role default based on the operating system or other facts, like include\_vars, but this doesn’t a…

---

## [Is there any location ansible async task stores the result for further verification?](https://forum.ansible.com/t/is-there-any-location-ansible-async-task-stores-the-result-for-further-verification/28960)

<div class="topic-metadata">

**Author:** [@sase\_kumar](https://forum.ansible.com/u/sase_kumar)\
**Replies:** 0\
**Last updated:** [November 6, 2018, 6:03pm UTC](https://forum.ansible.com/t/is-there-any-location-ansible-async-task-stores-the-result-for-further-verification/28960 "2018-11-06T18:03:20Z")

</div>

Hi Folks, I’m trying to run hour long script through ansible which will take more then one hour on the remote machine to finish and i dont want ansible to wait for that I have defined async variable for the task and its…

---

## [Galaxy Content Scoring Beta](https://forum.ansible.com/t/galaxy-content-scoring-beta/28959)

<div class="topic-metadata">

**Author:** [@David\_Newswanger](https://forum.ansible.com/u/David_Newswanger)\
**Replies:** 0\
**Last updated:** [November 6, 2018, 4:46pm UTC](https://forum.ansible.com/t/galaxy-content-scoring-beta/28959 "2018-11-06T16:46:46Z")

</div>

Hi All In the upcoming release of Ansible Galaxy we’re adding scores to content in Galaxy. These scores will include two components: a community score based off of a short survey added to each repository page and a qual…

---

## [Default timeout for windows modules ??????](https://forum.ansible.com/t/default-timeout-for-windows-modules/28952)

<div class="topic-metadata">

**Author:** [@sase\_kumar](https://forum.ansible.com/u/sase_kumar)\
**Replies:** 2\
**Last updated:** [November 6, 2018, 3:40pm UTC](https://forum.ansible.com/t/default-timeout-for-windows-modules/28952 "2018-11-06T15:40:56Z")

</div>

Hi folks, I’m trying to run a hour long powershell script which needs to be executed on remote machine using win\_shell module My doubts here are How much is the default timeout for each tasks? is there seperate timeo…

---

## [jinja2: escaping special chars](https://forum.ansible.com/t/jinja2-escaping-special-chars/28954)

<div class="topic-metadata">

**Author:** [@christian.tremel](https://forum.ansible.com/u/christian.tremel)\
**Replies:** 3\
**Last updated:** [November 6, 2018, 2:44pm UTC](https://forum.ansible.com/t/jinja2-escaping-special-chars/28954 "2018-11-06T14:44:41Z")

</div>

i want to generate a config for syslogd from template. as there are some “special” chars in the config, the ‘\*’ char in this case, ansible has some problems to run the template. how to i tell ansible/jinja2 to treat the…

---

## [values empty for variables - ansible](https://forum.ansible.com/t/values-empty-for-variables-ansible/28958)

<div class="topic-metadata">

**Author:** [@nadim\_mansour](https://forum.ansible.com/u/nadim_mansour)\
**Replies:** 0\
**Last updated:** [November 6, 2018, 2:41pm UTC](https://forum.ansible.com/t/values-empty-for-variables-ansible/28958 "2018-11-06T14:41:51Z")

</div>

I have the below variables , In some servers I just need to keep the value empty as I dont want to open the port but when I keep it empty its returning error . any solution ??? any I putting my variables in all under g…

---

## [Ansible Mail Module Failing](https://forum.ansible.com/t/ansible-mail-module-failing/26911)

<div class="topic-metadata">

**Author:** [@Simon\_Hayes](https://forum.ansible.com/u/Simon_Hayes)\
**Replies:** 3\
**Last updated:** [November 6, 2018, 1:29pm UTC](https://forum.ansible.com/t/ansible-mail-module-failing/26911 "2018-11-06T13:29:40Z")

</div>

I’m running a simple playbook to report on server configurations which is formatted into an html file from a template. I use the mail module to attach the html file into the body of the mail as follows: - hosts: localho…

---

## [Ansible + jinja2 macro](https://forum.ansible.com/t/ansible-jinja2-macro/28905)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 3\
**Last updated:** [November 6, 2018, 12:37pm UTC](https://forum.ansible.com/t/ansible-jinja2-macro/28905 "2018-11-06T12:37:37Z")

</div>

Hi @all, I am trying to use a macro in an ansible template: {% macro logging(ltype) %}\` \`\` {% if ltype == 'fluentd' %} logging: driver: 'fluentd' options: tag: "{{ app\_name }}.{{ '{{' }}.Name{{ '}}' }}" …

---

## [Regexp failure:  Unmatched group](https://forum.ansible.com/t/regexp-failure-unmatched-group/28947)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 5\
**Last updated:** [November 6, 2018, 12:19pm UTC](https://forum.ansible.com/t/regexp-failure-unmatched-group/28947 "2018-11-06T12:19:24Z")

</div>

I am getting a failure with the latter half of my task. I replaced the working stuff with … According to a regexp tester, every group does have something, and I don’t have empty groups. https://regex101.com/r/MNkwaD/1 …

---

## [docker\_container to mongo auth](https://forum.ansible.com/t/docker-container-to-mongo-auth/28955)

<div class="topic-metadata">

**Author:** [@15911133389](https://forum.ansible.com/u/15911133389)\
**Replies:** 0\
**Last updated:** [November 6, 2018, 11:18am UTC](https://forum.ansible.com/t/docker-container-to-mongo-auth/28955 "2018-11-06T11:18:59Z")

</div>

Why can I only add admin tables? I try to change to other or nonexistent tables. mongodb\_user: database: admin update is error name: pangu password: sdvxcdlskadlk1231c state: present roles: db: aitc\_matrix role…

---

## [Question on using Ansible to upgrade Linux with config file overwrites](https://forum.ansible.com/t/question-on-using-ansible-to-upgrade-linux-with-config-file-overwrites/28945)

<div class="topic-metadata">

**Author:** [@EspressoBeanies](https://forum.ansible.com/u/EspressoBeanies)\
**Replies:** 2\
**Last updated:** [November 6, 2018, 10:12am UTC](https://forum.ansible.com/t/question-on-using-ansible-to-upgrade-linux-with-config-file-overwrites/28945 "2018-11-06T10:12:05Z")

</div>

What’s the best way to use Ansible to manage software updates where installer config files have the potential to overwrite the config settings you currently have in place? I’m trying to see if there’s a way for Ansible t…

---

## [Add Host to Group dynamically (or better: design question regarding a hacky solution)](https://forum.ansible.com/t/add-host-to-group-dynamically-or-better-design-question-regarding-a-hacky-solution/28951)

<div class="topic-metadata">

**Author:** [@Daniel1](https://forum.ansible.com/u/Daniel1)\
**Replies:** 0\
**Last updated:** [November 6, 2018, 9:32am UTC](https://forum.ansible.com/t/add-host-to-group-dynamically-or-better-design-question-regarding-a-hacky-solution/28951 "2018-11-06T09:32:53Z")

</div>

Hi everyone, I have a playbook that installs a web application on multiple hosts (one host per customer). The following variable hierarchy would be perfect for my environment: common.yml $environment $environm…

---

## [Ftp - ansible](https://forum.ansible.com/t/ftp-ansible/28943)

<div class="topic-metadata">

**Author:** [@nadim\_mansour](https://forum.ansible.com/u/nadim_mansour)\
**Replies:** 1\
**Last updated:** [November 6, 2018, 4:05am UTC](https://forum.ansible.com/t/ftp-ansible/28943 "2018-11-06T04:05:42Z")

</div>

I have files that I need to transfer from my mac (machine) to windows server and linux server before running several tasks files are binary files and .exe can the files be sent through ftp ? can someone help please

---

## [Restart kestrelservice](https://forum.ansible.com/t/restart-kestrelservice/28924)

<div class="topic-metadata">

**Author:** [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Replies:** 9\
**Last updated:** [November 5, 2018, 10:35pm UTC](https://forum.ansible.com/t/restart-kestrelservice/28924 "2018-11-05T22:35:41Z")

</div>

Hello All, can we have have a play book to restart kestrel service.

---

## [gcp\_compute plugin showing auth failure](https://forum.ansible.com/t/gcp-compute-plugin-showing-auth-failure/28950)

<div class="topic-metadata">

**Author:** [@Murali\_Krishna](https://forum.ansible.com/u/Murali_Krishna)\
**Replies:** 0\
**Last updated:** [November 5, 2018, 10:34pm UTC](https://forum.ansible.com/t/gcp-compute-plugin-showing-auth-failure/28950 "2018-11-05T22:34:24Z")

</div>

SUMMARY I am using gcp\_compute plugin as a inventory source. While on local machine it is working fine but when I try to use this same inventory on GCP VM it is showing ansible-inventory -i ./inventory/gcompute.gcp.yam…

---

## [windows - ansible.. create user and run remaining tasks with the user created](https://forum.ansible.com/t/windows-ansible-create-user-and-run-remaining-tasks-with-the-user-created/28942)

<div class="topic-metadata">

**Author:** [@nadim\_mansour](https://forum.ansible.com/u/nadim_mansour)\
**Replies:** 2\
**Last updated:** [November 5, 2018, 9:12pm UTC](https://forum.ansible.com/t/windows-ansible-create-user-and-run-remaining-tasks-with-the-user-created/28942 "2018-11-05T21:12:31Z")

</div>

In the first task I am creating a user called cbsadmin. In the second task I am copying a file from templates to tmp and then installing oracle is it possible to run the second and third task using the user I created in…

---

## [Manipulating part of a custom variable](https://forum.ansible.com/t/manipulating-part-of-a-custom-variable/28932)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 7\
**Last updated:** [November 5, 2018, 6:00pm UTC](https://forum.ansible.com/t/manipulating-part-of-a-custom-variable/28932 "2018-11-05T18:00:40Z")

</div>

I have a variable called ‘oldid’ set to a value of ‘0004fb0000060000b824b442d236a8b7’ I wish to manipulate it so that I do the following: strip off the last 12 characters (slicing?) Re-add 12 more characters that are …

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

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