-
Notifications
You must be signed in to change notification settings - Fork 20
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
Prevent double encryption #1176
base: stackhpc/2023.1
Are you sure you want to change the base?
Conversation
Could you add a description to the PR saying what the problem is you're trying to solve? |
For the record, I would approve this change but I had a hand in writing it. Can someone else approve it? Perhaps @MoteHue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this will successfully template and encrypt wazuh-secrets.yml the first time.
But I'm seeing the second time I run it, ansible tries and fails to interpret the file:
(kayobe) ubuntu@mattc-skc-aio:~/src/kayobe-config$ kayobe playbook run etc/kayobe/ansible/wazuh-secrets.yml
[WARNING]: * Failed to parse /home/ubuntu/venvs/kayobe/share/kayobe/ansible/inventory/hosts with yaml plugin: We were unable to read either as JSON nor YAML, these are the errors we got from each: JSON: Expecting value: line 1 column 1 (char 0) Syntax Error while loading YAML. found unknown escape character The error appears to be in
'/home/ubuntu/src/kayobe-config/etc/kayobe/environments/ci-aio/wazuh-secrets.yml': line 10, column 20, but may be elsewhere in the file depending on the exact syntax problem.
[WARNING]: * Failed to parse /home/ubuntu/venvs/kayobe/share/kayobe/ansible/inventory/hosts with ini plugin: We were unable to read either as JSON nor YAML, these are the errors we got from each: JSON: Expecting value: line 1 column 1 (char 0) Syntax Error while loading YAML. found unknown escape character The error appears to be in
'/home/ubuntu/src/kayobe-config/etc/kayobe/environments/ci-aio/wazuh-secrets.yml': line 10, column 20, but may be elsewhere in the file depending on the exact syntax problem.
ERROR! Completely failed to parse inventory source /home/ubuntu/venvs/kayobe/share/kayobe/ansible/inventory/hosts
Kayobe playbook(s) etc/kayobe/ansible/wazuh-secrets.yml exited 1
@Alex-Welsh This may explain the previous formatting of the script. |
No description provided.