Ah-ha Found it: I had to modify the script, and turn the z4=`ansible
... 2>&1 | ...` into:
/usr/local/bin/ansible mainmachine -m shell -a "psql " | grep '^ [0-9]'
> /tmp/z4a
z4=`cat /tmp/z4a`
So, much to my surprise and dismay, the application of 2>&1 to ansible
inside backticks is hi
See below for inline answers:
On Thursday, August 31, 2023 at 1:47:47 PM UTC-6 Will McDonald wrote:
OK, that's some useful extra info. I've just had a very quick basic play (I
haven't touched cron in earnest for a long time).
Have you tried echo-ing $z4 and appended to a tmp file to see if the
OK, that's some useful extra info. I've just had a very quick basic play (I
haven't touched cron in earnest for a long time).
Have you tried echo-ing $z4 and appended to a tmp file to see if there's
anything in it at run time?
I've tried a few variations in a standard user's crontab:
root@DESKTO
Maybe my question wasn't clear. I have a project level */custom test/*
that lives in ./test_plugins/tablinx.py relative to the root of our
project. The test itself is called mw_tab_sch_distinct, and it returns
True if two compared dicts describe functionally different "schedules"
(as per Tablea
See below.
On Thursday, August 31, 2023 at 8:59:57 AM UTC-6 Will McDonald wrote:
This isn't really an Ansible problem per se unless it's *only* ansible in a
subshell that doesn't run from cron? Have you tested basic cron
functionality using something simple like this (or something even more
ba
This isn't really an Ansible problem per se unless it's *only* ansible in a
subshell that doesn't run from cron? Have you tested basic cron
functionality using something simple like this (or something even more
basic):
#!/bin/sh
z4=`date +%Y%m%d%H%M`
touch /tmp/${z4}
And then check to see if that
Disregard, deleted all roles and re-downloaded them.
On Wednesday, August 30, 2023 at 4:27:22 PM UTC-5 Andrew Meyer wrote:
> The other day I suffered a power outage and got everything back online but
> now when I run ansible-galaxy it errors out no matter what I do. Has anyone
> else run into t
As the subject line says, I can't get this script to run correctly from
cron.
My cron entry (in a file in /etc/cron.d):
==
# Run the 30-minly job
SHELL=/bin/bash
PATH=/sbin:/bin/:/usr/sbin:/usr/bin:/root
MAILTO=ROOT
*/30 * * * * root /root/getlist