This repository was archived by the owner on Dec 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 198
This repository was archived by the owner on Dec 26, 2020. It is now read-only.
Task create sshd_config and set permissions fails #302
Copy link
Copy link
Closed
Description
Describe the bug
I'm getting the below error on create sshd_config and set permissions to root/600 which I think is this task.
TASK [dev-sec.ssh-hardening : create sshd_config and set permissions to root/600] ***
fatal: [redacted-test-worker200.test.redacted]: FAILED! => {"changed": false, "checksum": "a0322a9204a479b708dce392e75c493c841b4496", "exit_status": 255, "msg": "failed to validate", "stderr": "bad addr or host: . (Name or service not known)\r\n", "stderr_lines": ["bad addr or host: . (Name or service not known)"], "stdout": "", "stdout_lines": []}
fatal: [redacted-test-worker201.test.redacted]: FAILED! => {"changed": false, "checksum": "a0322a9204a479b708dce392e75c493c841b4496", "exit_status": 255, "msg": "failed to validate", "stderr": "bad addr or host: . (Name or service not known)\r\n", "stderr_lines": ["bad addr or host: . (Name or service not known)"], "stdout": "", "stdout_lines": []}
fatal: [redacted-test-worker203.test.redacted]: FAILED! => {"changed": false, "checksum": "a0322a9204a479b708dce392e75c493c841b4496", "exit_status": 255, "msg": "failed to validate", "stderr": "bad addr or host: . (Name or service not known)\r\n", "stderr_lines": ["bad addr or host: . (Name or service not known)"], "stdout": "", "stdout_lines": []}
fatal: [redacted-test-worker202.test.redacted]: FAILED! => {"changed": false, "checksum": "a0322a9204a479b708dce392e75c493c841b4496", "exit_status": 255, "msg": "failed to validate", "stderr": "bad addr or host: . (Name or service not known)\r\n", "stderr_lines": ["bad addr or host: . (Name or service not known)"], "stdout": "", "stdout_lines": []}
Expected behavior
Expect the playbook to complete successfully
Actual behavior
See above
Example Playbook
- name: Harden ssh
hosts: workers
gather_facts: yes
roles:
- dev-sec.ssh-hardening
vars:
ssh_listen_to: "10.8.001.0"
ssh_client_password_login: true
ssh_server_password_login: true
tasks:
OS / Environment
Centos 7
Ansible Version
ansible 2.9.10
config file = /etc/ansible/ansible.cfg
configured module search path = ['/var/lib/awx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.6/site-packages/ansible
executable location = /usr/bin/ansible
python version = 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
Role Version
master branch
Metadata
Metadata
Assignees
Labels
No labels