Use latest packages on FreeBSD.
This commit is contained in:
parent
46672786ab
commit
11ef6647f1
7
ansible/roles/package_manager/files/FreeBSD.conf
Normal file
7
ansible/roles/package_manager/files/FreeBSD.conf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FreeBSD: {
|
||||||
|
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
|
||||||
|
mirror_type: "srv",
|
||||||
|
signature_type: "fingerprints",
|
||||||
|
fingerprints: "/usr/share/keys/pkg",
|
||||||
|
enabled: yes
|
||||||
|
}
|
@ -1,5 +1,26 @@
|
|||||||
# - name: Install packages
|
- name: Create directories
|
||||||
# package:
|
file:
|
||||||
# name:
|
name: "{{ item }}"
|
||||||
# - foo
|
state: directory
|
||||||
# state: present
|
mode: 0755
|
||||||
|
owner: root
|
||||||
|
group: wheel
|
||||||
|
loop:
|
||||||
|
- /usr/local/etc/pkg
|
||||||
|
- /usr/local/etc/pkg/repos
|
||||||
|
|
||||||
|
- name: Install Configuration
|
||||||
|
register: changed_config
|
||||||
|
copy:
|
||||||
|
src: "files/{{ item.src }}"
|
||||||
|
dest: "{{ item.dest }}"
|
||||||
|
mode: 0644
|
||||||
|
owner: root
|
||||||
|
group: wheel
|
||||||
|
loop:
|
||||||
|
- src: FreeBSD.conf
|
||||||
|
dest: /usr/local/etc/pkg/repos/FreeBSD.conf
|
||||||
|
|
||||||
|
# - name: Replace all packages with packages from new repo
|
||||||
|
# command: pkg upgrade -f -y
|
||||||
|
# when: changed_config.changed
|
||||||
|
Loading…
Reference in New Issue
Block a user