aws efs mount connection time out

Hi

i try inbound rule add nfs port 2049 to scertiy group id
but still show error connection time out
no idea how to solved

  • name: mount efs volume
    mount:
    path: “/home/ec2-user/{{ efs_vol_name }}”
    src: “{{ efs_fact_id }}.efs.ap-southeast-1.amazonaws.com:/”
    fstype: “nfs4”
    opts: “nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport”
    state: mounted
    become: yes

  • name: change directory owner
    file:
    dest: “/home/ec2-user/{{ efs_vol_name }}”
    owner: “ec2-user”
    group: “ec2-user”
    state: directory
    become: yes

Hi

This seems to be an issue with the specifics of your environment, and
not with ansible.