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: [] letsencrypt_pause_services: []
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
- block: - block:
- name: Deploy Cert - 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: args:
chdir: /etc/letsencrypt/live/{{ cert.domain }} chdir: /etc/letsencrypt/live/{{ cert.domain }}
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
- name: Force certbot to use Python 3 - name: Force certbot to use Python 3
lineinfile: lineinfile:
path: '{{ item }}' path: '{{ item }}'
regexp: ^#!/usr/bin/python$ regexp: '^#!/usr/bin/python$'
line: #!/usr/bin/python3 line: '#!/usr/bin/python3'
with_items: with_items:
- /usr/local/bin/certbot - /usr/local/bin/certbot
- /usr/bin/certbot - /usr/bin/certbot
......
...@@ -9,36 +9,36 @@ ...@@ -9,36 +9,36 @@
- block: - block:
- name: Ensure LetsEncrypt Directory - name: Ensure LetsEncrypt Directory
file: file:
path: /etc/letsencrypt path: /etc/letsencrypt
state: directory state: directory
- name: Check Existing Certs - name: Check Existing Certs
stat: stat:
path: /etc/letsencrypt/live path: /etc/letsencrypt/live
register: letsencrypt_certs_available register: letsencrypt_certs_available
failed_when: no failed_when: no
changed_when: no changed_when: no
tags: tags:
- renew - renew
- import_tasks: install.yml - import_tasks: install.yml
- include_tasks: cert.yml - include_tasks: cert.yml
with_items: '{{ letsencrypt_certificates|default([]) }}' with_items: '{{ letsencrypt_certificates|default([]) }}'
loop_control: loop_control:
loop_var: domain loop_var: domain
tags: tags:
- Certs - Certs
- import_tasks: renew.yml - 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) when: letsencrypt_certs_available is defined and letsencrypt_certs_available.stat.exists and (proxy_active is not defined or proxy_active)
tags: tags:
- renew - renew
- import_tasks: ../../haproxy/tasks/proxypool.yml - import_tasks: ../../haproxy/tasks/proxypool.yml
tags: tags:
- renew - renew
when: not excluded_roles or "letsencrypt" not in excluded_roles 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