Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b2323b5c61 |
16
Readme.md
16
Readme.md
@@ -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
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user