Skip to content
Snippets Groups Projects
  • Kenichi Omichi's avatar
    503ab0f7
    Run 0100-dhclient-hooks if dhcpclient is enabled (#8658) · 503ab0f7
    Kenichi Omichi authored
    If running Kubespray on static IP environments, a task was failed like:
    
      TASK [kubernetes/preinstall : Configure dhclient hooks for resolv.conf (RH-only)]
      fatal: [ak8s2]: FAILED! => {
        "changed": false, "checksum": "..",
        "msg": "Destination directory /etc/dhcp/dhclient.d does not exist"}
    
    This adds a check for dhclientconffile for running 0100-dhclient-hooks to
    run the task only if dhcpclient is enabled.
    Run 0100-dhclient-hooks if dhcpclient is enabled (#8658)
    Kenichi Omichi authored
    If running Kubespray on static IP environments, a task was failed like:
    
      TASK [kubernetes/preinstall : Configure dhclient hooks for resolv.conf (RH-only)]
      fatal: [ak8s2]: FAILED! => {
        "changed": false, "checksum": "..",
        "msg": "Destination directory /etc/dhcp/dhclient.d does not exist"}
    
    This adds a check for dhclientconffile for running 0100-dhclient-hooks to
    run the task only if dhcpclient is enabled.
roles NaN GiB