alertlogic / al-agents-ansible-playbooks

Ansible Playbooks to install and provision the Alert Logic Unified Agent
Apache License 2.0
8 stars 14 forks source link

download deb packages from the web timeout #22

Closed sparkacus closed 5 years ago

sparkacus commented 5 years ago

Ran into an issue today where the playbook failed when downloading the AL deb package:

Task - /tasks/deb-packages.yml Step = "download deb packages from the web"

The problem was due to the package not downloading before the get_url module default timeout was reached, which at this moment in time is 10 seconds.

To resolve this I increased the timeout:

- name: download deb packages from the web
  tags: deb-packages
  get_url: url={{ item.item.url }} dest=/tmp/{{ item.item.name }}.deb force=no timeout=300
  with_items: "{{ deb_packages_status.results }}"
  when: item.stdout|int == 1 

This may not be a problem for others, but I thought I'd raise an issue just incase.