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

Iptables configured : vultr #14656

Open
omaritto99 opened this issue Oct 3, 2023 · 1 comment
Open

Iptables configured : vultr #14656

omaritto99 opened this issue Oct 3, 2023 · 1 comment

Comments

@omaritto99
Copy link

Describe the bug

i getting a bug at step 'Iptables configured' , im using Vulter

Full log

TASK [common : Iptables configured] ******************************************************************************************************************************************************************************
task path: /Users/omar/algo/roles/common/tasks/iptables.yml:2
The full traceback is:
Traceback (most recent call last):
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/ansible/template/__init__.py", line 1001, in do_template
    res = myenv.concat(rf)
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/ansible/template/native_helpers.py", line 83, in ansible_concat
    return ''.join([to_text(v) for v in nodes])
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/ansible/template/native_helpers.py", line 83, in <listcomp>
    return ''.join([to_text(v) for v in nodes])
  File "<template>", line 42, in root
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/ansible/template/__init__.py", line 295, in wrapper
    ret = func(*args, **kwargs)
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/jinja2/filters.py", line 980, in do_int
    return int(value)
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/jinja2/runtime.py", line 903, in _fail_with_undefined_error
    raise self._undefined_exception(self._undefined_message)
jinja2.exceptions.UndefinedError: 'wireguard_port_avoid' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/ansible/plugins/action/template.py", line 152, in run
    resultant = templar.do_template(template_data, preserve_trailing_newlines=True, escape_backslashes=False, overrides=overrides)
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/ansible/template/__init__.py", line 1035, in do_template
    raise AnsibleUndefinedVariable(e, orig_exc=e)
ansible.errors.AnsibleUndefinedVariable: 'wireguard_port_avoid' is undefined. 'wireguard_port_avoid' is undefined
failed: [64.176.194.204] (item={'src': 'rules.v4.j2', 'dest': '/etc/iptables/rules.v4'}) => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": {
        "dest": "/etc/iptables/rules.v4",
        "src": "rules.v4.j2"
    },
    "msg": "AnsibleUndefinedVariable: 'wireguard_port_avoid' is undefined. 'wireguard_port_avoid' is undefined"
}
Read vars_file 'config.cfg'


@omaritto99
Copy link
Author

i got the same error using DigitalOceon :
image

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

1 participant