File tree 11 files changed +30
-65
lines changed
11 files changed +30
-65
lines changed Original file line number Diff line number Diff line change 1
1
# .ansible-lint
2
2
skip_list:
3
- - '208'
3
+ - '208'
4
+ - command-instead-of-module # Using command rather than module.
5
+ - command-instead-of-shell # Use shell only when shell functionality is required.
6
+ - no-changed-when # Commands should not change things if nothing needs doing.
7
+ - risky-shell-pipe # Shells that use pipes should set the pipefail option.
8
+ - literal-compare # Don't compare to literal True/False.
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Register a listing of all created iPXE bootloaders
3
- command : ls -I {{ checksums_filename }} {{ netbootxyz_root }}/ipxe/
3
+ ansible.builtin. command : ls -I {{ checksums_filename }} {{ netbootxyz_root }}/ipxe/
4
4
register : netboot_disks
5
- tags :
6
- - skip_ansible_lint
7
5
8
6
- name : Generate date
9
- command : date
7
+ ansible.builtin. command : date
10
8
register : current_date
11
- tags :
12
- - skip_ansible_lint
13
9
14
10
- name : Gather stat listing of directory
15
- command : sha256sum -b {{ item }}
11
+ ansible.builtin. command : sha256sum -b {{ item }}
16
12
with_items :
17
13
- " {{ netboot_disks.stdout_lines }}"
18
14
args :
19
15
chdir : " {{ netbootxyz_root }}/ipxe/"
20
16
register : netboot_disks_stat
21
- tags :
22
- - skip_ansible_lint
23
17
24
18
- name : Generate ipxe disk checksums
25
19
ansible.builtin.template :
26
20
src : checksums.txt.j2
27
21
dest : " {{ netbootxyz_root }}/ipxe/{{ checksums_filename }}"
28
22
29
23
- name : Generate site name banner for index
30
- shell : toilet -f standard {{ site_name }} --html | grep span
24
+ ansible.builtin. shell : toilet -f standard {{ site_name }} --html | grep span
31
25
register : index_title
32
- tags :
33
- - skip_ansible_lint
34
26
when : ansible_os_family == "Debian"
35
27
36
28
- name : Generate netboot.xyz index template
Original file line number Diff line number Diff line change 27
27
# iPXE workaround
28
28
# http://lists.ipxe.org/pipermail/ipxe-devel/2018-August/006254.html
29
29
# apply patch to fix arm64 builds on amd64 builds
30
- - name : iPXE Workaround for arm
31
- shell : sed -i '/WORKAROUND_CFLAGS/d' arch/arm64/Makefile
30
+ - name : Workaround in iPXE for arm
31
+ ansible.builtin. shell : sed -i '/WORKAROUND_CFLAGS/d' arch/arm64/Makefile
32
32
args :
33
33
chdir : " {{ ipxe_source_dir }}/src"
34
- tags :
35
- - skip_ansible_lint
36
34
37
35
- name : Compile iPXE bootloaders for EFI arm64
38
- shell : |
36
+ ansible.builtin. shell : |
39
37
make clean
40
38
make CROSS_COMPILE=aarch64-linux-gnu- \
41
39
ARCH=arm64 \
46
44
bin-arm64-efi/snponly.efi
47
45
args :
48
46
chdir : " {{ ipxe_source_dir }}/src"
49
- tags :
50
- - skip_ansible_lint
51
47
when : ipxe_debug_enabled | bool == false
52
48
53
49
- name : Compile iPXE bootloader for EFI arm64 with debug flags
54
- shell : |
50
+ ansible.builtin. shell : |
55
51
make clean
56
52
make CROSS_COMPILE=aarch64-linux-gnu- \
57
53
ARCH=arm64 \
61
57
bin-arm64-efi/snp.efi
62
58
args :
63
59
chdir : " {{ ipxe_source_dir }}/src"
64
- tags :
65
- - skip_ansible_lint
66
60
when : ipxe_debug_enabled | bool
67
61
68
62
- name : Copy iPXE arm64 EFI builds to http directory
Original file line number Diff line number Diff line change 25
25
when : generate_signatures | bool
26
26
27
27
- name : Compile iPXE bootloader for EFI
28
- shell : |
28
+ ansible.builtin. shell : |
29
29
make clean
30
30
make EMBED={{ bootloader_filename }} \
31
31
TRUST={{ trust_files }} \
34
34
bin-x86_64-efi/snponly.efi
35
35
args :
36
36
chdir : " {{ ipxe_source_dir }}/src"
37
- tags :
38
- - skip_ansible_lint
39
37
when : ipxe_debug_enabled | bool == false
40
38
41
39
- name : Compile iPXE bootloader for EFI with debug flags
42
- shell : |
40
+ ansible.builtin. shell : |
43
41
make clean
44
42
make EMBED={{ bootloader_filename }} \
45
43
DEBUG={{ ipxe_debug_options }} \
49
47
bin-x86_64-efi/snponly.efi
50
48
args :
51
49
chdir : " {{ ipxe_source_dir }}/src"
52
- tags :
53
- - skip_ansible_lint
54
50
when : ipxe_debug_enabled | bool
55
51
56
52
- name : Copy iPXE EFI builds to http directory
Original file line number Diff line number Diff line change 1
1
---
2
2
3
3
- name : Generate hybrid ISO image
4
- shell : |
4
+ ansible.builtin. shell : |
5
5
./util/genfsimg -o {{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}.iso \
6
6
-s {{ bootloader_filename }} \
7
7
{{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}.efi \
8
8
{{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}.lkrn
9
9
args :
10
10
chdir : " {{ ipxe_source_dir }}/src"
11
- tags :
12
- - skip_ansible_lint
13
11
14
12
- name : Generate hybrid USB image
15
- shell : |
13
+ ansible.builtin. shell : |
16
14
./util/genfsimg -o {{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}.img \
17
15
-s {{ bootloader_filename }} \
18
16
{{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}.efi \
19
17
{{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}.lkrn
20
18
args :
21
19
chdir : " {{ ipxe_source_dir }}/src"
22
- tags :
23
- - skip_ansible_lint
Original file line number Diff line number Diff line change 21
21
when : generate_signatures | bool
22
22
23
23
- name : Compile iPXE bootloader for Legacy BIOS
24
- shell : |
24
+ ansible.builtin. shell : |
25
25
make clean
26
26
make EMBED={{ bootloader_filename }} \
27
27
TRUST={{ trust_files }} \
32
32
bin/undionly.kpxe
33
33
args :
34
34
chdir : " {{ ipxe_source_dir }}/src"
35
- tags :
36
- - skip_ansible_lint
37
35
when : ipxe_debug_enabled | bool == false
38
36
39
37
- name : Compile iPXE bootloader for Legacy BIOS with debug flags
40
- shell : |
38
+ ansible.builtin. shell : |
41
39
make clean
42
40
make EMBED={{ bootloader_filename }} \
43
41
DEBUG={{ ipxe_debug_options }} \
49
47
bin/undionly.kpxe
50
48
args :
51
49
chdir : " {{ ipxe_source_dir }}/src"
52
- tags :
53
- - skip_ansible_lint
54
50
when : ipxe_debug_enabled | bool
55
51
56
52
- name : Copy iPXE files for Legacy BIOS to http directory
Original file line number Diff line number Diff line change 25
25
when : generate_signatures | bool
26
26
27
27
- name : Compile iPXE Linux bootloader for Legacy BIOS
28
- shell : |
28
+ ansible.builtin. shell : |
29
29
make clean
30
30
make EMBED={{ bootloader_filename }} \
31
31
TRUST={{ trust_files }} \
32
32
bin-x86_64-linux/slirp.linux
33
33
args :
34
34
chdir : " {{ ipxe_source_dir }}/src"
35
- tags :
36
- - skip_ansible_lint
37
35
when : ipxe_debug_enabled | bool == false
38
36
39
37
- name : Compile iPXE Linux bootloader for Legacy BIOS with debug flags
40
- shell : |
38
+ ansible.builtin. shell : |
41
39
make clean
42
40
make EMBED={{ bootloader_filename }} \
43
41
DEBUG={{ ipxe_debug_options }} \
44
42
TRUST={{ trust_files }} \
45
43
bin-x86_64-linux/slirp.linux
46
44
args :
47
45
chdir : " {{ ipxe_source_dir }}/src"
48
- tags :
49
- - skip_ansible_lint
50
46
when : ipxe_debug_enabled | bool
51
47
52
48
- name : Copy iPXE linux binary for Legacy BIOS to http directory
Original file line number Diff line number Diff line change 49
49
dest : " {{ pipxe_source_dir }}/Makefile"
50
50
51
51
- name : Compile iPXE bootloader for RPI build
52
- shell : |
52
+ ansible.builtin. shell : |
53
53
make
54
54
args :
55
55
chdir : " {{ pipxe_source_dir }}"
56
- tags :
57
- - skip_ansible_lint
58
56
59
57
- name : Copy iPXE RPI builds to http directory
60
58
ansible.builtin.copy :
Original file line number Diff line number Diff line change 60
60
- generate_version_file | bool
61
61
62
62
- name : Generate netboot.xyz source files templates
63
- template :
63
+ ansible.builtin. template :
64
64
src : " {{ item.src }}"
65
- dest : " {{ netbootxyz_root }}/{{ item.path | regex_replace('.j2','') }}"
66
- with_community.general.filetree : " templates/menu/"
65
+ dest : " {{ netbootxyz_root }}/{{ item.path | regex_replace('.j2', '') }}"
66
+ with_community.general.filetree : " {{ ' templates/menu/' }} "
67
67
when : item.state == "file"
68
- tags :
69
- - skip_ansible_lint
70
68
71
69
- name : Generate local-vars.ipxe if enabled
72
70
ansible.builtin.template :
Original file line number Diff line number Diff line change 9
9
- " {{ netbootxyz_root }}/custom"
10
10
11
11
- name : Generate custom user menu templates
12
- template :
12
+ ansible.builtin. template :
13
13
src : " {{ item.src }}"
14
- dest : " {{ netbootxyz_root }}/custom/{{ item.path | regex_replace('.j2','') }}"
14
+ dest : " {{ netbootxyz_root }}/custom/{{ item.path | regex_replace('.j2', '') }}"
15
15
with_community.general.filetree : " {{ custom_templates_dir }}"
16
16
when : item.state == "file"
17
- tags :
18
- - skip_ansible_lint
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Gather list of source files
3
- command : ls {{ netbootxyz_root }}
3
+ ansible.builtin. command : ls {{ netbootxyz_root }}
4
4
register : source_files
5
- tags :
6
- - skip_ansible_lint
7
5
8
6
- name : Create directories for signatures
9
7
ansible.builtin.file :
13
11
- " {{ sigs_dir }}"
14
12
15
13
- name : Generate signatures for source files
16
- shell : |
14
+ ansible.builtin. shell : |
17
15
openssl cms -sign -binary -noattr -in {{ netbootxyz_root }}/{{ item }} \
18
16
-signer {{ codesign_cert_filename }} -inkey {{ codesign_key_filename }} -certfile {{ cert_file_filename }} -outform DER \
19
17
-out {{ sigs_dir }}/{{ item }}.sig
22
20
warn : false
23
21
with_items :
24
22
- " {{ source_files.stdout_lines }}"
25
- tags :
26
- - skip_ansible_lint
You can’t perform that action at this time.
0 commit comments