Skip to content
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

acme_sh_renew_time_in_days does not work #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
- name: Install acme.sh
command: >-
./acme.sh --install --log
--days {{ acme_sh_renew_time_in_days }}
{{ "--accountemail " + acme_sh_account_email if acme_sh_account_email else "" }}
args:
chdir: "{{ acme_sh_git_clone_dest }}"
Expand All @@ -48,7 +47,7 @@
args:
chdir: "~/.acme.sh"
when:
- acme_sh_upgrade
- acme_sh_upgrade|bool
- is_acme_sh_installed.stat.exists
- not acme_sh_uninstall
register: upgrade_result
Expand All @@ -69,7 +68,7 @@
args:
chdir: "~/.acme.sh"
when:
- acme_sh_uninstall
- acme_sh_uninstall|bool
- is_acme_sh_installed.stat.exists
become_user: "{{ acme_sh_become_user }}"

Expand Down Expand Up @@ -109,15 +108,15 @@
- item.remove is defined and item.remove
- not acme_sh_uninstall

- name: Remove acme.sh's cloned source code, installation path and log files
- name: Remove the acme.sh cloned source code, installation path and log files
file:
path: "{{ item }}"
state: "absent"
loop:
- "{{ acme_sh_git_clone_dest }}"
- "~/.acme.sh"
when:
- acme_sh_uninstall
- acme_sh_uninstall|bool
become_user: "{{ acme_sh_become_user }}"

- name: Run custom acme.sh command
Expand All @@ -140,6 +139,7 @@
./acme.sh --issue -d {{ item.domains | join(" -d ") }}
--dns {{ item.dns_provider | default(acme_sh_default_dns_provider) }}
--dnssleep {{ item.dns_sleep | default(acme_sh_default_dns_sleep) }}
--days {{ acme_sh_renew_time_in_days }}
{{ "--force" if item.force_issue | default(acme_sh_default_force_issue) else "" }}
{{ "--staging" if item.staging | default(acme_sh_default_staging) else "" }}
{{ "--debug" if item.debug | default(acme_sh_default_debug) else "" }}
Expand Down