irixjp.role_example_hello

Diese Rolle ist ein Beispiel für Ansible. Bitte nutzen Sie dies als Training, praxisnahe Übung usw.

Verwendung:

- import_role:
    name: irixjp.role_example_hello
TASK [debug] *******************************
ok: [localhost] => {
    "msg": "Hallo"
}

Diese Rolle hat ein benutzerdefiniertes Modul sample_get_locale. Das Modul gibt die Locale-Einstellungen des Betriebssystems zurück.

---
- import_role:
    name: irixjp.role_example_hello

- name: lokale Einstellung abrufen
  sample_get_locale:
  register: ret

- debug: var=ret
TASK [irixjp.role_example_hello : sag hallo! (en_US.UTF-8)] ****
ok: [node-1] => {
    "msg": "Hallo"
}

TASK [lokale Einstellung abrufen] **********************************************
ok: [node-1]

TASK [debug] ***************************************************
ok: [node-1] => {
    "ret": {
        "changed": false,
        "failed": false,
        "locale": "en_US.UTF-8"
    }
}
Über das Projekt

This is a sample role that shows word hello by your language

Installieren
ansible-galaxy install irixjp.role_example_hello
GitHub Repository
Lizenz
Unknown
Downloads
5k