Mise à jour de l’exemple pour le module creoleset
This commit is contained in:
parent
0375220258
commit
744dc312ab
154
README.md
154
README.md
|
@ -154,62 +154,150 @@ tri_variables->e
|
|||
---
|
||||
- hosts: module_test
|
||||
tasks:
|
||||
- name: Test if minimal config is already done
|
||||
stat:
|
||||
path: "/etc/eole/config.eol"
|
||||
register: configeol
|
||||
- name: Configuration minimale
|
||||
creoleset:
|
||||
variables:
|
||||
- name: "numero_etab"
|
||||
value: "0000000B"
|
||||
- name: "libelle_etab"
|
||||
value: "bbohard_etab"
|
||||
- name: "nom_academie"
|
||||
value: "bbohard"
|
||||
- name: "nom_domaine_local"
|
||||
value: "bbohard.lan"
|
||||
- name: "eth0_method"
|
||||
value: "dhcp"
|
||||
- name: "ip_ssh_eth0"
|
||||
value:
|
||||
- "192.168.122.0"
|
||||
- name: "netmask_ssh_eth0"
|
||||
value:
|
||||
- "255.255.255.0"
|
||||
- name: "ip_admin_eth0"
|
||||
value: "192.168.122.0"
|
||||
- name: "netmask_admin_eth0"
|
||||
value: "255.255.255.0"
|
||||
- name: "activer_exim_relay_smtp"
|
||||
value: "non"
|
||||
- name: "nom_machine"
|
||||
value: "{{ hostname }}"
|
||||
when: not configeol.stat.exists
|
||||
- name: Set some hostnames
|
||||
creoleset:
|
||||
variables:
|
||||
- name: activer_ajout_hosts
|
||||
value: oui
|
||||
- name: nom_court_hosts
|
||||
value:
|
||||
- minio-a1
|
||||
- minio-a2
|
||||
- minio-b1
|
||||
- minio-b2
|
||||
- name: nom_long_hosts
|
||||
value:
|
||||
- minio-a1.cadoles.lan
|
||||
- minio-a2.cadoles.lan
|
||||
- minio-b1.cadoles.lan
|
||||
- minio-b2.cadoles.lan
|
||||
- name: adresse_ip_hosts
|
||||
value:
|
||||
- 10.10.0.1
|
||||
- 10.10.0.2
|
||||
- 10.10.0.3
|
||||
- 10.10.0.4
|
||||
|
||||
- name: Configuration d’une variable isolée simple
|
||||
creoleset:
|
||||
variables:
|
||||
- name: "libelle_etab"
|
||||
value: "etab_test"
|
||||
- name: "libelle_etab"
|
||||
value: "etab_test"
|
||||
|
||||
- name: Configuration d’une variable isolée multi
|
||||
creoleset:
|
||||
variables:
|
||||
- name: "adresse_ip_dns"
|
||||
value:
|
||||
- "192.168.0.1"
|
||||
- "192.168.232.2"
|
||||
- name: "adresse_ip_dns"
|
||||
value:
|
||||
- "1.1.1.1"
|
||||
- "8.8.8.8"
|
||||
|
||||
- name: Configuration d’un groupe de variables
|
||||
creoleset:
|
||||
variables:
|
||||
- name: "ip_ssh_eth0"
|
||||
value:
|
||||
- "192.168.0.0"
|
||||
- name: "netmask_ssh_eth0"
|
||||
value:
|
||||
- "255.255.0.0"
|
||||
- name: "ip_ssh_eth0"
|
||||
value:
|
||||
- "192.168.0.0"
|
||||
- name: "netmask_ssh_eth0"
|
||||
value:
|
||||
- "255.255.0.0"
|
||||
- name: Debug
|
||||
shell:
|
||||
cmd: "CreoleGet ip_ssh_eth0"
|
||||
|
||||
- name: Configuration avec variable nécessitant activation
|
||||
creoleset:
|
||||
variables:
|
||||
- name: "additional_repository_name"
|
||||
value: "Cadoles unstable"
|
||||
- name: "additional_repository_source"
|
||||
value: "deb https://vulcain.cadoles.com 2.7.2-unstable main"
|
||||
- name: "additional_repository_key_type"
|
||||
value: "URL de la clé"
|
||||
- name: "additional_repository_key_url"
|
||||
value: "https://vulcain.cadoles.com/cadoles.gpg"
|
||||
- name: "additional_repository_name"
|
||||
value: "Cadoles unstable"
|
||||
- name: "additional_repository_source"
|
||||
value: "deb https://vulcain.cadoles.com 2.7.0-unstable main"
|
||||
- name: "additional_repository_key_type"
|
||||
value: "URL de la clé"
|
||||
- name: "additional_repository_key_url"
|
||||
value: "https://vulcain.cadoles.com/cadoles.gpg"
|
||||
state: present
|
||||
|
||||
- name: Configuration ajoutée
|
||||
creoleset:
|
||||
variables:
|
||||
- name: "ip_ssh_eth0"
|
||||
value: "10.253.30.0"
|
||||
- name: "netmask_ssh_eth0"
|
||||
value: "255.255.255.0"
|
||||
state: present
|
||||
- name: 'additional_repository_name'
|
||||
value: 'mariadb'
|
||||
- name: 'additional_repository_source'
|
||||
value: 'deb http://mariadb.mirrors.ovh.net/MariaDB/repo/10.3/ubuntu bionic main'
|
||||
- name: 'additional_repository_key_type'
|
||||
value: 'serveur de clés'
|
||||
- name: 'additional_repository_key_signserver'
|
||||
value: 'hkp://keyserver.ubuntu.com:80'
|
||||
- name: 'additional_repository_key_fingerprint'
|
||||
value: 'F1656F24C74CD1D8'
|
||||
state: present
|
||||
- name: Configuration vidée
|
||||
creoleset:
|
||||
variables:
|
||||
- name: 'additional_repository_name'
|
||||
value: []
|
||||
- name: 'additional_repository_source'
|
||||
value: []
|
||||
- name: 'additional_repository_key_type'
|
||||
value: []
|
||||
- name: 'additional_repository_key_fingerprint'
|
||||
value: []
|
||||
- name: 'additional_repository_key_url'
|
||||
value: []
|
||||
|
||||
- name: Configuration ajoutée
|
||||
creoleset:
|
||||
variables:
|
||||
- name: "ip_ssh_eth0"
|
||||
value: "10.253.30.0"
|
||||
- name: "netmask_ssh_eth0"
|
||||
value: "255.255.255.0"
|
||||
state: present
|
||||
|
||||
- name: idempotence
|
||||
creoleset:
|
||||
variables:
|
||||
- name: "ip_ssh_eth0"
|
||||
value:
|
||||
- "192.168.0.0"
|
||||
- "10.253.30.0"
|
||||
- name: "netmask_ssh_eth0"
|
||||
value:
|
||||
- "255.255.0.0"
|
||||
- "255.255.255.0"
|
||||
- name: "ip_ssh_eth0"
|
||||
value:
|
||||
- "192.168.0.0"
|
||||
- "10.10.0.0"
|
||||
- name: "netmask_ssh_eth0"
|
||||
value:
|
||||
- "255.255.0.0"
|
||||
- "255.255.255.0"
|
||||
```
|
||||
### zephir_register
|
||||
|
||||
|
|
Loading…
Reference in New Issue