chusiang.helloworld

Ansible Role: Hello World

Build Status

This is an Ansible role for the book "Automate with Ansible."

Requirements

None needed.

Role Variables

Check the defaults/main.yml for details.

world: "world"

Dependencies

None required.

Example Playbook

Here’s an example of how to use this role, including how to pass in variables:

- hosts: servers
  roles:
     - { role: chusiang.helloworld }

How to run it:

$ ansible-playbook setup.yml

PLAY [Play 'Hello World'] ******************************************************

TASK [setup] *******************************************************************
ok: [localhost]

TASK [echo 'hello world'] ******************************************************
changed: [localhost]

TASK [print message] ***********************************************************
ok: [localhost] => {
    "msg": [
        "Hello world"
    ]
}

PLAY RECAP *********************************************************************
localhost                  : ok=3    changed=1    unreachable=0    failed=0

License

Copyright (c) chusiang from 2016-2017 under the MIT license.

Informazioni sul progetto

An Ansible role example for automate-with-ansible book.

Installa
ansible-galaxy install chusiang.helloworld
Licenza
Unknown
Download
1.4k
Proprietario
A system engineer, like @DevOpsTW, @ansible-tw, @vim-tw, docker and @linux-taiwan. Hope one day can build a "🦄 Unicorn company" like《The Phoenix Project》.