deploiement/main.yml
rick e52caab4f2
fix cgit installation and add gitolite configuration
Cgit works just after the installation, no more configuration is needed.
Configurations of cgit and gitolite are uploaded now. Admin's SSH key too.
2022-06-11 15:16:46 +02:00

55 lines
1.5 KiB
YAML

################################################################################
# installation automatique de mon infra
#
# 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: cgit
hosts: ubuntu
become: true
vars_files:
- vars/sites.yml
- vars/cgit.yml
vars:
pre_tasks:
- name: update de la machine
apt:
update_cache: true
upgrade: yes
- name: installation des paquets nécessaires
apt:
name:
- make
- gcc
- nginx
- certbot
- git
- sudo
- python3-pip
roles:
- installations
post_tasks:
- name: démarrage par défaut de nginx
ansible.builtin.service:
name: nginx
enabled: yes
state: restarted