Skip to content

Commit 3ff3f22

Browse files
committed
BUG: Must use shell instead of command
Command does not support pipes
1 parent 37d4404 commit 3ff3f22

File tree

1 file changed

+3
-1
lines changed
  • chatops_deployment/ansible/roles/haproxy/tasks

1 file changed

+3
-1
lines changed

chatops_deployment/ansible/roles/haproxy/tasks/certbot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@
4848
when: not haproxy_certificate_file.stat.exists
4949

5050
- 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
5153
become: true
52-
ansible.builtin.command: |
54+
ansible.builtin.shell: |
5355
cat /etc/letsencrypt/live/{{ domain }}/privkey.pem \
5456
/etc/letsencrypt/live/{{ domain }}/fullchain.pem > /etc/haproxy/{{ domain }}.crt
5557
register: haproxy_copy_cert

0 commit comments

Comments
 (0)