Hello,
I have question whether is possible to have many tasks in one handler.
For example, there is possible using SSL passprahse during restarting apache. This automatically not allow ansible progress, because by default apache expecting pass passphrases from STDIN.
However there is simple trick which can help to automate this. In apche documentation (http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslpassphrasedialog) there is inno that passphrases can be passed from external sources (file / application).
So let say that by defualt apache (httpd.conf / ssl.conf) is configured to read passphrase from STDIN.
But ansible has handler (restart apache) and then doing following tasks:
- Modify httpd.conf to use application for passphrase
- Copy file (application) with valid passphrases
- Restart apache - so passphrases will be read from app/file
- Remove application file
- Modify httpd.conf to expecting passphrase from STDIN.
This is typical scenario which I would expect that handler doesn’t mean one task.
Best regards,
Marcin Praczko