Skip to content

Commit

Permalink
Add config files.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikoto20000 committed Feb 10, 2015
1 parent ecd2b1b commit 90ce64c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
21 changes: 8 additions & 13 deletions site.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
- hosts: localhost
vars:
- dbpasswd: localpass
## os_family should debian or centos
- os_family: centos
- install_dir: /opt/alminium
- LANG: ja
- http_proxy:

- env:
http_proxy: "{{http_proxy}}"
https_proxy: "{{http_proxy}}"
INSTALL_DIR: /opt/alminium
INSTALL_DIR: "{{install_dir}"

vars_file:
- vars/{{ os_family }}.yml

roles:
- mariadb
- redmine
- vcs
- redmine-plugins


tasks:
- include: tasks/packages.yml
- include: tasks/initdb.yml
- include: tasks/install-redmine.yml
- include: tasks/install-plugins.yml
- script: scripts/init-redmine-plugins.sh
environment: env
- copy: src=files/init.mysql dest=/tmp
- command: mysql alminium -e "source /tmp/init.mysql"

1 change: 1 addition & 0 deletions vars/centos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apache_dir: httpd
Empty file added vars/debian.yml
Empty file.

0 comments on commit 90ce64c

Please sign in to comment.