Insert hosts entries to the beginning of the file.

This ensures that the first host entry found for a host
will use what is generated by TripleO (if applicable).

Change-Id: I3a4883bc0c8dfa480ce5fd10ec40f3a9f0cff217
Closes-Bug: #1861035
Signed-off-by: Luke Short <ekultails@gmail.com>
changes/52/706552/1
Luke Short 3 years ago
parent ea641a6731
commit 76fd2eaacc
  1. 2
      tripleo_ansible/roles/tripleo_hosts_entries/tasks/main.yml

@ -59,6 +59,8 @@
blockinfile:
create: true
path: "{{ tripleo_hosts_entries_hosts_path }}"
# BOF denotes the beginning of the file.
insertbefore: BOF
block: "{{ tripleo_hosts_entries_block }}"
tags:
- tripleo_hosts_entries

Loading…
Cancel
Save