# Appending/extending variables

**URL:** <https://forum.ansible.com/t/appending-extending-variables/15004>\
**Category:** Ansible Project\
**Created:** [April 12, 2014, 11:05pm UTC](https://forum.ansible.com/t/appending-extending-variables/15004 "2014-04-12T23:05:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ilin](https://avatars.discourse-cdn.com/v4/letter/i/22d042/32.png) [@Ilin](https://forum.ansible.com/u/Ilin)\
**Post date:** [April 12, 2014, 11:05pm UTC](https://forum.ansible.com/t/appending-extending-variables/15004/1 "2014-04-12T23:05:49Z")

</div>

Hi,

I would like to manage cron via a template in /etc/cron.d/ansible\_crontab for example

I would like to have a default variable in the role

crontab:

That will get appended in  
group\_vars/all  
group\_vars/group1

…  
…  
.

host\_vars/host1

…  
…  
.

At the end i will just have to manage one list of dictionaries in my template. Is this possible?

Thanks,  
ilin
