Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Use run_once for api related tasks #716

Merged
merged 2 commits into from
Sep 7, 2020
Merged

Conversation

lksnyder0
Copy link
Contributor

I am proposing a fix for issue #710. By specifying run_once: True for all tasks related to the native user, roles, and license API. The role can avoid unnecessary API calls as well as fixing the issue. I used the same playbook as in the issue report. The ansible log here shows a successful run.

This could be further 'optimized' by delegating all the API calls to localhost. However, this would require the es_api_url to be accessible from the ansible machine which may not always be the case.

@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@jmlrt
Copy link
Member

jmlrt commented Sep 7, 2020

jenkins test this please

Copy link
Member

@jmlrt jmlrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM⛴

@jmlrt jmlrt merged commit a933f3c into elastic:master Sep 7, 2020
This was referenced Oct 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants