mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
14 lines
350 B
YAML
14 lines
350 B
YAML
- name: Diag dee-pc config
|
|||
|
|
hosts: dee-pc
|
||
|
|
gather_facts: no
|
||
|
|
tasks:
|
||
|
|
- name: Read first lines of telegraf.conf
|
||
|
|
win_shell: |
|
||
|
|
Get-Content -Path "C:\Program Files\Telegraf\telegraf.conf" -TotalCount 10
|
||
|
|
args:
|
||
|
|
executable: powershell
|
||
|
|
register: head
|
||
|
|
|
||
|
|
- name: Show head
|
||
|
|
debug:
|
||
|
|
var: head.stdout_lines
|