openstack-doc-tools/build_environment/files/playbook.yaml
Christian Berendt 796c237dd4 [build-environment] add repository ha-guide and update README file
Change-Id: I25af29a3d02748abced44b92d26630b389baea2e
2014-12-25 12:51:08 +01:00

49 lines
1.0 KiB
YAML

---
- hosts: all
sudo: True
tasks:
- apt: update_cache=yes
- apt: upgrade=dist
- apt: name={{ item }} state=present
with_items:
- git
- git-review
- maven
- nginx
- python-tox
- copy: src=nginx.default dest=/etc/nginx/sites-available/default
notify: restart nginx
- service: name=nginx enabled=yes state=started
- copy: src=fetch.sh dest=/usr/local/bin/fetch.sh mode=0755
- lineinfile: dest=/etc/environment regexp='^JAVA_HOME=' line='JAVA_HOME=/usr/lib/jvm/default-java'
sudo: True
- git: repo=https://github.com/openstack/{{ item }} dest=/home/vagrant/repositories/{{ item }}
with_items:
- api-site
- compute-api
- docs-specs
- ha-guide
- identity-api
- image-api
- netconn-api
- object-api
- openstack-doc-tools
- openstack-manuals
- operations-guide
- security-doc
- training-guides
- volume-api
sudo: False
- command: /usr/local/bin/fetch.sh
sudo: False
handlers:
- name: restart nginx
service: name=nginx state=restarted