diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6f4c87d..783a9c0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,5 @@ --- repos: -# - repo: https://github.com/dj-wasabi/pre-commit-hooks -# rev: master -# hooks: -# - id: ansible-lint - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.2.0 hooks: diff --git a/tasks/FreeBSD.yml b/tasks/FreeBSD.yml index 44d84b4..34172de 100644 --- a/tasks/FreeBSD.yml +++ b/tasks/FreeBSD.yml @@ -14,11 +14,11 @@ notify: "Restart Telegraf" - name: "FreeBSD | add telegraf_flags for extra plugins" - shell: sysrc telegraf_flags="-quiet -config-directory=/usr/local/etc/telegraf.d" + command: sysrc telegraf_flags="-quiet -config-directory=/usr/local/etc/telegraf.d" tags: - skip_ansible_lint - name: "FreeBSD | add telegraf to init" - shell: sysrc telegraf_enable="YES" + command: sysrc telegraf_enable="YES" tags: - skip_ansible_lint diff --git a/tasks/configure_linux.yml b/tasks/configure_linux.yml index 9c81c00..4d956f2 100644 --- a/tasks/configure_linux.yml +++ b/tasks/configure_linux.yml @@ -150,7 +150,7 @@ name: smartmontools - name: Find path of smartctl - shell: which smartctl + command: which smartctl register: which_smartctl ignore_errors: true changed_when: false diff --git a/tasks/configure_macos.yml b/tasks/configure_macos.yml index 45909b0..33b3a6b 100644 --- a/tasks/configure_macos.yml +++ b/tasks/configure_macos.yml @@ -122,7 +122,7 @@ meta: flush_handlers - name: "Start Telegraf (If it wasn't running)" - shell: brew services start telegraf + command: brew services start telegraf register: brew_services_start_telegraf changed_when: '"Successfully started `telegraf`" in brew_services_start_telegraf.stdout' when: not telegraf_agent_docker