Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/iso_customize/tasks/main.yml

raw
1 ####################################################################
2 # WARNING: These are designed specifically for Ansible tests #
3 # and should not be used as examples of how to write Ansible roles #
4 ####################################################################
5
6 # Copyright (c) 2022, Ansible Project
7 # Copyright (c) 2022, VMware, Inc. All Rights Reserved.
8 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
9 # SPDX-License-Identifier: GPL-3.0-or-later
10
11 - name: Skip some platforms which does not support ansible.posix.mount
12 meta: end_play
13 when: ansible_facts.distribution in ['Alpine']
14
15 - set_fact:
16 test_dir: '{{ remote_tmp_dir }}/test_iso_customize'
17
18 - include_tasks: prepare.yml
19
20 - name: Create iso file with a specified file and directory
21 community.general.iso_create:
22 src_files:
23 - "{{ test_dir }}/test01.cfg"
24 - "{{ test_dir }}/test02.cfg"
25 dest_iso: "{{ test_dir }}/test.iso"
26 interchange_level: 3
27
28 - include_tasks: iso_customize.yml
29 vars:
30 dest_iso_name: "iso_customize.iso"
31
32 - name: Create an ISO file with Rock Ridge extension
33 community.general.iso_create:
34 src_files:
35 - "{{ test_dir }}/test01.cfg"
36 - "{{ test_dir }}/test02.cfg"
37 dest_iso: "{{ test_dir }}/test.iso"
38 rock_ridge: "1.09"
39
40 - include_tasks: iso_customize.yml
41 vars:
42 dest_iso_name: "iso_customize_rr.iso"
43
44 - name: Create an ISO file with Joliet support
45 community.general.iso_create:
46 src_files:
47 - "{{ test_dir }}/test01.cfg"
48 - "{{ test_dir }}/test02.cfg"
49 dest_iso: "{{ test_dir }}/test.iso"
50 interchange_level: 3
51 joliet: 3
52 vol_ident: AUTOINSTALL
53
54 - include_tasks: iso_customize.yml
55 vars:
56 dest_iso_name: "iso_customize_joliet.iso"
57
58 - name: Create iso file with UDF enabled
59 community.general.iso_create:
60 src_files:
61 - "{{ test_dir }}/test01.cfg"
62 - "{{ test_dir }}/test02.cfg"
63 dest_iso: "{{ test_dir }}/test.iso"
64 udf: true
65
66 - include_tasks: iso_customize.yml
67 vars:
68 dest_iso_name: "iso_customize_udf.iso"
69
70 # Create initial iso for customzing with only option add_files/delete_files
71 - name: Create iso file with a specified file and directory
72 community.general.iso_create:
73 src_files:
74 - "{{ test_dir }}/test01.cfg"
75 dest_iso: "{{ test_dir }}/test1.iso"
76 interchange_level: 3
77
78 - include_tasks: iso_customize_add_files.yml
79 vars:
80 dest_iso_name: "iso_customize_add.iso"
81
82 - include_tasks: iso_customize_delete_files.yml
83 vars:
84 dest_iso_name: "iso_customize_delete.iso"
85
86 # Test: misc exception
87 - include_tasks: iso_customize_exception.yml
88 vars:
89 dest_iso_name: "iso_customize_exception.iso"
90
91 - name: Delete testing sub-directory
92 ansible.builtin.file:
93 path: '{{ test_dir }}'
94 state: absent