Giter Site home page Giter Site logo

ansible-role-lxca-inventory's People

Contributors

prabhosa avatar pratikms avatar saysudheer avatar sudheerlenovo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ansible-role-lxca-inventory's Issues

license change request

hello, since module_utils.basic used BSD, for lxca inventory, we should follow which may be more flexible for customer to use that plugin.

ERROR! 'pylxca_module' is not a valid attribute for a Play

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.