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

Merge pull request #30 from roles-ansible/2

Change SSHD restart
This commit is contained in:
L3D 2024-08-08 16:35:08 +02:00 committed by GitHub
commit ecf4485eda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -3,6 +3,6 @@
become: true become: true
listen: 'systemctl restart sshd' listen: 'systemctl restart sshd'
ansible.builtin.systemd: ansible.builtin.systemd:
name: "{{ l3d_users__sshd_service }}" name: "{{ l3d_users__sshd_service | default(sshd) }}"
state: restarted 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 when: submodules_versioncheck | bool
- name: Load l3d_users_sshd_service variable - 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 - name: Install openssh server
ansible.builtin.include_tasks: ansible.builtin.include_tasks: