jumpserver/apps/accounts/automations/gather_accounts/host/windows/main.yml

14 lines
295 B
YAML
Raw Normal View History

2022-10-28 10:28:41 +00:00
- hosts: demo
gather_facts: no
2022-10-27 10:53:10 +00:00
tasks:
2022-10-28 10:28:41 +00:00
- name: Gather posix account
ansible.builtin.win_shell:
cmd: net user
register: result
- name: Define info by set_fact
ansible.builtin.set_fact:
info: "{{ result.stdout_lines }}"
2022-10-27 10:53:10 +00:00
- debug:
2022-10-28 10:28:41 +00:00
var: info