Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change SSHD restart #30

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions roles/sshd/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
3 changes: 2 additions & 1 deletion roles/sshd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down