1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_collection_users.git synced 2024-08-16 10:29:50 +02:00

Change SSHD restart

CLOSE https://github.com/roles-ansible/ansible_collection_users/issues/27
This commit is contained in:
L3D 2024-08-08 16:33:35 +02:00
parent 4d3dcce8f9
commit 61b343b7f0
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 4 additions and 3 deletions

View file

@ -3,6 +3,6 @@
become: true
listen: 'systemctl restart sshd'
ansible.builtin.systemd:
name: "{{ l3d_users__sshd_service }}"
name: "{{ l3d_users__sshd_service | default(sshd) }}"
state: restarted
when: l3d_users__sshd__service is defined and ansible_service_mgr == 'systemd'
when: nsible_service_mgr == 'systemd'

View file

@ -5,7 +5,8 @@
when: submodules_versioncheck | bool
- name: Load l3d_users_sshd_service variable
ansible.builtin.include_vars: "{{ lookup('first_found', l3d_users_sshd__service_var_path) }}"
ansible.builtin.include_vars:
file: "{{ lookup('first_found', l3d_users_sshd__service_var_path) }}"
- name: Install openssh server
ansible.builtin.include_tasks: