publik-devinst/tasks/install_theme.yml

36 lines
748 B
YAML

- name: ssh git clone {{theme_repo}}
git:
repo: gitea@git.entrouvert.org:entrouvert/{{theme_repo}}.git
dest: "{{src_theme_dir}}"
version: "{{version}}"
when:
- git_ssh
- name: standard git clone {{theme_repo}}
git:
repo: https://git.entrouvert.org/entrouvert/{{theme_repo}}.git
dest: "{{src_theme_dir}}"
version: "{{version}}"
when:
- not git_ssh
- name: compile theme {{theme_repo}}
make:
chdir: "{{src_theme_dir}}"
target: all
when: compile_theme
- name: create themes directory
file:
path: "{{themes_dir}}"
state: directory
become: yes
- name: link to {{theme_repo}}
file:
src: "{{src_theme_dir}}"
path: "{{themes_dir}}/{{theme_link}}"
state: link
become: yes