8:bd870b027188
Anton Shestakov <av6@dwimlabs.net>, Fri, 01 Apr 2016 01:57:27 +0800
pre_tasks: capitalize package names

next change 9:677ec7e634c8
previous change 7:a2442a06678e

playbook-example.yml

Permissions: -rw-r--r--

Other formats: Feeds:
---
- hosts: all
become: yes
vars:
hostname: mydomain
pre_tasks:
# NOTE: you probably don't want to run these 3 commands on a real box.
# Also, to be able to access hgweb from inside the box, you need to use
# domain 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: Set hostname
hostname: name={{ hostname }}
- name: Update /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:
# - reload supervisor
# - restart nginx
# If you don't have your own nginx and supervisor roles, just reload or
# restart both services manually after running this playbook.
- name: Install Nginx
apt: package=nginx-full state=installed update_cache=yes cache_valid_time=3600
- name: Install Supervisor
apt: package=supervisor state=installed
roles:
# - role: nginx
# tags: [nginx]
# - role: supervisor
# tags: [supervisor]
- role: hgweb
tags: [hgweb]
...