Synopsis · Creates (empty) files, updates file modification stamps of existing files, and can create or remove directories. · Unlike file, does not modify ...
Nov 02, 2021 · If file, the file will NOT be created if it does not exist, see the ansible.windows.win_copy or ansible.windows.win_template module if you want that behavior.
ansible.windows.win_file – Creates, touches or removes files or directories ... This plugin is part of the ansible.windows collection (version 1.9.0). You might ...
21.12.2021 · -name: Query pagefiles configuration community.windows.win_pagefile:-name: Query C pagefile community.windows.win_pagefile: drive: C-name: Set C pagefile, don't override if exists community.windows.win_pagefile: drive: C initial_size: 1024 maximum_size: 1024 override: no state: present-name: Set C pagefile, override if exists community.windows.win_pagefile: drive: C …
02.11.2021 · directory. file. touch. If directory, all immediate subdirectories will be created if they do not exist. If file, the file will NOT be created if it does not exist, see the ansible.windows.win_copy or ansible.windows.win_template module if you want that behavior. If absent, directories will be recursively deleted, and files will be removed.
DSC and Ansible modules have a common goal which is to define and ensure the state of a resource. Because of this, resources like the DSC File resource and Ansible win_file can be used to achieve the same result. Deciding which to use depends on the scenario.
If file, the file will NOT be created if it does not exist, see the ansible.windows.win_copy or ansible.windows.win_template module if you want that behavior. If absent , directories will be recursively deleted, and files will be removed.
You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please ...