Saturday, June 5, 2021

Use of register and debug in Ansible

Use of register and debug in Ansible

---
- hosts: win
  tasks:
  - name: System date
    win_command: ipconfig
    register: ipconfig
  - debug: var=ipconfig.stdout_lines

No comments: