Skip to content

Instantly share code, notes, and snippets.

@bigfleet
Created February 5, 2019 18:56
Show Gist options
  • Save bigfleet/04e92b22eaad562434d174ebbecb7054 to your computer and use it in GitHub Desktop.
Save bigfleet/04e92b22eaad562434d174ebbecb7054 to your computer and use it in GitHub Desktop.
Solaris crontab
TASK [ansible-canary-role-discovery-cron-jobs : debug] *************************
ok: [default] => {
"cronFileContents": {
"changed": true,
"msg": "All items completed",
"results": [
{
"_ansible_ignore_errors": null,
"_ansible_item_label": "/var/spool/cron/crontabs/sys",
"_ansible_item_result": true,
"_ansible_no_log": false,
"_ansible_parsed": true,
"changed": true,
"cmd": [
"cat",
"/var/spool/cron/crontabs/sys"
],
"delta": "0:00:00.005247",
"end": "2019-02-05 11:19:48.101572",
"failed": false,
"invocation": {
"module_args": {
"_raw_params": "cat /var/spool/cron/crontabs/sys",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"warn": true
}
},
"item": "/var/spool/cron/crontabs/sys",
"rc": 0,
"start": "2019-02-05 11:19:48.096325",
"stderr": "",
"stderr_lines": [],
"stdout": "#ident\t\"%Z%%M%\t%I%\t%E% SMI\"\t/* SVr4.0 1.2\t*/\n#\n# The sys crontab should be used to do performance collection. See cron\n# and performance manual pages for details on startup.\n#\n# 0 * * * 0-6 /usr/lib/sa/sa1\n# 20,40 8-17 * * 1-5 /usr/lib/sa/sa1\n# 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A",
"stdout_lines": [
"#ident\t\"%Z%%M%\t%I%\t%E% SMI\"\t/* SVr4.0 1.2\t*/",
"#",
"# The sys crontab should be used to do performance collection. See cron",
"# and performance manual pages for details on startup.",
"#",
"# 0 * * * 0-6 /usr/lib/sa/sa1",
"# 20,40 8-17 * * 1-5 /usr/lib/sa/sa1",
"# 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A"
]
},
{
"_ansible_ignore_errors": null,
"_ansible_item_label": "/var/spool/cron/crontabs/root",
"_ansible_item_result": true,
"_ansible_no_log": false,
"_ansible_parsed": true,
"changed": true,
"cmd": [
"cat",
"/var/spool/cron/crontabs/root"
],
"delta": "0:00:00.004179",
"end": "2019-02-05 11:19:48.409275",
"failed": false,
"invocation": {
"module_args": {
"_raw_params": "cat /var/spool/cron/crontabs/root",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"warn": true
}
},
"item": "/var/spool/cron/crontabs/root",
"rc": 0,
"start": "2019-02-05 11:19:48.405096",
"stderr": "",
"stderr_lines": [],
"stdout": "#ident\t\"%Z%%M%\t%I%\t%E% SMI\"\n#\n# Copyright 2007 Sun Microsystems, Inc. All rights reserved.\n# Use is subject to license terms.\n#\n# The root crontab should be used to perform accounting data collection.\n#\n#\n10 3 * * * /usr/sbin/logadm\n15 3 * * 0 [ -x /usr/lib/fs/nfs/nfsfind ] && /usr/lib/fs/nfs/nfsfind\n30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean",
"stdout_lines": [
"#ident\t\"%Z%%M%\t%I%\t%E% SMI\"",
"#",
"# Copyright 2007 Sun Microsystems, Inc. All rights reserved.",
"# Use is subject to license terms.",
"#",
"# The root crontab should be used to perform accounting data collection.",
"#",
"#",
"10 3 * * * /usr/sbin/logadm",
"15 3 * * 0 [ -x /usr/lib/fs/nfs/nfsfind ] && /usr/lib/fs/nfs/nfsfind",
"30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean"
]
},
{
"_ansible_ignore_errors": null,
"_ansible_item_label": "/var/spool/cron/crontabs/adm",
"_ansible_item_result": true,
"_ansible_no_log": false,
"_ansible_parsed": true,
"changed": true,
"cmd": [
"cat",
"/var/spool/cron/crontabs/adm"
],
"delta": "0:00:00.004595",
"end": "2019-02-05 11:19:48.726722",
"failed": false,
"invocation": {
"module_args": {
"_raw_params": "cat /var/spool/cron/crontabs/adm",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"warn": true
}
},
"item": "/var/spool/cron/crontabs/adm",
"rc": 0,
"start": "2019-02-05 11:19:48.722127",
"stderr": "",
"stderr_lines": [],
"stdout": "#ident\t\"%Z%%M%\t%I%\t%E% SMI\"\t/* SVr4.0 1.2\t*/\n#\n# The adm crontab file should contain startup of performance collection if\n# the profiling and performance feature has been installed.\n#",
"stdout_lines": [
"#ident\t\"%Z%%M%\t%I%\t%E% SMI\"\t/* SVr4.0 1.2\t*/",
"#",
"# The adm crontab file should contain startup of performance collection if",
"# the profiling and performance feature has been installed.",
"#"
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment