TASK [Probando salida] *****************************************************************************************************************************
fatal: [localhost]: FAILED! => {“msg”: “The task includes an option with an undefined variable. The error was: ‘list object’ has no attribute ‘name’\n\nThe error appears to be in ‘/etc/ansible/openvpn/create_access_prod/playbook/list-test.yaml’: line 6, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n tasks:\n - name: "Probando salida"\n ^ here\n”}
But I suspect you have bigger plans. Why is easyrsa_clients a list? Do you intend to add other clients later? In which case, the above isn’t going to work. you need something that will handle a fully articulated set of the data. That’s what I alluded to when I (mis)typed “Or is there more to the problem than you’ve shown us?”
The idea was to generate a variable in the form of a list for cases that I need to create accesses to the VPN to more than one user, with your explanation I could understand my error.
Thank you very much.