deploiement/roles/libretls/tasks/main.yml

59 lines
1.7 KiB
YAML

################################################################################
# installation de libretls
#
# 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: installation des paquets nécessaires
apt:
name:
- autoconf
- automake
- libtool
- libssl-dev
- name: clonage de libretls
ansible.builtin.git:
dest: "{{ path_tmp_git }}"
repo: "{{ git }}"
refspec: "{{ tag_git }}"
single_branch: yes
- name: autoreconf
ansible.builtin.command:
cmd: "autoreconf -fi"
chdir: "{{ path_tmp_git }}"
- name: configure
ansible.builtin.command:
cmd: "{{ path_tmp_git }}/configure --disable-dependency-tracking"
chdir: "{{ path_tmp_git }}"
- name: compilation de libretls
community.general.make:
chdir: "{{ path_tmp_git }}"
target: all
- name: installation de libretls
community.general.make:
chdir: "{{ path_tmp_git }}"
target: install
- name: copie de la bibliothèque de libretls
file:
src: "{{ path_local_lib }}"
dest: "{{ path_global_lib }}"
state: link