How can I filter with ansible slave_io_running/slave_sql_running and get the yes or no value please ?
stdout_lines:
- ' Slave_IO_Running: Yes'
- ' Slave_SQL_Running: No'
- ' Replicate_Do_DB: '
- ' Replicate_Ignore_DB: '
- ' Replicate_Do_Table: '
- ' Replicate_Ignore_Table: '
- ' Replicate_Wild_Do_Table: '
- ' Replicate_Wild_Ignore_Table: '
- ' Last_Errno: 0'
- ' Last_Error: '
- ' Skip_Counter: 0'
- ' Exec_Master_Log_Pos: 2595'
- ' Relay_Log_Space: 1306'
- ' Until_Condition: None'
I've tried this, but it doesn't work
when: yum_sec_upd.stdout_lines | select('search', 'Slave_IO_Running:') | list | length > 0