# Is this possible?

**URL:** <https://forum.ansible.com/t/is-this-possible/24088>\
**Category:** Ansible Project\
**Created:** [March 28, 2017, 6:49pm UTC](https://forum.ansible.com/t/is-this-possible/24088 "2017-03-28T18:49:36Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [March 28, 2017, 6:49pm UTC](https://forum.ansible.com/t/is-this-possible/24088/1 "2017-03-28T18:49:36Z")

</div>

i want to create some reg entries and i want to pull data and value for it from an url…where i can edit those whenever required and when there is a change there , ansible should pick it and enter that in registry…is it possible? sorry i am new to ansible…

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [March 29, 2017, 11:49am UTC](https://forum.ansible.com/t/is-this-possible/24088/2 "2017-03-29T11:49:19Z")

</div>

There are a lot of options here.

I suggest you try to create a playbook and then ask specific questions when you find part of it that you can’t get working.

All the best,

Jon

---

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [March 29, 2017, 12:44pm UTC](https://forum.ansible.com/t/is-this-possible/24088/3 "2017-03-29T12:44:45Z")

</div>

the problem is i dont even know the existence of such options ☹

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [March 29, 2017, 11:06pm UTC](https://forum.ansible.com/t/is-this-possible/24088/4 "2017-03-29T23:06:30Z")

</div>

Sounds like you might do well to read about win\_regedit module, win\_regnerge module, creating templates, and possibly ansible-pull.

A description of the problem you are trying to solve might help others make some more specific suggestions.

Jon

---

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [March 30, 2017, 8:21am UTC](https://forum.ansible.com/t/is-this-possible/24088/5 "2017-03-30T08:21:43Z")

</div>



---

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [April 1, 2017, 2:55am UTC](https://forum.ansible.com/t/is-this-possible/24088/6 "2017-04-01T02:55:43Z")

</div>

Ping…any replies on how can i achieve this?

---

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [April 2, 2017, 6:13pm UTC](https://forum.ansible.com/t/is-this-possible/24088/7 "2017-04-02T18:13:00Z")

</div>

is the forum alive? i can see most of the questions unanswered…

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [April 2, 2017, 9:04pm UTC](https://forum.ansible.com/t/is-this-possible/24088/8 "2017-04-02T21:04:42Z")

</div>

The group is still alive, you would find most people don't work on a weekend hence the unanswered questions. I haven't looked too closely at your code but it seems to be on the right track. yiu have various options around getting file contents such as using slurp to retrieve the contents of a file on the remote host but you would probably be better off using a lookup or filter on the control host [http://docs.ansible.com/playbooks\_lookups.html](http://docs.ansible.com/playbooks_lookups.html) and [http://docs.ansible.com/playbooks\_filters.html](http://docs.ansible.com/playbooks_filters.html). Lookups only work for files on the control hosts but it gives you options such as parsing an ini file. Ultimately you will have to piece together how to do this as it is your process but I would try to keep in mind if you can change your process to suit your tools more, I.e store the key value reg changes in ansible group vars so your changes are automatically available.

---

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [April 3, 2017, 5:46am UTC](https://forum.ansible.com/t/is-this-possible/24088/9 "2017-04-03T05:46:20Z")

</div>

i dont really know where the head and tail is , a simple example would help me

---

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [April 3, 2017, 12:43pm UTC](https://forum.ansible.com/t/is-this-possible/24088/10 "2017-04-03T12:43:03Z")

</div>

a bit of improvement

---

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [April 4, 2017, 7:12am UTC](https://forum.ansible.com/t/is-this-possible/24088/11 "2017-04-04T07:12:00Z")

</div>

Any replies would be appreciated

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [April 4, 2017, 9:53am UTC](https://forum.ansible.com/t/is-this-possible/24088/12 "2017-04-04T09:53:48Z")

</div>

Have a look at the ‘uri’ module - you can use that to fetch the contents of a .json or .yml file and then register the results from the uri response and use the response values in your call to win\_regedit.

Bear in mind the uri module will need to run on the controller, so use ‘delegate\_to: localhost’ for the uri task.

Hope this helps,

Jon
