Using the example given in the readme:
inventory.yml (Updated to add code block)
- name: get nodes data from LXCA
pylxca_module:
login_user: "{{ lxca_user }}"
login_password: "{{ lxca_password }}"
auth_url: "{{ lxca_url }}"
command_options: nodes
register: rslt
tags:
nodes
I run: ansible-playbook -e "lxca_user=REDACTED lxca_password=REDACTED lxca_url=REDACTED" inventory.yml -vvvv
But I get this error:
`ERROR! 'pylxca_module' is not a valid attribute for a Play
The error appears to be in '/home/ubuntu/inventory.yml': line 3, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: get nodes data from LXCA
^ here`
pylxca is installed as per the readme:
pip install pylxca
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pylxca in /usr/local/lib/python3.10/dist-packages (3.2.0)
Requirement already satisfied: requests-toolbelt>=0.8.0 in /usr/lib/python3/dist-packages (from pylxca) (0.9.1)
Requirement already satisfied: unittest2 in /usr/lib/python3/dist-packages (from pylxca) (1.1.0)
Requirement already satisfied: requests>=2.7.0 in /usr/lib/python3/dist-packages (from pylxca) (2.25.1)
As well as ansible:
ansible --version
ansible 2.10.8
Using the example given in the readme:
inventory.yml (Updated to add code block)
I run: ansible-playbook -e "lxca_user=REDACTED lxca_password=REDACTED lxca_url=REDACTED" inventory.yml -vvvv
But I get this error:
`ERROR! 'pylxca_module' is not a valid attribute for a Play
The error appears to be in '/home/ubuntu/inventory.yml': line 3, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
^ here`
pylxca is installed as per the readme:
pip install pylxca
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pylxca in /usr/local/lib/python3.10/dist-packages (3.2.0)
Requirement already satisfied: requests-toolbelt>=0.8.0 in /usr/lib/python3/dist-packages (from pylxca) (0.9.1)
Requirement already satisfied: unittest2 in /usr/lib/python3/dist-packages (from pylxca) (1.1.0)
Requirement already satisfied: requests>=2.7.0 in /usr/lib/python3/dist-packages (from pylxca) (2.25.1)
As well as ansible:
ansible --version
ansible 2.10.8