--- a/playbook-example.yml Fri Apr 01 01:55:45 2016 +0800
+++ b/playbook-example.yml Fri Apr 01 01:56:30 2016 +0800
hostname: name={{ hostname }}
- name: Update /etc/hosts
- shell: echo '127.0.0.1 {{ hostname }}' >> /etc/hosts
+ lineinfile: dest=/etc/hosts line="127.0.0.1 {{ hostname }} hg.{{ hostname }}"
# NOTE: this role depends on nginx and supervisor packages being installed,
# and also it uses two handlers: