c6b22d7e13
The original version of this was wishful thinking: "is file" only works locally, but this needs to run on the remote node. Change-Id: Ib683809fdf580f41d213308331925c4765bb09d9
12 lines
233 B
YAML
12 lines
233 B
YAML
- name: Register dhclient config file
|
|
stat:
|
|
path: "{{ item }}"
|
|
register: _dhclient
|
|
|
|
- name: Write dhclient config file
|
|
when: _dhclient.stat.exists | bool
|
|
copy:
|
|
src: dhclient.conf
|
|
dest: "{{ item }}"
|
|
mode: 0444
|