summaryrefslogtreecommitdiffstats
path: root/ansible/roles/package-repository/defaults/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/package-repository/defaults/main.yml')
-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