Add support for custom repos in FreeBSD.
This commit is contained in:
@@ -16,6 +16,18 @@
|
||||
state: present
|
||||
|
||||
- name: Install Configuration
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- src: pkg.conf
|
||||
dest: /usr/local/etc/pkg.conf
|
||||
|
||||
- name: Install Configuration
|
||||
when: custom_repo is not defined
|
||||
register: changed_config
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
@@ -26,8 +38,32 @@
|
||||
loop:
|
||||
- src: FreeBSD.conf
|
||||
dest: /usr/local/etc/pkg/repos/FreeBSD.conf
|
||||
- src: pkg.conf
|
||||
dest: /usr/local/etc/pkg.conf
|
||||
|
||||
- name: Install Configuration
|
||||
when: custom_repo is defined
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- src: disable_freebsd_upstream.conf
|
||||
dest: /usr/local/etc/pkg/repos/FreeBSD.conf
|
||||
- src: poudriere.pub
|
||||
dest: /usr/local/etc/pkg/poudriere.pub
|
||||
|
||||
- name: Install Configuration
|
||||
when: custom_repo is defined
|
||||
register: changed_config
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: root
|
||||
group: wheel
|
||||
mode: 0644
|
||||
loop:
|
||||
- { src: custom.conf.j2, dest: /usr/local/etc/pkg/repos/custom.conf }
|
||||
|
||||
# - name: Replace all packages with packages from new repo
|
||||
# command: pkg upgrade -f -y
|
||||
|
||||
Reference in New Issue
Block a user