We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37d4404 commit 3ff3f22Copy full SHA for 3ff3f22
chatops_deployment/ansible/roles/haproxy/tasks/certbot.yml
@@ -48,8 +48,10 @@
48
when: not haproxy_certificate_file.stat.exists
49
50
- name: Copy certificate for the first time
51
+ # noqa: command-instead-of-shell
52
+ # We must use shell here as command doesn't support appending to files
53
become: true
- ansible.builtin.command: |
54
+ ansible.builtin.shell: |
55
cat /etc/letsencrypt/live/{{ domain }}/privkey.pem \
56
/etc/letsencrypt/live/{{ domain }}/fullchain.pem > /etc/haproxy/{{ domain }}.crt
57
register: haproxy_copy_cert
0 commit comments