1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_sshd.git synced 2024-08-16 11:59:49 +02:00

update handler name

This commit is contained in:
Lilian Roller 2020-03-17 15:43:13 +01:00
parent 141f3c083f
commit 335c056e4c
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
2 changed files with 10 additions and 10 deletions

View file

@ -1,7 +1,7 @@
---
- name: restart ssh
- name: systemctrl restart ssh
become: yes
service:
name: "{{ ssh_service }}"
name: "{{ sshd_service }}"
state: restarted
when: ssh_service is defined
when: sshd_service is defined

View file

@ -32,7 +32,7 @@
validate: /usr/sbin/sshd -t -f %s
backup: yes
notify:
- restart ssh
- systemctrl restart ssh
- name: Generate new ecdsa ssh host key pair if necessary
become: yes
@ -41,7 +41,7 @@
chdir: '/etc/ssh/'
creates: 'ssh_host_ecdsa_key.pub'
notify:
- restart ssh
- systemctrl restart ssh
when:
- generate_ecdsa_too | bool
@ -52,7 +52,7 @@
chdir: '/etc/ssh/'
creates: 'ssh_host_ed25519_key.pub'
notify:
- restart ssh
- systemctrl restart ssh
when:
- ansible_distribution_release != 'wheezy'
@ -65,7 +65,7 @@
- rsa
- dsa
notify:
- restart ssh
- systemctrl restart ssh
when:
- generate_ecdsa_too | bool
- ansible_distribution_release != 'wheezy'
@ -81,7 +81,7 @@
- rsa
- dsa
notify:
- restart ssh
- systemctrl restart ssh
when:
- not generate_ecdsa_too | bool
- ansible_distribution_release != 'wheezy'
@ -97,7 +97,7 @@
- rsa
- dsa
notify:
- restart ssh
- systemctrl restart ssh
when:
- not generate_ecdsa_too | bool
- ansible_distribution_release != 'wheezy'
@ -112,7 +112,7 @@
- rsa
- dsa
notify:
- restart ssh
- systemctrl restart ssh
when:
- generate_ecdsa_too | bool
- ansible_distribution_release != 'wheezy'