Only install configure docs on staging for now.
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
63d69764bb
commit
b6c58a4275
3 changed files with 10 additions and 3 deletions
|
@ -34,7 +34,6 @@
|
|||
- name: yum update bodhi-server packages from main repo
|
||||
yum: name="{{ item }}" state=latest
|
||||
with_items:
|
||||
- bodhi-docs
|
||||
- bodhi-server
|
||||
- name: yum update bodhi-server packages from testing repo
|
||||
yum: name="{{ item }}" state=latest enablerepo=infrastructure-testing
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
- name: install needed packages
|
||||
package: pkg={{ item }} state=present
|
||||
with_items:
|
||||
- bodhi-docs
|
||||
- bodhi-server
|
||||
- libsemanage-python
|
||||
- python-psycopg2
|
||||
|
@ -13,6 +12,13 @@
|
|||
- packages
|
||||
- bodhi
|
||||
|
||||
- name: install documentation package
|
||||
package: pkg=bodhi-docs state=present
|
||||
when: env == 'staging'
|
||||
tags:
|
||||
- packages
|
||||
- bodhi
|
||||
|
||||
- name: setup /etc/bodhi/ directory
|
||||
file: path=/etc/bodhi owner=root group=root mode=0755 state=directory
|
||||
tags:
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
Alias /docs /usr/share/doc/bodhi-docs/html/
|
||||
{% if env == 'staging' %}
|
||||
Alias /docs /usr/share/doc/bodhi-docs-2.4.0/html/
|
||||
|
||||
<Location /docs/>
|
||||
Header set Cache-Control public
|
||||
|
@ -7,6 +8,7 @@ Alias /docs /usr/share/doc/bodhi-docs/html/
|
|||
</Location>
|
||||
|
||||
|
||||
{% endif %}
|
||||
Alias /static /usr/lib/python2.7/site-packages/bodhi/server/static/
|
||||
|
||||
<Location /static/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue