# Some important features in Ansible that I'd like to see ('creates', 'removes', 'run\_once\_by')

**URL:** <https://forum.ansible.com/t/some-important-features-in-ansible-that-id-like-to-see-creates-removes-run-once-by/20067>\
**Category:** Ansible Project\
**Created:** [December 23, 2015, 4:50am UTC](https://forum.ansible.com/t/some-important-features-in-ansible-that-id-like-to-see-creates-removes-run-once-by/20067 "2015-12-23T04:50:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexey.vazhnov](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@alexey.vazhnov](https://forum.ansible.com/u/alexey.vazhnov)\
**Post date:** [December 23, 2015, 4:50am UTC](https://forum.ansible.com/t/some-important-features-in-ansible-that-id-like-to-see-creates-removes-run-once-by/20067/1 "2015-12-23T04:50:07Z")

</div>

Hi!

I want to suggest a few major and valuable, as I see it, features and invite community to discuss:

- Add ‘creates’ and ‘removes’ parameters for any task, not only for modules like ‘shell’, as it works now.
- Add ‘run\_once\_by’ parameter for running task once for each unique value of ‘run\_once\_by’.

For example: I have a variable ‘ec2\_region’ and need to create security groups once in region, so I’ll able to do the following:

`

- name:  
sudo: False  
delegate\_to: 127.0.0.1  
run\_once\_by: “{{ ec2\_region }}”  
ec2\_group:  
…  
`

So, I think these are may be pretty useful and often appliable for practic usage.

---

<div class="post-metadata">

**Author:** ![alexey.vazhnov](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@alexey.vazhnov](https://forum.ansible.com/u/alexey.vazhnov)\
**Post date:** [January 19, 2016, 8:23am UTC](https://forum.ansible.com/t/some-important-features-in-ansible-that-id-like-to-see-creates-removes-run-once-by/20067/2 "2016-01-19T08:23:34Z")

</div>

Moved to «Ansible Development» [https://groups.google.com/d/msg/ansible-devel/kYUi8fvKZMI/vRdYrKYbFwAJ](https://groups.google.com/d/msg/ansible-devel/kYUi8fvKZMI/vRdYrKYbFwAJ)
