2014-03-06 20:54:37 +08:00
|
|
|
---
|
2015-07-07 17:19:50 +08:00
|
|
|
- name: add ceph extra
|
2015-09-04 00:18:53 +08:00
|
|
|
template:
|
2016-06-02 16:52:23 +08:00
|
|
|
src: "{{ role_path }}/templates/ceph-extra.repo"
|
2015-09-04 00:18:53 +08:00
|
|
|
dest: /etc/yum.repos.d
|
|
|
|
owner: root
|
|
|
|
group: root
|
2014-03-06 20:54:37 +08:00
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: add special fastcgi repository key
|
2015-09-04 00:18:53 +08:00
|
|
|
rpm_key:
|
|
|
|
key: http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
|
2014-03-06 20:54:37 +08:00
|
|
|
|
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
|
2015-09-04 00:18:53 +08:00
|
|
|
yum:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
2014-03-06 20:54:37 +08:00
|
|
|
with_items:
|
|
|
|
- httpd
|
|
|
|
- mod_fastcgi
|
|
|
|
- mod_fcgid
|
2016-01-29 02:11:22 +08:00
|
|
|
when: ansible_pkg_mgr == "yum"
|
|
|
|
|
|
|
|
- name: install apache and fastcgi
|
|
|
|
dnf:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
with_items:
|
|
|
|
- httpd
|
|
|
|
- mod_fastcgi
|
|
|
|
- mod_fcgid
|
|
|
|
when: ansible_pkg_mgr == "dnf"
|
2014-03-06 20:54:37 +08:00
|
|
|
|
2015-07-07 17:19:50 +08:00
|
|
|
- name: install rados gateway vhost
|
2015-09-04 00:18:53 +08:00
|
|
|
template:
|
2016-06-02 16:52:23 +08:00
|
|
|
src: "{{ role_path }}/templates/rgw.conf"
|
2015-09-04 00:18:53 +08:00
|
|
|
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-09-04 00:18:53 +08:00
|
|
|
template:
|
2016-06-02 16:52:23 +08:00
|
|
|
src: "{{ role_path }}/templates/s3gw.fcgi.j2"
|
2015-09-04 00:18:53 +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
|