File tree 2 files changed +13
-14
lines changed
ansible/playbooks/roles/compatibility_layer
2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 5
5
cmd : emerge gentoolkit
6
6
creates : " {{ gentoo_prefix_path }}/usr/bin/equery"
7
7
8
- - name : Install eselect-repository
9
- community.general.portage :
10
- package : eselect-repository
11
- state : present
12
-
13
8
# We need git in order to add Gentoo overlays hosted on git repositories.
14
9
- name : Install git
15
10
community.general.portage :
16
11
package : dev-vcs/git
17
12
state : present
18
13
19
- - name : Check which repositories have been installed
20
- ansible.builtin.command : eselect repository list -i
21
- register : repositories_installed
22
- changed_when : false
23
-
24
- - name : Add custom overlay configuration
25
- ansible.builtin.command :
26
- cmd : " eselect repository add {{ item.name }} {{ item.source }} {{ item.url }}"
27
- when : item.name not in repositories_installed.stdout
14
+ - name : Add configuration files for custom overlays
15
+ ansible.builtin.template :
16
+ src : overlay.conf.j2
17
+ dest : " {{ gentoo_prefix_path }}/etc/portage/repos.conf/{{ item.name }}.conf"
18
+ mode : " 0644"
28
19
loop : " {{ custom_overlays }}"
29
20
30
21
- name : Make configuration file with overlays that can override eclasses
Original file line number Diff line number Diff line change
1
+ # {{ ansible_managed }}
2
+ [{{ item.name }}]
3
+ location = {{ gentoo_prefix_path }}/var/db/repos/{{ item.name }}
4
+ sync-type = {{ item.source }}
5
+ sync-uri = {{ item.url }}
6
+ {% if item .branch is defined %}
7
+ sync-git-clone-extra-opts = --branch {{ item.branch }}
8
+ {% endif %}
You can’t perform that action at this time.
0 commit comments