26 lines
874 B
YAML
26 lines
874 B
YAML
---
|
|
- name: Manage the APT packages
|
|
when: redmine_external_ruby_ppa_enabled
|
|
tags: ['ruby', 'redmine', 'ruby_packages']
|
|
block:
|
|
- name: Install a PPA to get a newer version of ruby
|
|
ansible.builtin.apt_repository:
|
|
repo: "{{ redmine_external_ppa_repo }}"
|
|
state: present
|
|
update_cache: true
|
|
|
|
- name: Manage the APT packages
|
|
tags: ['ruby', 'redmine', 'ruby_packages']
|
|
block:
|
|
- 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
|
|
cache_valid_time: 1800
|