community.general.aix_filesystem – Configure LVM and NFS file systems for AIX¶
Note
This plugin is part of the community.general collection (version 2.5.1).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.aix_filesystem
.
Synopsis¶
This module creates, removes, mount and unmount LVM and NFS file system for AIX using
/etc/filesystems
.For LVM file systems is possible to resize a file system.
Parameters¶
Examples¶
- name: Create filesystem in a previously defined logical volume.
community.general.aix_filesystem:
device: testlv
community.general.filesystem: /testfs
state: present
- name: Creating NFS filesystem from nfshost.
community.general.aix_filesystem:
device: /home/ftp
nfs_server: nfshost
community.general.filesystem: /home/ftp
state: present
- name: Creating a new file system without a previously logical volume.
community.general.aix_filesystem:
community.general.filesystem: /newfs
size: 1G
state: present
vg: datavg
- name: Unmounting /testfs.
community.general.aix_filesystem:
community.general.filesystem: /testfs
state: unmounted
- name: Resizing /mksysb to +512M.
community.general.aix_filesystem:
community.general.filesystem: /mksysb
size: +512M
state: present
- name: Resizing /mksysb to 11G.
community.general.aix_filesystem:
community.general.filesystem: /mksysb
size: 11G
state: present
- name: Resizing /mksysb to -2G.
community.general.aix_filesystem:
community.general.filesystem: /mksysb
size: -2G
state: present
- name: Remove NFS filesystem /home/ftp.
community.general.aix_filesystem:
community.general.filesystem: /home/ftp
rm_mount_point: yes
state: absent
- name: Remove /newfs.
community.general.aix_filesystem:
community.general.filesystem: /newfs
rm_mount_point: yes
state: absent
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
changed
boolean
|
always |
Return changed for aix_filesystems actions as true or false.
|
msg
string
|
always |
Return message regarding the action.
|
Authors¶
Kairo Araujo (@kairoaraujo)