community.general.infini_export_client (0.2.1) — module

Create, Delete or Modify NFS Client(s) for existing exports on Infinibox

Authors: Gregory Shulov (@GR360RY)

Install collection

Install with ansible-galaxy collection install community.general:==0.2.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.2.1

Description

This module creates, deletes or modifys NFS client(s) for existing exports on Infinibox.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Make sure nfs client 10.0.0.1 is configured for export. Allow root access
  infini_export_client:
    client: 10.0.0.1
    access_mode: RW
    no_root_squash: yes
    export: /data
    user: admin
    password: secret
    system: ibox001
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add multiple clients with RO access. Squash root privileges
  infini_export_client:
    client: "{{ item }}"
    access_mode: RO
    no_root_squash: no
    export: /data
    user: admin
    password: secret
    system: ibox001
  with_items:
    - 10.0.0.2
    - 10.0.0.3

Inputs

    
user:
    description:
    - Infinibox User username with sufficient priveledges ( see notes ).
    required: false

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Creates/Modifies client when present and removes when absent.
    required: false

client:
    aliases:
    - name
    description:
    - Client IP or Range. Ranges can be defined as follows 192.168.0.1-192.168.0.254.
    required: true

export:
    description:
    - Name of the export.
    required: true

system:
    description:
    - Infinibox Hostname or IPv4 Address.
    required: true
    type: str

password:
    description:
    - Infinibox User password.
    type: str

access_mode:
    choices:
    - RW
    - RO
    default: RW
    description:
    - Read Write or Read Only Access.
    required: false

no_root_squash:
    default: false
    description:
    - Don't squash root user to anonymous. Will be set to "no" on creation if not specified
      explicitly.
    required: false
    type: bool