Compare commits

1 Commits

Author SHA1 Message Date
d416f8d100 solution 2022-11-14 16:13:05 +01:00
2 changed files with 15 additions and 3 deletions

View File

@@ -1,9 +1,6 @@
# Facts
----------
Voir plutôt https://infra.opendoor.fr/git/tom/sib_fact_setup
*Tâche*: Exploiter les informations obtenues depuis les cibles
*Condition*: quand on en a besoin

15
facts.yml Normal file
View File

@@ -0,0 +1,15 @@
---
- hosts: cibles
tasks:
- name: "[apache] - install on Debian"
package:
name: apache2
state: present
when: ansible_os_family == 'Debian'
- name: "[apache] - install on RH"
package:
name: httpd
state: present
when: ansible_os_family == 'RedHat'