Merge "Refresh cache for ansible time to calculate time for killing dhclient"

This commit is contained in:
Jenkins 2017-02-13 09:55:51 +00:00 committed by Gerrit Code Review
commit 946a4452a3
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@
set_fact:
needs_network_reset: "{{ oldest_dhclient_time.stdout != '' and oldest_dhclient_time.stdout|int < dhclient_stat.stat.mtime }}"
- name: update ansible time
setup: filter=ansible_date_time
- name: Calculate number of seconds since dhclient.conf was modified
set_fact:
mtime_dhclientconf: "{{ ansible_date_time.epoch|int - dhclient_stat.stat.mtime|int }}"