# How to define a register per server

**URL:** <https://forum.ansible.com/t/how-to-define-a-register-per-server/32733>\
**Category:** Ansible Project\
**Created:** [April 20, 2020, 11:18am UTC](https://forum.ansible.com/t/how-to-define-a-register-per-server/32733 "2020-04-20T11:18:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dudu.c](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Post date:** [April 20, 2020, 11:18am UTC](https://forum.ansible.com/t/how-to-define-a-register-per-server/32733/1 "2020-04-20T11:18:54Z")

</div>

Hi,  
Have a task that disables Ipv6. The task should run only if the ipv6 folder exists.

In order to implement the above, I have 2 tasks,  
the first task checks if a folder exists and saves the output to a register, the second task is to disable IPv6 and will run only if the register from the last task = true.

If I will run the 2 tasks everything will work because the register will reflect the status of the server. If I will run it on multi-server, my **assumption** is that the first task will run on all servers and will include the status of the lastest te server and the second task will run according to the last output.

How can I define a register per server? or maybe my assumption is wrong
