geerlingguy/docker-ubuntu1804-ansible

iproute2 missing

fhufenreuter opened this issue · 4 comments

I would like to test my roles with your image and need ansible_default_ipv4 to be available. Right now your image is missing iproute2 could you please add this package?

Thx

@geerlingguy I have the same problem with your ubuntu 1804 and 1604 docker image

Hi,

you can overcome this with the following pre tasks in your playbook.yml:

pre_tasks:
    - name: Ensure test dependencies are installed (RedHat).
      package: name=iproute state=present
      when: ansible_os_family == 'RedHat'
    - name: Ensure test dependencies are installed (Debian).
      package: name=iproute2 state=present
      when: ansible_os_family == 'Debian'

This should be in the :latest tag soon, thanks!