/usr/lib/python2.7/dist-packages/charmtools/templates/ansible/files/playbooks/site.yaml is in charm-tools 2.1.2-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | # The tasks here are left as examples and should be removed/replaced by the
# charm author. Some things to note:
#
# 1. All charm config values are available as template variables
# e.g. repo -> {{repo}}, app-name -> {{app_name}} (note underscore)
#
# 2. Along with charm config values, the following variables are also
# made available as template vars:
#
# charm_dir
# local_unit
# unit_private_address
# unit_public_address
#
# 3. Use tags to control when each task is executed. The tags list should
# contain one or more hook names.
- hosts: all
tasks:
- name: Install required packages.
apt: pkg={{ item }} state=latest update_cache=yes
with_items:
- python-django
- python-django-celery
tags:
- install
- upgrade-charm
- name: Put app code in place.
git: repo=git://github.com/absoludity/charm-bootstrap-ansible.git
dest=/srv/myapp
version=HEAD
tags:
- install
- config-changed
- name: Start service
debug: msg="You'd start some service here. The config 'string-option' has the value '{{ string_option }}'"
tags:
- start
- config-changed
- name: Stop service
debug: msg="You'd stop some service here. The config 'string-option' is '{{ string_option }}'"
tags:
- stop
|