ansible:basic:role_config

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
ansible:basic:role_config [12/02/2021 16:42]
dani créée
ansible:basic:role_config [12/02/2021 17:04] (Version actuelle)
dani [hosts variables]
Ligne 15: Ligne 15:
 **defaults** is really the most important part of a role. Check the file defaults/main.yml of a role to see which variables you can tune. For example, for the role docker (which can install docker daemon on a host) **defaults** is really the most important part of a role. Check the file defaults/main.yml of a role to see which variables you can tune. For example, for the role docker (which can install docker daemon on a host)
  
-<file yml main.yml>+<file yaml main.yml>
 docker_data_dir: /opt/docker docker_data_dir: /opt/docker
 docker_log_driver: journald docker_log_driver: journald
Ligne 40: Ligne 40:
 For example, if you deploy docker on the host docker.fws.fr, just create **host_vars/docker.fws.fr/vars.yml** For example, if you deploy docker on the host docker.fws.fr, just create **host_vars/docker.fws.fr/vars.yml**
  
-<file yml vars.yml>+<file yaml vars.yml>
 docker_extra_conf: docker_extra_conf:
   data-root: '/data'   data-root: '/data'
  • ansible/basic/role_config.1613144520.txt.gz
  • Dernière modification: 12/02/2021 16:42
  • de dani