Как сохранить ansible stdout.lines в файл есть в списке format

Программа xevвыведет ожидаемые коды клавиш. Для вашего примера 1:

KeyPress event, serial 37, synthetic NO, window 0x600001,
    root 0xd4, subw 0x0, time 6931965, (284,-10), root:(285,560),
    state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES,
    XLookupString gives 1 bytes: (31) "1"
    XmbLookupString gives 1 bytes: (31) "1"
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x600001,
    root 0xd4, subw 0x0, time 6932164, (284,-10), root:(285,560),
    state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES,
    XLookupString gives 1 bytes: (31) "1"
    XFilterEvent returns: False
1
16.11.2018, 02:39
1 ответ
        content:  "{{  all_hosts_list.stdout_lines|join('\n')  }}"
1
14.04.2020, 21:59

Теги

Похожие вопросы