fix: windows 收集账号 收集失败 (#12583)

Co-authored-by: feng <1304903146@qq.com>
pull/12585/head
fit2bot 2024-01-23 11:07:56 +08:00 committed by GitHub
parent 0c74e92bfb
commit 503034299e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1,9 +1,10 @@
- hosts: demo
gather_facts: no
tasks:
- name: Gather posix account
- name: Gather windows account
ansible.builtin.win_shell: net user
register: result
ignore_errors: true
- name: Define info by set_fact
ansible.builtin.set_fact: