Debian Codegraph @

test/integration/targets/blockinfile/tasks/main.yml

raw
1 # Test code for the blockinfile module.
2 # (c) 2017, James Tanner <[email protected]>
3
4 # This file is part of Ansible
5 #
6 # Ansible is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # Ansible is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with Ansible. If not, see <http://www.gnu.org/licenses/>.
18
19 - set_fact:
20 remote_tmp_dir_test: "{{ remote_tmp_dir }}/test_blockinfile"
21
22 - name: make sure our testing sub-directory does not exist
23 file:
24 path: "{{ remote_tmp_dir_test }}"
25 state: absent
26
27 - name: create our testing sub-directory
28 file:
29 path: "{{ remote_tmp_dir_test }}"
30 state: directory
31
32 - import_tasks: add_block_to_existing_file.yml
33 - import_tasks: create_file.yml
34 - import_tasks: create_dir.yml
35 - import_tasks: preserve_line_endings.yml
36 - import_tasks: block_without_trailing_newline.yml
37 - import_tasks: file_without_trailing_newline.yml
38 - import_tasks: diff.yml
39 - import_tasks: validate.yml
40 - import_tasks: insertafter.yml
41 - import_tasks: insertbefore.yml
42 - import_tasks: multiline_search.yml
43 - import_tasks: append_newline.yml
44 - import_tasks: prepend_newline.yml
45 - import_tasks: encoding.yml