mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-25 04:20:18 +01:00
tasks: Improve the order of keys and add missing name
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
parent
e6d075b8f3
commit
6f4d3d8fdb
2 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Install systemd service files
|
- name: Install systemd service files
|
||||||
|
when: sshd_install_service | bool
|
||||||
block:
|
block:
|
||||||
- name: Install service unit file
|
- name: Install service unit file
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
@ -25,7 +26,6 @@
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify: reload_sshd
|
notify: reload_sshd
|
||||||
when: sshd_install_service | bool
|
|
||||||
|
|
||||||
- name: Service enabled and running
|
- name: Service enabled and running
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- ansible.builtin.include_tasks: sshd.yml
|
- name: Invoke the role, if enabled
|
||||||
|
ansible.builtin.include_tasks: sshd.yml
|
||||||
when: sshd_enable|bool
|
when: sshd_enable|bool
|
||||||
|
|
Loading…
Reference in a new issue