--- - block: - name: Install a PPA on trusty to get a newer version of ruby apt_repository: repo={{ redmine_trusty_ruby_repo }} state=present update_cache=yes - name: Install the packages needed to run the redmine infrastructure. install the ruby packages needed to run redmine, Ubuntu Trusty apt: pkg={{ redmine_base_packages }} state=present cache_valid_time=1800 when: is_trusty tags: [ 'ruby', 'redmine' ] - block: - name: Install the packages needed to run the redmine infrastructure. install the ruby packages needed to run redmine, Ubuntu Bionic apt: pkg={{ redmine_bionic_packages }} state=present cache_valid_time=1800 when: is_trusty tags: [ 'ruby', 'redmine' ]