Do not copy default-modules to MBS backend, but import it from files directly.

This commit is contained in:
Jan Kaluža 2018-03-19 07:04:27 +00:00
parent c212c43cba
commit 23f6b3b6b9
2 changed files with 1 additions and 14 deletions

View file

@ -81,21 +81,8 @@
- mbs
- mbs/common
- name: create /etc/module-build-service/default-modules directory
file:
path: /etc/module-build-service/default-modules
state: directory
owner: root
group: root
mode: 0775
- name: copy default modules to /etc/module-build-service/default-modules
copy: src={{ item.src }}.{{ env }} dest={{ item.dest }}/{{ item.src }}
with_items:
- { src: 'platform-f28.yaml', dest: '/etc/module-build-service/default-modules' }
- name: import default-modules
command: /usr/bin/mbs-manager import_module {{ item }}
with_fileglob:
- /etc/module-build-service/default-modules/*.yaml
- default-modules.{{ env }}/*.yaml