Merge pull request #142 from matthewrees/trusty-radosgw

Fixing errors in rgw playbook for Trusty
pull/147/head
Leseb 2014-11-13 13:51:33 +01:00
commit b3576608a4
1 changed files with 11 additions and 1 deletions

View File

@ -6,11 +6,20 @@
apt_repository: > apt_repository: >
repo="deb http://ceph.com/packages/ceph-extras/debian {{ ansible_lsb.codename }} main" repo="deb http://ceph.com/packages/ceph-extras/debian {{ ansible_lsb.codename }} main"
state=present state=present
when: ansible_lsb.codename in ['natty', 'oneiric', 'precise', 'quantal', 'raring', 'sid', 'squeeze', 'wheezy']
# Needed for Ubuntu 14.04 to have access to libapache2-mod-fastcgi
- name: Enable multiverse repo for fastcgi package access
command: "apt-add-repository multiverse"
when: ansible_lsb.codename in ['trusty']
# update_cache needed for step above
- name: "Install Apache, fastcgi and Rados Gateway" - name: "Install Apache, fastcgi and Rados Gateway"
apt: > apt: >
pkg={{ item }} pkg={{ item }}
state=present state=present
update_cache=yes
cache_valid_time=3600
with_items: with_items:
- apache2 - apache2
- libapache2-mod-fastcgi - libapache2-mod-fastcgi
@ -50,7 +59,8 @@
command: "{{ item }}" command: "{{ item }}"
with_items: with_items:
- a2ensite rgw.conf - a2ensite rgw.conf
- a2dissite default - a2dissite *default
ignore_errors: True
notify: notify:
- restart apache2 - restart apache2