jandiorio / ansible-dnac-modules

GNU General Public License v3.0
19 stars 7 forks source link

Incorrect plugin name in file: wwt.ansible_dnac.dna_center #5

Open rosia opened 4 years ago

rosia commented 4 years ago

I'm running into an issue at the inventory plugin. At the very first step, Inventory plugin step 4. When I run it I get this :

(devnetvenv) % ansible-inventory -i inventory/dna_center.yml --graph [WARNING]: * Failed to parse /Users/Desktop/devnet/ansible/playbooks/dnac_ansible/inventory/dna_center.yml with ansible_collections.wwt.ansible_dnac.plugins.inventory.dna_center plugin: Incorrect plugin name in file: wwt.ansible_dnac.dna_center [WARNING]: Unable to parse /Users/Desktop/devnet/ansible/playbooks/dnac_ansible/inventory/dna_center.yml as an inventory source [WARNING]: No inventory was parsed, only implicit localhost is available @all: |--@ungrouped:


This is the ansible.cfg

(devnetvenv) % cat ansible.cfg [defaults] library = . host_key_checking = False retry_files_enabled = False inventory = inventory

inventory = hosts

Use the YAML callback plugin.

stdout_callback = yaml

Use the stdout_callback when running ad-hoc commands.

bin_ansible_callbacks = True

vault_password_file = ~/.vault_password

filter_plugins = playbooks/filter_plugins action_warnings = False display_skipped_hosts = false [inventory] enable_plugins = wwt.ansible_dnac.dna_center

This is the dna_center.yml

(devnetvenv) % cat dna_center.yml plugin: wwt.ansible_dnac.dna_center host: '' validate_certs: 'no' use_dnac_mgmt_int: false username: 'admin' password: ''

jandiorio commented 4 years ago

@rosia

Here is an example dna_center.yml file from my lab:

plugin: dna_center
host: dna-3-dnac.campus.wwtatc.local
validate_certs: false
use_dnac_mgmt_int: false
username: ****
password: *****

Try to name your plugin as seen here.