From 91b57fc91e1434945e89d57a48b896590b1ef738 Mon Sep 17 00:00:00 2001 From: Matt Willsher Date: Sun, 2 Jun 2024 08:44:34 +0100 Subject: [PATCH] fix: Capitalise handler to conform with linting --- handlers/main.yml | 6 +++--- tasks/install.yml | 2 +- tasks/install_config.yml | 4 ++-- tasks/install_namespace.yml | 2 +- tasks/install_service.yml | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 183b4e25..1af2b975 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -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. @@ -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 @@ -39,4 +39,4 @@ when: - sshd_allow_reload|bool - ansible_facts['os_family'] == 'OpenWrt' - listen: reload_sshd + listen: Reload_sshd diff --git a/tasks/install.yml b/tasks/install.yml index 211cbf36..9e6c409c 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -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 diff --git a/tasks/install_config.yml b/tasks/install_config.yml index 85ac40f5..1c4efb12 100644 --- a/tasks/install_config.yml +++ b/tasks/install_config.yml @@ -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: @@ -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' diff --git a/tasks/install_namespace.yml b/tasks/install_namespace.yml index 525cf6ee..1e7e1b64 100644 --- a/tasks/install_namespace.yml +++ b/tasks/install_namespace.yml @@ -21,4 +21,4 @@ {{ sshd_binary }} -t -f %s {% endif %} backup: "{{ sshd_backup }}" - notify: reload_sshd + notify: Reload_sshd diff --git a/tasks/install_service.yml b/tasks/install_service.yml index aee2514f..b843449f 100644 --- a/tasks/install_service.yml +++ b/tasks/install_service.yml @@ -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: @@ -21,7 +21,7 @@ owner: root group: root mode: "0644" - notify: reload_sshd + notify: Reload_sshd when: - __sshd_socket_accept | bool @@ -32,7 +32,7 @@ owner: root group: root mode: "0644" - notify: reload_sshd + notify: Reload_sshd - name: Service enabled and running ansible.builtin.service: