49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
---
|
|
- name: Install the phusion passenger repo key
|
|
apt_key: id=561F9B9CAC40B2F7 keyserver=keyserver.ubuntu.com state=present
|
|
register: update_apt_cache
|
|
when: ruby_use_mod_passenger
|
|
tags:
|
|
- ruby
|
|
- redmine
|
|
- passenger
|
|
|
|
- name: Install the phusion passenger repo
|
|
apt_repository: repo='deb https://oss-binaries.phusionpassenger.com/apt/passenger {{ ansible_distribution_release }} main' state=present
|
|
register: update_apt_cache
|
|
when: ruby_use_mod_passenger
|
|
tags:
|
|
- ruby
|
|
- redmine
|
|
- passenger
|
|
|
|
- name: Update the apt cache
|
|
apt: update_cache=yes
|
|
when:
|
|
- ruby_use_mod_passenger
|
|
- update_apt_cache.changed
|
|
ignore_errors: True
|
|
tags:
|
|
- ruby
|
|
- redmine
|
|
- passenger
|
|
|
|
- name: Install the apache mod_passenger package
|
|
apt: pkg=libapache2-mod-passenger state=present
|
|
when: ruby_use_mod_passenger
|
|
notify: apache2 reload
|
|
tags:
|
|
- apache
|
|
- redmine
|
|
- passenger
|
|
|
|
- name: Install the mod-passenger configuration
|
|
apache2_module: name=passenger state=present
|
|
when: ruby_use_mod_passenger
|
|
notify: apache2 reload
|
|
tags:
|
|
- apache
|
|
- redmine
|
|
- passenger
|
|
|