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:
parent
141f3c083f
commit
335c056e4c
2 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue