From b2323b5c61b9bb8ee6b254aac982672585410658 Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Fri, 23 Sep 2022 10:32:23 +0200 Subject: [PATCH] solution --- Readme.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index 1fd620c..385d311 100644 --- a/Readme.md +++ b/Readme.md @@ -9,8 +9,18 @@ Utiliser un rôle depuis ansible-galaxy *Pratique:* -Utiliser la commande ansible-galaxy pour télécharger le rôle https://galaxy.ansible.com/tconstans/apache_formation +```bash +ansible-galaxy install tconstans.apache_formation +``` -Examiner le fichier README et tenter d'exécuter le rôle sur une de vos machines. +création du fichier apache_role.yml: +```yaml +--- +- hosts: centos + roles: + - tconstans.apache_formation + ``` -*Performance*: Le rôle s'installe correctement. \ No newline at end of file +```bash + ansible-playbook apache_role.yml +``` \ No newline at end of file