diff --git a/roles/mbs/common/files/default-modules.staging/platform-f28.yaml b/roles/mbs/common/files/platform-f28.yaml.staging similarity index 100% rename from roles/mbs/common/files/default-modules.staging/platform-f28.yaml rename to roles/mbs/common/files/platform-f28.yaml.staging diff --git a/roles/mbs/common/tasks/main.yml b/roles/mbs/common/tasks/main.yml index e17779b71b..9027ebca2c 100644 --- a/roles/mbs/common/tasks/main.yml +++ b/roles/mbs/common/tasks/main.yml @@ -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