Skip to content

aix_filesystem.py from MAIN quietly (without error) does nothing if adding NFS Mounts #11178

@mpentenr

Description

@mpentenr

Summary

When i try to create a new NFS fileshare with the collection from the main brach on Github, it says everything is okay and crewated, but in /etc/filesystems is nothing to be found.

Issue Type

Bug Report

Component Name

aix_filesystem

Ansible Version

$ ansible --version
ansible [core 2.14.13]
  config file = /CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg
  configured module search path = ['/cadhome/pema293/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/freeware/lib/python3.9/site-packages/ansible
  ansible collection location = /cadhome/pema293/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/freeware/bin/ansible.orig
  python version = 3.9.22 (main, May  5 2025, 07:00:37) [GCC 10.3.0] (/opt/freeware/bin/python3.9)
  jinja version = 3.1.4
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general
Collection        Version
----------------- -------
community.general 6.3.0

Configuration

$ ansible-config dump --only-changed
CONFIG_FILE() = /CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg
DEFAULT_HOST_LIST(/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg) = ['/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/inventory']
DEFAULT_LOG_PATH(/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg) = /CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/log/ansible.log
DEFAULT_PRIVATE_KEY_FILE(/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg) = /cadhome/pema293/.ssh/id_rsa.cadasvadm01
DEFAULT_REMOTE_USER(/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg) = root
DEFAULT_ROLES_PATH(/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg) = ['/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/roles']
DEFAULT_STDOUT_CALLBACK(/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg) = debug
DEFAULT_TIMEOUT(/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg) = 100
HOST_KEY_CHECKING(/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg) = False
INTERPRETER_PYTHON(/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg) = /opt/freeware/libexec/python3
PERSISTENT_COMMAND_TIMEOUT(/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg) = 50
PERSISTENT_CONNECT_RETRY_TIMEOUT(/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg) = 55
PERSISTENT_CONNECT_TIMEOUT(/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg) = 100
RETRY_FILES_ENABLED(/CAD_SOURCES/aix_iso/ansible/pema293/Ansible_Aix/ansible.cfg) = True

OS / Environment

AIX 7.2 7200-05-10-2520

Steps to Reproduce

- name: Creating NFS filesystem /cada001/lmt/dsk104 from nfshost.
  aix_filesystem:
    device: "/vol/CAD01/CATIA/CATIA1/lmt/dsk104"
    nfs_server: "nfsservername"
    filesystem: "/cada001/lmt/dsk104"
    attributes: "bg,soft"
    auto_mount: yes
    fs_type: "nfs"
    permissions: rw
    state: "present"

Expected Results

I expected to find an entry in /etc/filesystems, but that is not the case

Actual Results

TASK [filesystems : Creating NFS filesystem /usr/local/bin from nfshost.] **************************************************************************************************************************************************************************
ok: [cadasva98] => {
    "changed": false
}

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue/PR relates to a bugmodulemodulepluginsplugin (any type)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions