d_strobel / d_strobel.windows / 1.4.0 / module / fsrm_filegroup Add or modify file groups Authors: Dustin Strobel (@d-strobel)d_strobel.windows.fsrm_filegroup (1.4.0) — module
Install with ansible-galaxy collection install d_strobel.windows:==1.4.0
collections: - name: d_strobel.windows version: 1.4.0
Add or modify file groups for the File Server Resource Manager.
- name: Ensure file group is present with some included patterns d_strobel.windows_fsrm.win_fsrm_filegroup: name: test_group description: Managed by Ansible include_pattern: - ".aaa" - ".bbb" state: present
- name: Remove file group test_group d_strobel.windows_fsrm.win_fsrm_filegroup: name: test_group state: absent
- name: Ensure file group is present with included and excluded patterns d_strobel.windows_fsrm.win_fsrm_filegroup: name: test_group include_pattern: - ".aaa" - ".bbb" exclude_pattern: - ".ccc" - ".ddd" state: present
name: description: - The name of the file group. required: true type: str state: choices: - absent - present description: - Set to C(present) to ensure the file group is present. - Set to C(absent) to ensure the file group is removed. type: str description: description: - The description for the file group. type: str exclude_pattern: description: - A list of patterns that will be excluded from the file group. elements: str type: list include_pattern: description: - A list of patterns that will be included to the file group. elements: str required: true type: list