Compare commits

1 Commits

Author SHA1 Message Date
b2323b5c61 solution 2022-09-23 10:32:23 +02:00

View File

@@ -9,8 +9,18 @@ Utiliser un rôle depuis ansible-galaxy
*Pratique:* *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. ```bash
ansible-playbook apache_role.yml
```