blob: c4cc6b9f4721a2e71300e2fbea84f7be1fd51c79 (
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
|
- name: Install lowdown package
ansible.builtin.package:
name: lowdown
state: present
- name: Copy convert-markdown.c into /tmp
ansible.builtin.copy:
src: convert-markdown.c
dest: /tmp/
owner: root
group: wheel
mode: "0755"
- name: Ensure /var/www/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 \
-s
args:
chdir: /tmp
creates: /var/www/bin/convert-markdown
- name: Ensure root:daemon owns convert-markdown binary
ansible.builtin.file:
path: /var/www/bin/convert-markdown
owner: root
group: daemon
mode: "0755"
|