Hello,
I was wondering if it’s possible to do something like this scenario:
- Create a bunch of users using a with_items loop, then notify #2
- Set the password on those users using the with_items loop
- Then at a later date, I add more users to the script and run again, but only change the password for those users that were not created.
Thanks,
Andrew
I did this a different way to accomplish it. I created an external task and included that task looping through each user. So like this:
External task (pseudo-yaml):
Then in the playbook:
- include myTask.yml $item
with_items:
- user1
- user2
This is good!
We should put this on our Tips & Tricks page (which is sort of in
early pull request territory)
Sure, I’d be happy to submit something.
We are trying to push this to https://coderwall.com/p/t/ansible --
feel free to contribute!