-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reports failed, but is successful #67
Comments
I have a work around. Just run it twice and ignore errors for the first run. I don't like it, but it did get my YAML file with the correct values, so I could keep testing. - name: "manage {{username}}.hash in internal_users.yml file"
yedit:
src: "{{od4es_internal_users_file}}"
key: "{{username}}.hash"
value: "{{ userhash }}"
ignore_errors: true
tags:
- stack
- name: "manage {{username}}.hash in internal_users.yml file"
yedit:
src: "{{od4es_internal_users_file}}"
key: "{{username}}.hash"
value: "{{ userhash }}" |
I'm also seeing this error on RHEL8 using:
I don't have the error on OSX using:
|
The correlation between @jeff-cook s issue and mine is that we both use vagrant and probably are both using the /vagrant folder to run the playbook. Vagrant uses a
Ref: https://github.com/kwoodson/ansible-role-yedit/blob/master/library/yedit.py#L417-L434 The code runs fine within vagrant on a regular xfs/ext/.. filesystem. |
When running the following code it reports as failed. The value is correctly updated.
When the 'hash' already has the matching value it reports "OK" or unchanged.
The file being updated is https://github.com/opendistro-for-elasticsearch/security/blob/master/securityconfig/internal_users.yml
The text was updated successfully, but these errors were encountered: