blob: c0439e8bf752f1ab25e699fde6455a1b2b498399 (
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
|
- name: retrieve dependencies for lowdown # noqa: no-changed-when
shell: |
set -o pipefail
ldd /usr/local/bin/lowdown | tr -s " " | grep "0 1 0" | cut -d " " -f 7
register: result
- name: create dependencies directories in chroot
file:
path: "{{ cgit_chroot_dir }}{{ item | dirname }}"
owner: 0
group: 0
mode: 0755
state: directory
loop: "{{ result.stdout_lines }}"
- name: copy dependencies for lowdown
copy:
src: "{{ item }}"
dest: "{{ cgit_chroot_dir }}/{{ item }}"
mode: preserve
remote_src: true
loop: "{{ result.stdout_lines }}"
- name: copy utilities in httpd chroot
copy:
src: "{{ item }}"
dest: "{{ cgit_chroot_dir }}/bin"
mode: preserve
remote_src: true
loop:
- /bin/sh
- /bin/cat
- /usr/local/bin/lowdown
|