summaryrefslogtreecommitdiffstats
path: root/ansible/roles/package-repository/defaults
diff options
context:
space:
mode:
authorJan Benedikt <j.benedikt@partner.samsung.com>2020-02-10 16:29:43 +0100
committerJan Benedikt <j.benedikt@partner.samsung.com>2020-05-18 09:21:52 +0200
commit2c34d1d7a33e34c9984ac78460fd8e7c815024c5 (patch)
tree1bac4c90b3d8f899248919f97af24f4fe31547e8 /ansible/roles/package-repository/defaults
parent17e0a5eacaed7519f13e2c0f19749fb4263fb46a (diff)
Adding Ubuntu support in Ansible - package-repository role
Extending ansible playbooks of ubuntu support. Creating new test with Ubuntu image for Molecule in package-repository role. Issue-ID: OOM-1671 Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com> Change-Id: I85d4e6857536fa06c7eb4f4042c1ed64fcbf903e
Diffstat (limited to 'ansible/roles/package-repository/defaults')
-rw-r--r--ansible/roles/package-repository/defaults/main.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/ansible/roles/package-repository/defaults/main.yml b/ansible/roles/package-repository/defaults/main.yml
index 0557eda3..97b89bae 100644
--- a/ansible/roles/package-repository/defaults/main.yml
+++ b/ansible/roles/package-repository/defaults/main.yml
@@ -1,8 +1,17 @@
---
+package_type:
+ RedHat: rpm
+ Debian: deb
+repo_patern:
+ RedHat: "*.repo"
+ Debian: "*.list"
+repo_path:
+ RedHat: /etc/yum.repos.d/
+ Debian: /etc/apt/
package_repositories:
- name: "{{ app_name }}"
file: "{{ app_name | lower }}"
description: "{{ app_name | upper }} offline repository"
- baseurl: "{{ 'http://repo.infra-server/rpm' if 'infrastructure' not in group_names else 'file://' + app_data_path + '/pkg/rpm' }}"
+ baseurl: "{{ 'http://repo.infra-server/' + package_type[ansible_os_family] if 'infrastructure' not in group_names else 'file://' + app_data_path + '/pkg/' + package_type[ansible_os_family] }}"
gpgcheck: false
enabled: true