Some important features in Ansible that I'd like to see ('creates', 'removes', 'run_once_by')

60 views
Skip to first unread message

Alexey Vazhnov

unread,
Dec 22, 2015, 11:50:07 PM12/22/15
to Ansible Project
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.

Alexey Vazhnov

unread,
Jan 19, 2016, 3:23:34 AM1/19/16
to Ansible Project
Reply all
Reply to author
Forward
0 new messages