- name: Install lowdown package ansible.builtin.package: name: lowdown state: present - name: Copy lowdown binary into chroot ansible.builtin.copy: src: convert-markdown.c dest: /tmp/ owner: root group: wheel mode: "0755" - name: Ensure chroot bin directory exists ansible.builtin.file: path: "/var/www/bin" state: directory owner: root group: bin mode: "0755" - name: Statically compile convert-markdown to /var/www/bin/convert-markdown ansible.builtin.command: | cc convert-markdown.c \ -o /var/www/bin/convert-markdown \ -I/usr/local/include \ -L/usr/local/lib \ -llowdown \ -lm \ -static \ -pie args: chdir: /tmp - name: Strip /var/www/bin/convert-markdown ansible.builtin.command: strip /var/www/bin/convert-markdown - name: Update ownership ansible.builtin.file: path: /var/www/bin/convert-markdown owner: root group: daemon mode: "0755"