admin / Synapse-Cortex
publicSelf Hosted ITSM Tool with RBAC/Tenanting and MFA
Synapse-Cortex / Synapse-Cortexv2 / playbooks / fix-clock-drift-re-sync-time-linux.json
1963 B · main
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | { "name": "Fix Clock Drift / Re-sync Time (Linux)", "enabled": true, "allowed_target_os": [ "linux" ], "required_approval_level": "human_in_the_loop", "forbidden_commands": [], "graph_json": { "nodes": [ { "id": "start", "type": "start", "data": {}, "position": { "x": 250, "y": 0 } }, { "id": "cmd_status", "type": "command", "data": { "label": "Show time sync status", "command": "timedatectl status" }, "position": { "x": 250, "y": 130 } }, { "id": "cmd_ntp", "type": "command", "data": { "label": "Enable NTP sync", "command": "timedatectl set-ntp true" }, "position": { "x": 250, "y": 260 } }, { "id": "cmd_restart", "type": "command", "data": { "label": "Restart the time sync service", "command": "systemctl restart chrony || systemctl restart systemd-timesyncd" }, "position": { "x": 250, "y": 390 } }, { "id": "cmd_confirm", "type": "command", "data": { "label": "Confirm synchronized", "command": "timedatectl status" }, "position": { "x": 250, "y": 520 } } ], "edges": [ { "id": "e_start_cmd_status", "source": "start", "target": "cmd_status" }, { "id": "e_cmd_status_cmd_ntp", "source": "cmd_status", "target": "cmd_ntp" }, { "id": "e_cmd_ntp_cmd_restart", "source": "cmd_ntp", "target": "cmd_restart" }, { "id": "e_cmd_restart_cmd_confirm", "source": "cmd_restart", "target": "cmd_confirm" } ] } } |