# Create a Array of integer

**URL:** <https://forum.ansible.com/t/create-a-array-of-integer/23724>\
**Category:** Ansible Project\
**Created:** [February 14, 2017, 8:55am UTC](https://forum.ansible.com/t/create-a-array-of-integer/23724 "2017-02-14T08:55:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian\_Iuga](https://avatars.discourse-cdn.com/v4/letter/c/34f0e0/32.png) [@Christian\_Iuga](https://forum.ansible.com/u/Christian_Iuga)\
**Post date:** [February 14, 2017, 8:55am UTC](https://forum.ansible.com/t/create-a-array-of-integer/23724/1 "2017-02-14T08:55:59Z")

</div>

Hi,

To manage ldap entry ( via new ansible modules ldap\_attr and ldap\_entry ) i need a different uidNumber than already exist

to making it i’m doing these jobs :

- name: Initialize an empty list for our strings  
set\_fact:  
uidRange: 
- name: create array  
set\_fact: uidRange=“{{ uidRange }} + [{{ item| to\_json }}]”  
with\_sequence: start=5000 end=6000

then on my code, i making a array difference with uidNumber already exist ( via\*\*[ansible-plugin-lookup\_ldap](https://github.com/quinot/ansible-plugin-lookup_ldap)\*\*

) ( uidNumber=“{{ uidRange| difference(uidUsed) |min }}” )

But i’m not fully satify as the task “create array” create lot of output

adding the option “no\_log: True” is not helping it’s replace all iteration with censored due to no\_log

Do you known how to disable output of a task or have you a better way to create a array of integer ?

---

<div class="post-metadata">

**Author:** ![Stankovic\_Marko](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Stankovic\_Marko](https://forum.ansible.com/u/Stankovic_Marko)\
**Post date:** [February 17, 2017, 11:49am UTC](https://forum.ansible.com/t/create-a-array-of-integer/23724/2 "2017-02-17T11:49:36Z")

</div>

Hi,

I tested this (note the '|list' part at the point of variable usage, because I couldn't fit it in set\_fact):
