ansible-freebsd-jailhost-tools/tasks/chroot/preinstall_set.yml

37 lines
917 B
YAML
Raw Normal View History

2019-09-01 17:12:05 +02:00
- name: Create local repo config dir
file:
path: '{{ vars["jail_" + jail_name + "_new_path"] }}/usr/local/etc/pkg/repos'
state: directory
- name: Copy FreeBSD repo config in place
copy:
src: FreeBSD.conf
dest: '{{ vars["jail_" + jail_name + "_new_path"] }}/usr/local/etc/pkg/repos/FreeBSD.conf'
- name: Create resolv.conf for install usage in jail
copy:
dest: '{{ vars["jail_" + jail_name + "_new_path"] }}/etc/resolv.conf'
content: |
nameserver 127.0.0.1
- name: Mounting devFS into chroot for pkg
mount:
src: devfs
path: '{{ vars["jail_" + jail_name + "_new_path"] }}/dev'
fstype: devfs
state: mounted
- name: Mounting directories
command:
/sbin/mount
-a -F
{{ dynamic_jails_path }}/configs/{{ vars["jail_" + jail_name + "_newest_id"] }}/fstab
args:
warn: no
2019-09-12 14:44:36 +02:00
- name: Restarting syslog
service:
name: syslogd
state: restarted