Re: [ansible-devel] Looking for generic execute "once-only" practise for Automations

2022-05-11 Thread Timothy A. Dilbert | BMT
From: Brian Coca Sent: 11 May 2022 12:33 To: Timothy A. Dilbert | BMT Cc: Ansible Development Subject: Re: [ansible-devel] Looking for generic execute "once-only" practise for Automations Many ways, just an example: - in a handler update a host

Re: [ansible-devel] Looking for generic execute "once-only" practise for Automations

2022-05-11 Thread Brian Coca
Many ways, just an example: - in a handler update a host_vars/.yml with the list of users already synced, notify when sync tasks run/change - add to sync role/block/tasks a conditional based on the variable cdreated `when: username not in already_processed_users` -- -- Brian Coca --

[ansible-devel] Looking for generic execute "once-only" practise for Automations

2022-05-10 Thread Timothy Dilbert
Hi Guys, We use Ansible to perform a number of integrations with third-party systems. e.g. 1. Sync this user's information from System X to System Y. 2. If the user is a member of AD group "LicenseManagement", send an email to Person Z. 3. etc. In most of our integrations we need