Skip to content
Snippets Groups Projects
Commit 025f21a0 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#85 Linting

parent f0170d5b
No related branches found
No related tags found
No related merge requests found
---
letsencrypt_pause_services: []
......@@ -4,7 +4,7 @@
- block:
- name: Deploy Cert
shell: openssl {{ cert.export.type }} -export -out /tmp/{{ cert.domain }}.deploy -inkey privkey.pem -in cert.pem -certfile chain.pem -password pass:
shell: 'openssl {{ cert.export.type }} -export -out /tmp/{{ cert.domain }}.deploy -inkey privkey.pem -in cert.pem -certfile chain.pem -password pass:'
args:
chdir: /etc/letsencrypt/live/{{ cert.domain }}
......
......@@ -21,8 +21,8 @@
- name: Force certbot to use Python 3
lineinfile:
path: '{{ item }}'
regexp: ^#!/usr/bin/python$
line: #!/usr/bin/python3
regexp: '^#!/usr/bin/python$'
line: '#!/usr/bin/python3'
with_items:
- /usr/local/bin/certbot
- /usr/bin/certbot
......
......@@ -9,36 +9,36 @@
- block:
- name: Ensure LetsEncrypt Directory
file:
path: /etc/letsencrypt
state: directory
- name: Check Existing Certs
stat:
path: /etc/letsencrypt/live
register: letsencrypt_certs_available
failed_when: no
changed_when: no
tags:
- renew
- import_tasks: install.yml
- include_tasks: cert.yml
with_items: '{{ letsencrypt_certificates|default([]) }}'
loop_control:
loop_var: domain
tags:
- Certs
- import_tasks: renew.yml
when: letsencrypt_certs_available is defined and letsencrypt_certs_available.stat.exists and (proxy_active is not defined or proxy_active)
tags:
- renew
- import_tasks: ../../haproxy/tasks/proxypool.yml
tags:
- renew
- name: Ensure LetsEncrypt Directory
file:
path: /etc/letsencrypt
state: directory
- name: Check Existing Certs
stat:
path: /etc/letsencrypt/live
register: letsencrypt_certs_available
failed_when: no
changed_when: no
tags:
- renew
- import_tasks: install.yml
- include_tasks: cert.yml
with_items: '{{ letsencrypt_certificates|default([]) }}'
loop_control:
loop_var: domain
tags:
- Certs
- import_tasks: renew.yml
when: letsencrypt_certs_available is defined and letsencrypt_certs_available.stat.exists and (proxy_active is not defined or proxy_active)
tags:
- renew
- import_tasks: ../../haproxy/tasks/proxypool.yml
tags:
- renew
when: not excluded_roles or "letsencrypt" not in excluded_roles
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment