Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The error was: ansible.errors.AnsibleUndefinedVariable: 'snmp_agentadress_protocol' is undefined #29

Open
dimaliv opened this issue May 5, 2022 · 3 comments

Comments

@dimaliv
Copy link

dimaliv commented May 5, 2022

Playbook:

- hosts: host
  gather_facts: yes
  tasks:
    - name: snmp
      import_role: 
        name: sbaerlocher.snmp
      tags: [ configuration, packages ]
      vars:
        snmp_user: "{{ group_vars_snmp_secrets.snmp_user }}"
        snmp_password: "{{ group_vars_snmp_secrets.snmp_password }}"
        snmp_encryption: "{{ group_vars_snmp_secrets.snmp_encryption }}"`

Result:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'snmp_agentadress_protocol' is undefined
fatal: [host]: FAILED! => {
    "changed": false
}

MSG:

AnsibleUndefinedVariable: 'snmp_agentadress_protocol' is undefined
@hpza
Copy link

hpza commented May 17, 2022

Same happens with me

@tijko
Copy link

tijko commented Nov 4, 2022

@hpza I should have checked before forking and opening a PR because #23 #30 and now #31 all reference/fix the same issue :)

@ollylawrence
Copy link

Yeah having the same issue . . . rolling back to 1.8.0 works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants