Skip to content

Instantly share code, notes, and snippets.

@halberom
halberom / output
Last active July 25, 2022 12:50
ansible - example of passing registered var containing json to custom module
PLAY [foo] ********************************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [raw stat /tmp/foo] *****************************************************
ok: [localhost -> 127.0.0.1]
TASK: [test_lib ] *************************************************************
ok: [localhost]
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();