blob: 9d6b466c8c52f66f0593f4448d5d58816a3b35a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
- 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"
|