We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The optional Step Upgrade acme.sh which runs acme.sh --upgrade in the background, produces the output
Upgrade acme.sh
acme.sh --upgrade
[Thu Jun 13 17:31:04 CEST 2024] Already uptodate! [Thu Jun 13 17:31:04 CEST 2024] Upgrade success!
when acme.sh already was up to date when triggering the upgrade.
Yet line 54 in tasks/main.yml only queries if "Upgrade success!" was in stdout. If said string was in stdout, it sets changed to true.
changed
My recommendation is, adding a condition that sets changed to false when Already uptodate! is in stdout.
Already uptodate!
For example this seems to work:
changed_when: - upgrade_result.rc == 0 - "Upgrade success" in upgrade_result.stdout - not("Already uptodate" in upgrade_result.stdout)
Link to the mentioned code: https://github.com/nickjj/ansible-acme-sh/blob/76c835e9f7dd387d1612ff8b4d58c4aaf2d812e1/tasks/main.yml#L54C3-L54C86
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The optional Step
Upgrade acme.sh
which runsacme.sh --upgrade
in the background, produces the outputwhen acme.sh already was up to date when triggering the upgrade.
Yet line 54 in tasks/main.yml only queries if "Upgrade success!" was in stdout. If said string was in stdout, it sets
changed
to true.My recommendation is, adding a condition that sets
changed
to false whenAlready uptodate!
is in stdout.For example this seems to work:
Link to the mentioned code: https://github.com/nickjj/ansible-acme-sh/blob/76c835e9f7dd387d1612ff8b4d58c4aaf2d812e1/tasks/main.yml#L54C3-L54C86
The text was updated successfully, but these errors were encountered: