Skip to content
This repository has been archived by the owner on Dec 26, 2020. It is now read-only.

opensshd.conf.j2 template type error #159

Closed
wilkis3 opened this issue Apr 18, 2018 · 4 comments
Closed

opensshd.conf.j2 template type error #159

wilkis3 opened this issue Apr 18, 2018 · 4 comments
Labels

Comments

@wilkis3
Copy link

wilkis3 commented Apr 18, 2018

TASK [dev-sec.ssh-hardening : create sshd_config and set permissions to root/600] ************
task path: /home/snoopy/ansible/roles/dev-sec.ssh-hardening/tasks/main.yml:25
fatal: [woodstock]: FAILED! => {
    "changed": false, 
    "msg": "AnsibleError: Unexpected templating type error occurred on (
...
Content of templates/opensshd.conf.j2
...
): 'int' object is not iterable"
}

Copy module works.

@rndmh3ro rndmh3ro added the bug label Apr 18, 2018
@rndmh3ro
Copy link
Member

Hey @wilkis3,

can you please share:

  • the playbook you're using
  • the whole error message
  • the target operating system
  • the ansible version
  • the ssh-hardening version

Then I can better debug your issue!

Thanks!

@ageis
Copy link
Contributor

ageis commented Apr 20, 2018

Hey @wilkis3, check the value of ssh_server_ports. It's supposed to be a list. A lot of people have it as an integer, but this changed in version 4.0.0 of the role.

@rndmh3ro
Copy link
Member

No response anymore..

@wilkis3
Copy link
Author

wilkis3 commented Sep 6, 2018

Thanks, @ageis thats right

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

No branches or pull requests

3 participants