Fix ansible lint problems

main
Georg Krause 2021-03-17 20:16:00 +01:00
parent e610c9274f
commit 15045d9229
1 changed files with 4 additions and 10 deletions

View File

@ -21,12 +21,12 @@
- name: Install acme.sh
become: yes
shell: "sh /tmp/acme.sh email={{ acme_email }}"
command: "sh /tmp/acme.sh email={{ acme_email }}"
when: not is_acme_sh_installed.stat.exists
- name: Upgrade acme.sh
become: yes
shell:
command:
cmd: ./acme.sh --upgrade
chdir: ~/.acme.sh
when: is_acme_sh_installed.stat.exists
@ -35,7 +35,7 @@
- name: Issue certificates
become: yes
shell:
command:
cmd: ./acme.sh --issue -d {{ item.name }} -d '*.{{ item.name }}' --dns dns_{{ item.dns_provider }}
chdir: ~/.acme.sh
environment:
@ -64,12 +64,6 @@
path: "/usr/local/bin/cert_reload_{{ item.name }}.sh"
line: "systemctl reload nginx"
create: yes
loop: "{{ domains }}"
- name: Ensure reload script has correct permissions
become: yes
file:
path: "/usr/local/bin/cert_reload_{{ item.name }}.sh"
owner: root
group: root
mode: 0700
@ -77,7 +71,7 @@
- name: Install certificates
become: yes
shell:
command:
cmd: ./acme.sh --install-cert -d "{{ item.name }}" --key-file "{{ certs_dir }}/{{ item.name }}/key.pem" --fullchain-file "{{ certs_dir }}/{{ item.name }}/cert.pem" --reloadcmd "/usr/local/bin/cert_reload_{{ item.name }}.sh"
chdir: ~/.acme.sh
loop: "{{ domains }}"