d_strobel.windows.fsrm_filegroup (1.4.0) — module

Add or modify file groups

Authors: Dustin Strobel (@d-strobel)

Install collection

Install with ansible-galaxy collection install d_strobel.windows:==1.4.0


Add to requirements.yml

  collections:
    - name: d_strobel.windows
      version: 1.4.0

Description

Add or modify file groups for the File Server Resource Manager.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove file group test_group
  d_strobel.windows_fsrm.win_fsrm_filegroup:
    name: test_group
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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

Inputs

    
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