mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-06 06:04:24 -07:00
parent
bc99432f89
commit
eaa5e07b28
247 changed files with 7318 additions and 7375 deletions
|
@ -4,21 +4,21 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
- block: &prepare
|
||||
- name: Create the final file
|
||||
ansible.builtin.copy:
|
||||
content: |
|
||||
[main]
|
||||
foo=BAR
|
||||
dest: "{{ remote_tmp_dir }}/my_original_file.ini"
|
||||
- name: Clean up symlink.ini
|
||||
ansible.builtin.file:
|
||||
path: "{{ remote_tmp_dir }}/symlink.ini"
|
||||
state: absent
|
||||
- name: Create a symbolic link
|
||||
ansible.builtin.file:
|
||||
src: my_original_file.ini
|
||||
dest: "{{ remote_tmp_dir }}/symlink.ini"
|
||||
state: link
|
||||
- name: Create the final file
|
||||
ansible.builtin.copy:
|
||||
content: |
|
||||
[main]
|
||||
foo=BAR
|
||||
dest: "{{ remote_tmp_dir }}/my_original_file.ini"
|
||||
- name: Clean up symlink.ini
|
||||
ansible.builtin.file:
|
||||
path: "{{ remote_tmp_dir }}/symlink.ini"
|
||||
state: absent
|
||||
- name: Create a symbolic link
|
||||
ansible.builtin.file:
|
||||
src: my_original_file.ini
|
||||
dest: "{{ remote_tmp_dir }}/symlink.ini"
|
||||
state: link
|
||||
|
||||
- name: Set the proxy key on the symlink which will be converted as a file
|
||||
community.general.ini_file:
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
|
||||
- name: test-modify_inactive_option 2 - read content from output file
|
||||
slurp:
|
||||
src: "{{ output_file }}"
|
||||
src: "{{ output_file }}"
|
||||
register: output_content
|
||||
|
||||
- name: test-modify_inactive_option 2 - set expected content and get current ini file content
|
||||
|
@ -144,7 +144,7 @@
|
|||
|
||||
- name: test-modify_inactive_option 4 - read content from output file
|
||||
slurp:
|
||||
src: "{{ output_file }}"
|
||||
src: "{{ output_file }}"
|
||||
register: output_content
|
||||
|
||||
- name: test-modify_inactive_option 4 - set expected content and get current ini file content
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue