Skip to content

Commit

Permalink
always configure chroots, even when forking
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Dec 20, 2023
1 parent d4c0a6c commit 7cfa0e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 0 additions & 14 deletions obal/data/roles/copr_project/tasks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,3 @@
unlisted_on_homepage: "{{ copr_project_unlisted_on_homepage | default(omit) }}"
config_file: "{{ copr_project_copr_config | default(omit) }}"
register: create_output

- name: Configure chroots
copr_chroot:
user: "{{ copr_project_user }}"
project: "{{ copr_project_name }}"
chroot: "{{ chroot.name }}"
external_repos: "{{ chroot.external_repos | default(omit) }}"
buildroot_packages: "{{ chroot.buildroot_packages | default(omit) }}"
modules: "{{ chroot.modules | default(omit) }}"
config_file: "{{ copr_project_copr_config | default(omit) }}"
comps_file: "{{ chroot.comps_file | default(omit) }}"
loop: "{{ copr_project_chroots }}"
loop_control:
loop_var: chroot
14 changes: 14 additions & 0 deletions obal/data/roles/copr_project/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,17 @@

- when: not copr_project_fork_from
include_tasks: create.yml

- name: Configure chroots
copr_chroot:
user: "{{ copr_project_user }}"
project: "{{ copr_project_name }}"
chroot: "{{ chroot.name }}"
external_repos: "{{ chroot.external_repos | default(omit) }}"
buildroot_packages: "{{ chroot.buildroot_packages | default(omit) }}"
modules: "{{ chroot.modules | default(omit) }}"
config_file: "{{ copr_project_copr_config | default(omit) }}"
comps_file: "{{ chroot.comps_file | default(omit) }}"
loop: "{{ copr_project_chroots }}"
loop_control:
loop_var: chroot

0 comments on commit 7cfa0e5

Please sign in to comment.