We should not touch the repos in the production mode.
Signed-off-by: Boris Ranto <branto@redhat.com>
---
- include: setup_repos.yml
- when: not containerized_deployment
+ when:
+ - not containerized_deployment
+ - devel_mode
tags:
- packages
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
state: "{{ 'present' if use_epel else 'absent' }}"
when:
- - devel_mode
- ansible_pkg_mgr == "yum"
- name: Install chacra repo
---
- include: setup_repos.yml
- when: not containerized_deployment
+ when:
+ - not containerized_deployment
+ - devel_mode
tags:
- packages
state: "{{ 'present' if use_epel else 'absent' }}"
when:
- ansible_pkg_mgr == "yum"
- - devel_mode
- name: Install chacra repo
copy:
when:
- ansible_pkg_mgr == 'yum'
- use_epel
- - devel_mode
- name: Remove Grafana repo
file: