[ansible-devel] wait_for -> check for no moving logs, and skip string "Consul Health Check"

2019-08-29 Thread Denny Fuchs
hi, at the moment we use something like: - name: wait for possible traffic shell: "tail -n 5 /var/log/nginx/ssl-*access*log" register: watch_nginx_log retries: 30 delay: 5 until: "watch_nginx_log.stdout_lines | reject('search','nginx_status') | list

[ansible-devel] Execute module only, if package is installed

2019-06-18 Thread Denny Fuchs
hi, I'm pretty new to Ansible (2.8 on Debian Stretch) and we have very simple playbook for upgrading packages, including run rkhunter / puppet / reboot etc. My problem is, that I do not have puppet an all nodes installed, so I tried: --- #vim:ts=2:sts=2:sw=2:et - hosts: all serial: 1