templates follow dir tree
This commit is contained in:
parent
cd6a30e9c4
commit
aaee98f089
14 changed files with 8 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: "Install syslinux bootloader"
|
- name: "Install syslinux bootloader"
|
||||||
template:
|
template:
|
||||||
src: "templates/update-extlinux.conf.j2"
|
src: "templates/etc/update-extlinux.conf.j2"
|
||||||
dest: "/mnt/etc/update-extlinux.conf"
|
dest: "/mnt/etc/update-extlinux.conf"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
- name: "Install bootloader in MBR. This is how `setup-disk` does it."
|
- name: "Install bootloader in MBR. This is how `setup-disk` does it."
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
creates: "/mnt/etc/apk/keys"
|
creates: "/mnt/etc/apk/keys"
|
||||||
- name: "Enable repositories."
|
- name: "Enable repositories."
|
||||||
template:
|
template:
|
||||||
src: "templates/repositories.j2"
|
src: "templates/etc/apk/repositories.j2"
|
||||||
dest: "/mnt/etc/apk/repositories"
|
dest: "/mnt/etc/apk/repositories"
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
- name: "Install packages with signature verification. Update if already present."
|
- name: "Install packages with signature verification. Update if already present."
|
||||||
|
@ -17,14 +17,14 @@
|
||||||
loop: "{{ packages }}"
|
loop: "{{ packages }}"
|
||||||
- name: "Tell Alpine how to mount partitions after boot."
|
- name: "Tell Alpine how to mount partitions after boot."
|
||||||
template:
|
template:
|
||||||
src: "templates/fstab.j2"
|
src: "templates/etc/fstab.j2"
|
||||||
dest: "/mnt/etc/fstab"
|
dest: "/mnt/etc/fstab"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
- name: "Load BTRFS module on boot"
|
- name: "Load BTRFS module on boot"
|
||||||
shell: "grep -q btrfs /mnt/etc/modules || echo btrfs >> /mnt/etc/modules"
|
shell: "grep -q btrfs /mnt/etc/modules || echo btrfs >> /mnt/etc/modules"
|
||||||
- name: "And which features to include into initramfs."
|
- name: "And which features to include into initramfs."
|
||||||
template:
|
template:
|
||||||
src: "templates/mkinitfs.conf.j2"
|
src: "templates/etc/mkinitfs/mkinitfs.conf.j2"
|
||||||
dest: "/mnt/etc/mkinitfs/mkinitfs.conf"
|
dest: "/mnt/etc/mkinitfs/mkinitfs.conf"
|
||||||
mode: "0750"
|
mode: "0750"
|
||||||
- name: "Copy SSH host keys from the live system."
|
- name: "Copy SSH host keys from the live system."
|
||||||
|
@ -44,11 +44,11 @@
|
||||||
creates: "/mnt/root/.ssh/authorized_keys"
|
creates: "/mnt/root/.ssh/authorized_keys"
|
||||||
- name: "Install network configuration."
|
- name: "Install network configuration."
|
||||||
template:
|
template:
|
||||||
src: "templates/interfaces.j2"
|
src: "templates/etc/network/interfaces.j2"
|
||||||
dest: "/mnt/etc/network/interfaces"
|
dest: "/mnt/etc/network/interfaces"
|
||||||
- name: "And DNS resolvers."
|
- name: "And DNS resolvers."
|
||||||
template:
|
template:
|
||||||
src: "templates/resolv.conf.j2"
|
src: "templates/etc/resolv.conf.j2"
|
||||||
dest: "/mnt/etc/resolv.conf"
|
dest: "/mnt/etc/resolv.conf"
|
||||||
- name: "Set hostname."
|
- name: "Set hostname."
|
||||||
shell: "echo {{ inventory_hostname }} > /etc/hostname"
|
shell: "echo {{ inventory_hostname }} > /etc/hostname"
|
||||||
|
|
|
@ -50,14 +50,14 @@
|
||||||
service: "swclock"
|
service: "swclock"
|
||||||
- name: "Install firewall rules."
|
- name: "Install firewall rules."
|
||||||
template:
|
template:
|
||||||
src: "templates/{{ item }}.j2"
|
src: "templates/etc/iptables/{{ item }}.j2"
|
||||||
dest: "/mnt/etc/iptables/{{ item }}"
|
dest: "/mnt/etc/iptables/{{ item }}"
|
||||||
loop:
|
loop:
|
||||||
- rules-save
|
- rules-save
|
||||||
- rules6-save
|
- rules6-save
|
||||||
- name: "And blocklists."
|
- name: "And blocklists."
|
||||||
template:
|
template:
|
||||||
src: "templates/{{ item }}.j2"
|
src: "templates/etc/ipset.d/{{ item }}.j2"
|
||||||
dest: "/mnt/etc/ipset.d/{{ item }}"
|
dest: "/mnt/etc/ipset.d/{{ item }}"
|
||||||
loop:
|
loop:
|
||||||
- blocklist4
|
- blocklist4
|
||||||
|
|
Loading…
Reference in a new issue