We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 playbook ansible/common/roles/rear-test/tasks/update_sshd_config.yml contains:
ansible/common/roles/rear-test/tasks/update_sshd_config.yml
- name: Restart ssh service: name=ssh state=restarted
to restart the SSH daemon after modifying the /etc/ssh/sshd_config But, while running the playbook we get the following error:
/etc/ssh/sshd_config
TASK [rear-test : Update SSH configuration file - /etc/ssh/sshd_config] ******** ok: [client] => (item={u'regexp': u'^PasswordAuthentication', u'line': u'PasswordAuthentication yes'}) ok: [client] => (item={u'regexp': u'^UseDNS', u'line': u'UseDNS no'}) TASK [rear-test : Restart ssh] ************************************************* fatal: [client]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service ssh: host"} to retry, use: --limit @/vagrant/ansible/common/vagrant-playbook.retry PLAY RECAP ********************************************************************* client : ok=11 changed=4 unreachable=0 failed=1 Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.
The text was updated successfully, but these errors were encountered:
The solution was found on ansible/ansible-modules-core#1533:
- name: Restart ssh shell: sleep 3; systemctl restart sshd async: 1 poll: 0
Sorry, something went wrong.
In file update_sshd_config.yml we commented the lines:
0d61a85
to fix issue #18 and changed the ssh restart lines for issue #19
There is no ssh service, it's name is sshd
gdha
No branches or pull requests
The playbook
ansible/common/roles/rear-test/tasks/update_sshd_config.yml
contains:to restart the SSH daemon after modifying the
/etc/ssh/sshd_config
But, while running the playbook we get the following error:
The text was updated successfully, but these errors were encountered: