mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-25 20:40:18 +01:00
Linting fixes
This commit is contained in:
parent
ac6dcd0cfc
commit
abe2b26a89
2 changed files with 4 additions and 5 deletions
|
@ -70,7 +70,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
block:
|
block:
|
||||||
- name: Make sure hostkeys are available
|
- name: Make sure hostkeys are available
|
||||||
# noqa var-spacing
|
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
set -eu
|
set -eu
|
||||||
if set -o | grep pipefail 2>&1 /dev/null ; then
|
if set -o | grep pipefail 2>&1 /dev/null ; then
|
||||||
|
@ -130,7 +129,7 @@
|
||||||
when: sshd_config_namespace is not none
|
when: sshd_config_namespace is not none
|
||||||
|
|
||||||
rescue:
|
rescue:
|
||||||
- name: re-raise the error
|
- name: Re-raise the error
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
msg: "{{ ansible_failed_result }}"
|
msg: "{{ ansible_failed_result }}"
|
||||||
always:
|
always:
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
# Due to ansible bug 21026, cannot use service module on RHEL 7
|
# Due to ansible bug 21026, cannot use service module on RHEL 7
|
||||||
- name: Enable service in chroot
|
- name: Enable service in chroot
|
||||||
ansible.builtin.command: systemctl enable {{ sshd_service }} # noqa 303
|
ansible.builtin.command: systemctl enable {{ sshd_service }} # noqa command-instead-of-module
|
||||||
when:
|
when:
|
||||||
- ansible_connection == 'chroot'
|
- ansible_connection == 'chroot'
|
||||||
- ansible_os_family == 'RedHat'
|
- ansible_os_family == 'RedHat'
|
||||||
|
|
Loading…
Reference in a new issue