Merge "Cleanup node deployment task playbook"

This commit is contained in:
Jenkins 2016-01-22 16:09:45 +00:00 committed by Gerrit Code Review
commit 7bac80242c
1 changed files with 13 additions and 3 deletions

View File

@ -23,12 +23,22 @@
auth: None
when: noauth_mode | bool == true
- name: "Setup DHCP for nodes."
template: src=dhcp-host.j2 dest=/etc/dnsmasq.d/bifrost.dhcp-hosts.d/{{ inventory_hostname }} owner=root group=root mode=0644
template:
src: dhcp-host.j2
dest: "/etc/dnsmasq.d/bifrost.dhcp-hosts.d/{{ inventory_hostname }}"
owner: root
group: root
mode: 0644
delegate_to: localhost
when: inventory_dhcp | bool
become: yes
- name: "Setup DNS address for nodes."
template: src=dns-address.j2 dest=/etc/dnsmasq.d/host_record_{{ inventory_hostname }} owner=root group=root mode=0644
template:
src: dns-address.j2
dest: "/etc/dnsmasq.d/host_record_{{ inventory_hostname }}"
owner: root
group: root
mode: 0644
delegate_to: localhost
when: inventory_dns | bool
become: yes
@ -37,7 +47,7 @@
# Ansible's reloaded state does not pass through to the init script.
command: killall -HUP dnsmasq
become: yes
when: (inventory_dhcp | bool) or (inventory_dns | bool)
when: (inventory_dhcp | bool == true) or (inventory_dns | bool == true)
- name: "Deploy to hardware - Using custom instance_info."
os_ironic_node:
auth_type: "{{ auth_type | default(omit) }}"