浏览代码

Merge branch 'master' of git.devops.thengo.intranet:chaotika/ansible-role-live-build

master
Markus Brechtel 5 年前
父节点
当前提交
83748de9a3
共有 4 个文件被更改,包括 40 次插入32 次删除
  1. +5
    -0
      defaults/main.yml
  2. +30
    -1
      tasks/config.yaml
  3. +5
    -7
      tasks/setup.yaml
  4. +0
    -24
      templates/lb-config-args.j2

+ 5
- 0
defaults/main.yml 查看文件

@@ -6,3 +6,8 @@ live_build_bootappend_live: boot=live components quiet {{ live_build_serial_cons
live_build_hostname: "{{ inventory_hostname }}"

live_build_distribution: stretch

debian_nonfree_firmware: true

debian_live_debian_installer: live
live_build_directory: /opt/live

+ 30
- 1
tasks/config.yaml 查看文件

@@ -14,7 +14,36 @@
- name: lb config
command:
lb config
{{ lookup('template','lb-config-args.j2') }}

{% if live_build_distribution is defined %}
--distribution "{{ live_build_distribution }}"
{% endif %}

--mirror-bootstrap "{{ debian_mirror }}"
--mirror-chroot-security "{{ debian_security_mirror }}"
--mirror-binary "{{ debian_mirror }}"
--mirror-binary-security "{{ debian_security_mirror }}"

{% if debian_nonfree_firmware %}
--archive-areas "main contrib non-free"
--firmware-chroot true
{% endif %}

{% if live_build_bootappend_live is defined %}
--bootappend-live "{{ live_build_bootappend_live }}"
{% endif %}

{% if (debian_backports is defined) and (debian_backports == true) %}
--backports true
{% endif %}

{% if debian_live_debian_installer is defined %}
--debian-installer "{{ debian_live_debian_installer }}"
--debian-installer-gui "{{ live_build_debian_installer_gui | default(false) }}"
{% if debian_nonfree_firmware %}
--firmware-binary true
{% endif %}
{% endif %}
args:
chdir: "{{ live_build_directory }}"



+ 5
- 7
tasks/setup.yaml 查看文件

@@ -1,9 +1,7 @@
---
- name: install apt packages
- name: debian packages
apt:
pkg: "{{ item }}"
state: installed
with_items:
- live-build
- memtest86
- memtest86+
pkg:
- live-build
- memtest86
- memtest86+

+ 0
- 24
templates/lb-config-args.j2 查看文件

@@ -1,24 +0,0 @@
{% if live_build_distribution is defined %}
--distribution "{{ live_build_distribution }}"
{% endif %}
--mirror-bootstrap "{{ debian_mirror }}"
--mirror-chroot-security "{{ debian_security_mirror }}"
--mirror-binary "{{ debian_mirror }}"
--mirror-binary-security "{{ debian_security_mirror }}"
{% if debian_nonfree_firmware %}
--archive-areas "main contrib non-free"
--firmware-chroot true
{% endif %}
{% if live_build_bootappend_live is defined %}
--bootappend-live "{{ live_build_bootappend_live }}"
{% endif %}
{% if (debian_backports is defined) and (debian_backports == true) %}
--backports true
{% endif %}
{% if live_build_debian_installer is defined %}
--debian-installer "{{ live_build_debian_installer }}"
--debian-installer-gui false
{% if debian_nonfree_firmware %}
--firmware-binary true
{% endif %}
{% endif %}

正在加载...
取消
保存