helloworld

Ansible Role: Hello World

Build Status

An Ansible role for automate-with-ansible book.

Requirements

None.

Role Variables

See the defaults/main.yml.

world: "world"

Dependencies

None.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

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

Execute result:

$ 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.

About

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

Install
ansible-galaxy install chusiang/helloworld.ansible.role
GitHub repository
License
Unknown
Downloads
1329
Owner
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》.