Hi,
I'm trying to run two commands in a single line, which will validate the
syntax of apache configuration copied from template file and send a signal
to reload the apache if it's passed.
Right now, my configuration looks like as below where I only sending the
signal to apache to reload after coping the config from template file and
it's working fine.
*command: '-consul={{ ansible_host }}:2250
-template="vhosts.ctmpl:vhosts.conf:/bin/docker/docker kill -s USR1
apache"'*
But I'm trying to add configtest with this command like,
command: '-consul={{ ansible_host }}:2250
-template="vhosts.ctmpl:vhosts.conf:/bin/docker/docker exec apache
/usr/local/apache2/bin/apachectl configtest && */bin/docker/docker kill -s
USR1 apache*"'
But, the last reload of the apache command is failing as I can't send the
signal to reload own process(apache) inside of staying in the container.
Can anyone please guide, you help is truly appreciated. Thanks in advance.
Best Regards
Himanshu Maity
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/7865c8c1-dd07-4341-860e-9a215257300e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.