# How to append items to a list inside a nested structure

**URL:** <https://forum.ansible.com/t/how-to-append-items-to-a-list-inside-a-nested-structure/32360>\
**Category:** Ansible Project\
**Created:** [March 1, 2020, 5:41pm UTC](https://forum.ansible.com/t/how-to-append-items-to-a-list-inside-a-nested-structure/32360 "2020-03-01T17:41:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [March 1, 2020, 5:41pm UTC](https://forum.ansible.com/t/how-to-append-items-to-a-list-inside-a-nested-structure/32360/1 "2020-03-01T17:41:44Z")

</div>

Hi

I have this structure:

&nbsp;&nbsp;&nbsp;&nbsp;git\_servers:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- host: github.com  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user: git  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repos:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- ansible/ansible  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- cirrusidentity/simplesamlphp-module-authoauth2  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- dnmvisser/ansible  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- simplesamlphp/simplesamlphp  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- winterbe/github-matrix-screensaver  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- host: gitlab.myorg.org  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user: gitlab  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repos:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- ansible/infra2  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- puppet/infra  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- host: gitlab.other.org  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user: git  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repos:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- dnmvisser/deploy1  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- dnmvisser/deploy2  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- dnmvisser/deploy3

Now I want to add a few items to the list of github.com repos.  
What would be a simple way to achieve this?

tnx!
