blob: 63758d894ce9b758512280f5f7313792ca9c23b5 [file]
- hosts: all
user: chrome-bot
gather_facts: true
tasks:
- name: Windows
when: ansible_facts['system']|lower == 'win32nt'
block:
- name: Print out hostname
win_command: hostname
- name: Print out current user (chrome-bot)
win_command: whoami
- name: POSIX
when: ansible_facts['system']|lower != 'win32nt'
block:
- name: Print out hostname
command: hostname
- name: Print out current user (chrome-bot)
command: whoami