tasks: Improve the order of keys and add missing name

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Jakub Jelen 2022-12-13 11:33:59 +01:00 committed by Jakub Jelen
parent e6d075b8f3
commit 6f4d3d8fdb
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,6 @@
---
- name: Install systemd service files
when: sshd_install_service | bool
block:
- name: Install service unit file
ansible.builtin.template:
@ -25,7 +26,6 @@
group: root
mode: "0644"
notify: reload_sshd
when: sshd_install_service | bool
- name: Service enabled and running
ansible.builtin.service:

View file

@ -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