irixjp.role_example_hello
Este rol es un ejemplo de Ansible. Por favor, utilízalo para entrenamiento, prácticas, etc.
Uso:
- import_role:
name: irixjp.role_example_hello
TAREA [debug] *******************************
ok: [localhost] => {
"msg": "Hola"
}
Este rol tiene un módulo personalizado llamado sample_get_locale
. El módulo devuelve la configuración regional del sistema operativo.
---
- import_role:
name: irixjp.role_example_hello
- name: obtener región
sample_get_locale:
register: ret
- debug: var=ret
TAREA [irixjp.role_example_hello : ¡di hola! (es_ES.UTF-8)] ****
ok: [node-1] => {
"msg": "Hola"
}
TAREA [obtener región] **********************************************
ok: [node-1]
TAREA [debug] ***************************************************
ok: [node-1] => {
"ret": {
"changed": false,
"failed": false,
"locale": "es_ES.UTF-8"
}
}
Acerca del proyecto
This is a sample role that shows word hello by your language
Instalar
ansible-galaxy install irixjp.role_example_hello
Licencia
Unknown
Descargas
5k
Propietario