2014-03-06 20:54:37 +08:00
|
|
|
---
|
2015-07-07 17:19:50 +08:00
|
|
|
- name: add ceph extra
|
2014-09-05 03:14:11 +08:00
|
|
|
template: >
|
2014-11-06 00:57:28 +08:00
|
|
|
src=ceph-extra.repo
|
|
|
|
dest=/etc/yum.repos.d
|
|
|
|
owner=root
|
2014-09-05 03:14:11 +08:00
|
|
|
group=root
|
2014-03-06 20:54:37 +08:00
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: add special fastcgi repository key
|
2014-03-06 20:54:37 +08:00
|
|
|
rpm_key: key=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
|
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: add special fastcgi repository
|
2014-03-06 20:54:37 +08:00
|
|
|
command: rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
|
2015-06-26 06:26:03 +08:00
|
|
|
changed_when: false
|
2014-03-06 20:54:37 +08:00
|
|
|
|
2015-07-07 17:19:50 +08:00
|
|
|
- name: install apache and fastcgi
|
2014-09-05 03:14:11 +08:00
|
|
|
yum: >
|
|
|
|
name={{ item }}
|
|
|
|
state=present
|
2014-03-06 20:54:37 +08:00
|
|
|
with_items:
|
|
|
|
- httpd
|
|
|
|
- mod_fastcgi
|
|
|
|
- mod_fcgid
|
|
|
|
|
2015-07-07 17:19:50 +08:00
|
|
|
- name: install rados gateway vhost
|
2014-09-05 03:14:11 +08:00
|
|
|
template: >
|
|
|
|
src=rgw.conf
|
|
|
|
dest=/etc/httpd/conf.d/rgw.conf
|
|
|
|
owner=root
|
|
|
|
group=root
|
2014-03-06 20:54:37 +08:00
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: install s3gw.fcgi script
|
2015-03-02 17:48:18 +08:00
|
|
|
template: >
|
|
|
|
src=s3gw.fcgi.j2
|
2014-09-05 03:14:11 +08:00
|
|
|
dest=/var/www/s3gw.fcgi
|
|
|
|
mode=0555
|
|
|
|
owner=root
|
|
|
|
group=root
|
2014-03-06 20:54:37 +08:00
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: disable default site
|
2014-03-06 20:54:37 +08:00
|
|
|
shell: sed -i "s/^[^+#]/#/g" /etc/httpd/conf.d/welcome.conf
|
2015-06-26 06:26:03 +08:00
|
|
|
changed_when: false
|
2014-03-06 20:54:37 +08:00
|
|
|
notify:
|
|
|
|
- restart apache2
|