From c54ab6a7011618d073ebbb70696aa4a38fbc0c53 Mon Sep 17 00:00:00 2001 From: Matthew Rees Date: Tue, 11 Nov 2014 11:07:41 +0200 Subject: [PATCH] Fixing errors in rgw playbook for Trusty MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - We don’t need ceph-extra for trusty - Enable multiverse repo for access to libapache2-mod-fastcgi - Update cache before attempting to install packages to register multiverse repo and only refresh cache once an hour to avoid delays in the playbook - Add wildcard to disabling default site as on Ubuntu it is 000_default by…default --- roles/ceph-radosgw/tasks/install_debian.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/roles/ceph-radosgw/tasks/install_debian.yml b/roles/ceph-radosgw/tasks/install_debian.yml index d3d5f5890..74c42f4ad 100644 --- a/roles/ceph-radosgw/tasks/install_debian.yml +++ b/roles/ceph-radosgw/tasks/install_debian.yml @@ -6,11 +6,20 @@ apt_repository: > repo="deb http://ceph.com/packages/ceph-extras/debian {{ ansible_lsb.codename }} main" 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" apt: > pkg={{ item }} state=present + update_cache=yes + cache_valid_time=3600 with_items: - apache2 - libapache2-mod-fastcgi @@ -50,7 +59,8 @@ command: "{{ item }}" with_items: - a2ensite rgw.conf - - a2dissite default + - a2dissite *default + ignore_errors: True notify: - restart apache2 -- 2.39.5