Anton Shestakov <av6@dwimlabs.net>, Fri, 29 Jul 2016 22:32:18 +0800
role vars are now legit super evil, confirmed by Ansible 2.1.0.0
They are so extremely high-priority now that they cannot be redefined in a
playbook. At least defaults should work as expected?
playbook-example.yml
Permissions: -rw-r--r--
# NOTE: you probably don't want to run these commands on a real box. But # bear in mind that to be able to access hgweb from inside the box, you # need to use the virtual host name (i.e. http://127.0.0.1/ won't work). # Make sure you have DNS records for hg.mydomain or add it to /etc/hosts. - name: Update /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: # This role doesn't have the handlers, so this playbook restarts the # services in post_tasks instead. - name: Disable default Nginx site path: /etc/nginx/sites-enabled/default - name: Install Supervisor - name: Restart Supervisor