Debian Codegraph @

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

raw
1 # Copyright (c) 2022, Ansible Project
2 # Copyright (c) 2022, VMware, Inc. All Rights Reserved.
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - name: install pycdlib
7 ansible.builtin.pip:
8 name: pycdlib
9 extra_args: "-c {{ remote_constraints }}"
10
11 - name: Make sure the previous testing sub-directory is deleted
12 ansible.builtin.file:
13 path: '{{ test_dir }}'
14 state: absent
15
16 - name: Create our testing sub-directory
17 ansible.builtin.file:
18 path: '{{ test_dir }}'
19 state: directory
20
21 - name: Create sub directory to mount customized ISO
22 ansible.builtin.file:
23 path: '{{ test_dir }}/iso_mount'
24 state: directory
25
26 - name: Create temporary file test01.cfg for testing
27 ansible.builtin.file:
28 path: "{{ test_dir }}/test01.cfg"
29 state: touch
30
31 - name: Add a line to the file test01.cfg and make sure it succeed
32 ansible.builtin.lineinfile:
33 path: "{{ test_dir }}/test01.cfg"
34 regexp: "^aaa"
35 line: "aaa"
36
37 - name: Create temporary file test02.cfg for testing
38 ansible.builtin.file:
39 path: "{{ test_dir }}/test02.cfg"
40 state: touch