deploiement/roles/pounce/tasks/litterbox.yml

49 lines
1.6 KiB
YAML

################################################################################
# installation de litterbox
#
# 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: création utilisateur litterbox
ansible.builtin.user:
name: "{{ litterbox.user }}"
shell: "/bin/bash"
state: present
- name: mise en place de litterbox
block:
- name: clonage de litterbox
ansible.builtin.git:
dest: "{{ litterbox.path_tmp_git }}"
repo: "{{ litterbox.git }}"
single_branch: yes
- name: configuration de la compilation de litterbox
ansible.builtin.command:
cmd: "./configure"
chdir: "{{ litterbox.path_tmp_git }}"
- name: compilation de litterbox
community.general.make:
chdir: "{{ litterbox.path_tmp_git }}"
become: yes
become_user: "{{ litterbox.user }}"
- name: installation de litterbox
community.general.make:
chdir: "{{ litterbox.path_tmp_git }}"
target: install