Split the packages lists.

This commit is contained in:
Andrea Dell'Amico 2023-07-21 14:37:59 +02:00
parent 62ba055a97
commit 0bca939221
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 19 additions and 21 deletions

View File

@ -12,7 +12,13 @@
- name: Manage the APT packages
tags: ['ruby', 'redmine', 'ruby_packages']
block:
- name: Install the packages needed to run the redmine infrastructure. install the ruby packages needed to run redmine, Ubuntu Bionic
- name: Install the packages required by redmine
ansible.builtin.apt:
pkg: "{{ redmine_pkg_dependencies }}"
state: present
cache_valid_time: 1800
- name: Install the ruby packages needed to run redmine
ansible.builtin.apt:
pkg: "{% if redmine_external_ruby_ppa_enabled %}{{ redmine_ppa_packages }}{% else %}{{ redmine_distribution_packages }}{% endif %}%}"
state: present

View File

@ -11,15 +11,11 @@ unicorn_apache_modules:
- lbmethod_bybusyness
- lbmethod_heartbeat
# For Ubuntu trusty
redmine_ppa_packages:
# Redmine dependencies
redmine_pkg_dependencies:
- subversion
- git-core
- curl
- 'ruby{{ trusty_ruby_version }}'
- rails
- ruby-rmagick
- 'ruby{{ trusty_ruby_version }}-dev'
- rails
- zlib1g-dev
- libpq-dev
@ -28,21 +24,17 @@ redmine_ppa_packages:
- libmagickcore-dev
- imagemagick
redmine_ppa_packages:
- 'ruby{{ ruby_ppa_version }}'
- 'ruby{{ ruby_ppa_version }}-dev'
- rails
- ruby-rmagick
redmine_distribution_packages:
- subversion
- git-core
- curl
- ruby
- rails
- ruby-rmagick
- ruby-dev
- rails
- zlib1g-dev
- libpq-dev
- libmysqld-dev
- libmagickwand-dev
- libmagickcore-dev
- imagemagick
redmine_base_apache_modules:
- ssl
@ -50,7 +42,7 @@ redmine_base_apache_modules:
- expires
nginx_frontend: '{{ redmine_nginx_frontend }}'
nginx_use_common_virthost: False
nginx_use_common_virthost: false
nginx_webroot: '{{ redmine_web_root }}'
nginx_behind_haproxy_settings: '{{ redmine_nginx_behind_haproxy_settings }}'
nginx_cors_enabled: '{{ redmine_nginx_cors_enabled }}'
@ -60,15 +52,15 @@ redmine_nginx_virthosts:
listen: '{{ http_port }}'
server_name: '{{ redmine_nginx_virtualhost_name }}'
serveraliases: '{{ redmine_nginx_serveraliases }}'
ssl_enabled: True
ssl_only: True
ssl_enabled: true
ssl_only: true
ssl_letsencrypt_certs: '{{ nginx_letsencrypt_managed }}'
root: '{{ redmine_web_root }}'
error_path: '{{ redmine_web_root }}'
additional_options:
- try_files $uri/index.html $uri.html $uri @app
server_tokens: 'off'
proxy_standard_setup: True
proxy_standard_setup: true
locations:
- location: '@app'
target: http://unicorn