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

Directive 'UseDNS' is not allowed within a Match block #136

Open
patriziotomato opened this issue Dec 18, 2024 · 0 comments · May be fixed by #137
Open

Directive 'UseDNS' is not allowed within a Match block #136

patriziotomato opened this issue Dec 18, 2024 · 0 comments · May be fixed by #137

Comments

@patriziotomato
Copy link

Setting up a new server gave me this error

failed: [#####] (item={'regexp': '^UseDNS', 'line': 'UseDNS no'}) => {"ansible_loop_var": "item", "changed": false, "item": {"line": "UseDNS no", "regexp": "^UseDNS"}, "msg": "failed to validate: rc:255 error:/root/.ansible/tmp/ansible-tmp-1734511177.3833175-1707-278987345813661/tmpwkl_6141 line 135: Directive 'UseDNS' is not allowed within a Match block\r\n"}

Background:

  • Before, I added a Match block to the sshd_config which once "block" won't get closed
  • Since the regex to modify the file create new lines on bottom, I run into this problems
@patriziotomato patriziotomato linked a pull request Dec 18, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant