ansible-role-redmine/tasks/deb-packages.yml

20 lines
772 B
YAML

---
- name: Manage the APT packages
when: redmine_external_ruby_ppa_enabled
tags: ['ruby', 'redmine', 'ruby_packages']
block:
- name: Install a PPA on trusty 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 needed to run the redmine infrastructure. install the ruby packages needed to run redmine, Ubuntu Bionic
ansible.builtin.apt:
pkg: "{% if redmine_external_ruby_ppa_enabled %}{{ redmine_ppa_packages }}{% else %}{{ redmine_distribution_packages }}%}"
state: present
cache_valid_time: 1800