Execution
Date
12 Sep 2024 09:25:47 +0100
Duration
00:02:58.62
Controller
ssh-gw-4.layershift.com
User
root
Versions
Ansible
2.16.11
ara
1.7.2 / 1.7.2
Python
3.10.10
Summary
138
Hosts
8
Tasks
1094
Results
1
Plays
6
Files
0
Records
Task result details
-
StatusOK
-
Duration00:00:04.07
-
PlayPlaybook to run update script
-
TaskCheck 360 service status
-
Date12 Sep 2024 09:27:04 +0100
-
Module / Actionansible.builtin.shell (/home/ssh-gateway/ansible/kuly/update_provider_metrics.yaml:19)
| Field | Value |
|---|---|
| changed |
False |
| cmd |
set -o pipefail
service_time=$(systemctl show -p ActiveEnterTimestamp agent360.service | awk -F'=' '{print $2}')
service_epoch=$(date -d "$service_time" +%s)
current_time=$(date +%s)
time_diff=$((current_time - service_epoch))
echo $time_diff
|
| delta |
0:00:00.029581 |
| end |
2024-09-12 09:27:00.684254 |
| invocation |
{ "module_args": { "_raw_params": "set -o pipefail\nservice_time=$(systemctl show -p ActiveEnterTimestamp agent360.service | awk -F'=' '{print $2}')\nservice_epoch=$(date -d \"$service_time\" +%s)\ncurrent_time=$(date +%s)\ntime_diff=$((current_time - service_epoch))\necho $time_diff\n", "_uses_shell": true, "argv": null, "chdir": null, "creates": null, "executable": "/bin/bash", "expand_argument_vars": true, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true } } |
| msg |
|
| rc |
0 |
| start |
2024-09-12 09:27:00.654673 |
| stderr |
|
| stderr_lines |
[]
|
| stdout |
12
|
| stdout_lines |
[ "12" ] |