deploiement/roles/pounce/tasks/scooper.yml

79 lines
2.4 KiB
YAML

################################################################################
# installation de kcgi et scooper
#
# Copyright (C) 2022 rick G. <rick@gnous.eu>
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <https://www.gnu.org/licenses/>.
################################################################################
---
- name: téléchargement de kcgi
ansible.builtin.get_url:
dest: "{{ kcgi.path_tmp }}"
url: "{{ kcgi.url_file }}"
- name: décompression de kcgi
ansible.builtin.unarchive:
dest: "{{ kcgi.path_tmp }}"
src: "{{ kcgi.path_tmp }}/{{ kcgi.file_name }}"
list_files: true
register: result
- name: tset
debug:
msg: "{{ result.files[0] }}"
- name: modification du makefile
ansible.builtin.command:
cmd: "sed -i -e 's/#CPPFLAG/CPPFLAG/' {{ kcgi.path_tmp }}/{{ result.files[0] }}/Makefile"
- name: configuration de la compilation de kcgi
ansible.builtin.command:
cmd: "./configure"
chdir: "{{ kcgi.path_tmp }}/{{ result.files[0] }}"
- name: compilation de kcgi
ansible.builtin.command:
cmd: "bmake"
chdir: "{{ kcgi.path_tmp }}/{{ result.files[0] }}"
- name: installation de kcgi
ansible.builtin.command:
cmd: "bmake install"
chdir: "{{ kcgi.path_tmp }}/{{ result.files[0] }}"
- name: mise en place de scooper
block:
- name: téléchargement de scooper
ansible.builtin.git:
dest: "{{ scooper.path_tmp_git }}"
repo: "{{ scooper.git }}"
single_branch: yes
- name: configuration de la compilation de scooper
ansible.builtin.command:
cmd: "./configure"
chdir: "{{ scooper.path_tmp_git }}"
- name: compilation de scooper
community.general.make:
chdir: "{{ scooper.path_tmp_git }}"
- name: installation de scooper
community.general.make:
chdir: "{{ scooper.path_tmp_git }}"
target: install
become: yes
become_user: "{{ litterbox.user }}"