Markus Katharina Brechtel пре 6 година
родитељ
комит
d04b1a2acf
3 измењених фајлова са 87 додато и 81 уклоњено
  1. +64
    -58
      defaults/main.yml
  2. +2
    -0
      tasks/build.yml
  3. +21
    -23
      tasks/prepare.yml

+ 64
- 58
defaults/main.yml Прегледај датотеку

@@ -1,75 +1,81 @@
debirf_profile: custom
debirf_label: "debirf-{{debirf_profile}}"
debirf_profile: rescue
debirf_label: "{{debirf_profile}}"

debirf_suite: stretch
debirf_distro: debian
debirf_mirror: http://deb.debian.org/debian

debirf_default_modules:
#- a0_add_extra_repos
#- a0_add_security_repos
- a0_add_extra_repos
- a0_add_security_repos
#- a0_motd
- a0_prep-root
- install-kernel
- install-manpages
#- lock-root-passwd
#- mdadm
- mdadm
#- network
#- network-dhcp
#- root-bashrc
- z0_remove-locales
- z1_clean-root

# debirf_packages:
# - blktool
# - bonnie++
# - chntpw
# - cryptsetup
# - diskscan
# - dmidecode
# - dosfstools
# - e2tools
# - eject
# - ethtool
# - fancontrol
# - fatresize
# - flashrom
# - foremost
# - gddrescue
# - grub2
# - hdparm
# - hfsplus
# - hfsprogs
# - hfsutils
# - initramfs-tools-core
# - inteltool
# - lm-sensors
# - lsof
# - lsscsi
# - lvm2
# - memtester
# - msrtool
# - mtd-utils
# - ntfs-3g
# - nvramtool
# - parted
# - partimage
# - pciutils
# - rsync
# - screen
# - scrub
# - sdparm
# - sg3-utils
# - smartmontools
# - smp-utils
# - socat
# - squashfs-tools
# - superiotool
# - testdisk
# - testdisk
# - tofrodos
# - u-boot-tools
# - usbutils
# - wget
# - wipe
# - wodim
debirf_packages:
# packages
- ifupdown
- openssh-server
- python

# packages from rescue example
# - blktool
# - bonnie++
# - chntpw
# - cryptsetup
# - diskscan
# - dmidecode
# - dosfstools
# - e2tools
# - eject
# - ethtool
# - fancontrol
# - fatresize
# - flashrom
# - foremost
# - gddrescue
# - grub2
# - hdparm
# - hfsplus
# - hfsprogs
# - hfsutils
# - initramfs-tools-core
# - inteltool
# - lm-sensors
# - lsof
# - lsscsi
# - lvm2
# - memtester
# - msrtool
# - mtd-utils
# - ntfs-3g
# - nvramtool
# - parted
# - partimage
# - pciutils
# - rsync
# - screen
# - scrub
# - sdparm
# - sg3-utils
# - smartmontools
# - smp-utils
# - socat
# - squashfs-tools
# - superiotool
# - testdisk
# - testdisk
# - tofrodos
# - u-boot-tools
# - usbutils
# - wget
# - wipe
# - wodim

+ 2
- 0
tasks/build.yml Прегледај датотеку

@@ -7,6 +7,8 @@
become_method: su
args:
chdir: "{{ debirf_home_directory }}"
environment:
DEBIRF_DEFAULT_PACKAGES: "{{ debirf_profile_directory }}/default-packages"
register: _debirf_make_command

- name: copy kernel


+ 21
- 23
tasks/prepare.yml Прегледај датотеку

@@ -14,14 +14,6 @@
owner: debirf
group: debirf

- name: packages
template:
src: packages.j2
dest: "{{ debirf_profile_directory }}/packages"
owner: debirf
group: debirf
when: debirf_packages is defined

- name: modules directory
file:
state: directory
@@ -38,19 +30,25 @@
group: debirf
with_items: "{{ debirf_default_modules }}"

# - name: profile
# copy:
# src: profile/
# dest: "{{ debirf_profile_directory }}"
# owner: debirf
# group: debirf
# when: debirf_example_profile is defined
- name: packages
template:
src: packages.j2
dest: "{{ debirf_profile_directory }}/packages"
owner: debirf
group: debirf
when: debirf_packages is defined

# - name: set permissions
# file:
# owner: debirf
# group: debirf
# recurse: yes
# follow: no
# path: "{{ debirf_working_directory }}"
# state: directory
- name: default packages
copy:
src: /usr/share/debirf/packages
dest: "{{ debirf_profile_directory }}/default-packages"
owner: debirf
group: debirf

- name: do not exclude packages which are to be included
lineinfile:
path: "{{ debirf_profile_directory }}/default-packages"
regexp: '^[\-]{{ item | regex_escape }}$'
state: absent
with_items: "{{ debirf_packages }}"
when: debirf_packages is defined