Fix ansible lint problems
parent
e610c9274f
commit
15045d9229
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in New Issue