I want this module to run locally on a host i delegate_to
- name: Add Host to dhcp config
local_action:
module: lineinfile
dest: /etc/dhcp/dhcpd.conf
line: "host {{ inventory_hostname}} {hardware ethernet {{
macaddress }};fixed-address {{ inventory_hostname}}; }"
notify: restart dhcpd
delegate_to: anarbitraryhost
Doesn't seem to work - are local_action and delegate_to mutually exclusive?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/b3aba49c-dbb2-40ae-b45a-89237105c8ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.