idempotency of nginx_install_from: source
: current validations lack server reboot and ignore installed version
#646
Labels
bug
Something isn't working
Describe the bug
After an installation with
nginx_install_from: source
the latest available version is installed successfully.Problems:
a). Repeating the ansible run results in a skipped installation process, even if a differnt version that the latest would exist in
/usr/sbin/nginx
.b). Rebooting the server leads to empty
/tmp
dir, which leads to a complete new compilation and installation on the next ansible-run, even if the/usr/sbin/nginx
version is already the target version.To reproduce
a) Steps to reproduce the behavior:
nginx_install_from: source
/usr/sbin/nginx -v
/tmp
content)result: the version was not updated, even that there is a newer existing. Update: maybe this is only a problem if nginx was previously installed via the ansible role in the latest version, the directories below
/tmp
are still existing, but in the meantime the/usr/sbin/nginx
was replaced by a older version, e.g. if some other package installesnginx
as an dependency.b) Steps to reproduce the behavior:
nginx_install_from: source
Make .. (dependency)
andInstall ...
tasks are skippedresult: the
Make .. (dependency)
andInstall ...
tasks are not skipped any more, even that the target version already exists in/usr/sbin/nginx
log of problem b)
log output_b.log
Expected behavior
The current installed version at
/usr/sbin/nginx
should be taken into account. If the installed version is the target version, all upcoming tasks can be skipped. Also a reboot of the server should not change the behaviour of the ansible tasks.Your environment
2.15.2
Ubuntu 20.04
The text was updated successfully, but these errors were encountered: