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