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

This reverts commit 23f6b3b6b9.
This commit is contained in:
Jan Kaluža 2018-03-19 07:08:25 +00:00
parent 23f6b3b6b9
commit e9cff502ae
2 changed files with 14 additions and 1 deletions

View file

@ -81,8 +81,21 @@
- 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:
- default-modules.{{ env }}/*.yaml
- /etc/module-build-service/default-modules/*.yaml