Skip to content

Commit

Permalink
fix: Capitalise handler to conform with linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwillsher committed Jun 2, 2024
1 parent 3880aa4 commit 91b57fc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- ansible_connection != 'chroot'
- ansible_facts['os_family'] != 'AIX'
- ansible_facts['os_family'] != 'OpenWrt'
listen: reload_sshd
listen: Reload_sshd

# sshd on AIX cannot be 'reloaded', it must be Stopped+Started.
# It's dangerous to do this in two tasks.. you're stopping SSH and then trying to SSH back in to start it.
Expand All @@ -25,7 +25,7 @@
stopsrc -s sshd
until $(lssrc -s sshd | grep -q inoperative); do sleep 1; done
startsrc -s sshd
listen: reload_sshd
listen: Reload_sshd
changed_when: false
when:
- sshd_allow_reload|bool
Expand All @@ -39,4 +39,4 @@
when:
- sshd_allow_reload|bool
- ansible_facts['os_family'] == 'OpenWrt'
listen: reload_sshd
listen: Reload_sshd
2 changes: 1 addition & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
when:
- sshd_sysconfig | bool
- __sshd_sysconfig_supports_use_strong_rng or __sshd_sysconfig_supports_crypto_policy
notify: reload_sshd
notify: Reload_sshd

- name: Check FIPS mode
ansible.builtin.include_tasks: check_fips.yml
Expand Down
4 changes: 2 additions & 2 deletions tasks/install_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{{ sshd_binary }} -t -f %s
{% endif %}
backup: "{{ sshd_backup }}"
notify: reload_sshd
notify: Reload_sshd

- name: Make sure the include path is present in the main sshd_config
ansible.builtin.lineinfile:
Expand All @@ -43,7 +43,7 @@
{{ sshd_binary }} -t -f %s
{% endif %}
backup: "{{ sshd_backup }}"
notify: reload_sshd
notify: Reload_sshd
when:
- sshd_main_config_file is not none
- sshd_config_file | dirname == sshd_main_config_file ~ '.d'
2 changes: 1 addition & 1 deletion tasks/install_namespace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
{{ sshd_binary }} -t -f %s
{% endif %}
backup: "{{ sshd_backup }}"
notify: reload_sshd
notify: Reload_sshd
6 changes: 3 additions & 3 deletions tasks/install_service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
owner: root
group: root
mode: "0644"
notify: reload_sshd
notify: Reload_sshd

- name: Install instanced service unit file
ansible.builtin.template:
Expand All @@ -21,7 +21,7 @@
owner: root
group: root
mode: "0644"
notify: reload_sshd
notify: Reload_sshd
when:
- __sshd_socket_accept | bool

Expand All @@ -32,7 +32,7 @@
owner: root
group: root
mode: "0644"
notify: reload_sshd
notify: Reload_sshd

- name: Service enabled and running
ansible.builtin.service:
Expand Down

0 comments on commit 91b57fc

Please sign in to comment.