# Register variable in another task

**URL:** <https://forum.ansible.com/t/register-variable-in-another-task/36530>\
**Category:** Ansible Project\
**Created:** [April 13, 2022, 8:00pm UTC](https://forum.ansible.com/t/register-variable-in-another-task/36530 "2022-04-13T20:00:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabz\_Modz](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@Gabz\_Modz](https://forum.ansible.com/u/Gabz_Modz)\
**Post date:** [April 13, 2022, 8:00pm UTC](https://forum.ansible.com/t/register-variable-in-another-task/36530/1 "2022-04-13T20:00:02Z")

</div>

Hi, I hope you are well

Im blocked to register variable to use in other task:

Here is the tree structure:

└── ansible-role  
├── add\_user.yml  
├── collections  
│ └── requirements.yml  
├── Export-Test.csv  
├── roles  
├── gargentieri.search  
│ └── tasks  
│ └── main.yml  
├── gargentieri.csv  
└── tasks  
└── main.yml

I have a CSV file in list with user information for info retrieval and I would like to use it in another role.

Here is the add\_user.yml playbook that is running:
