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>
(cherry picked from commit 76fd2eaacc)
This commit is contained in:
Luke Short 2020-02-07 10:51:11 -05:00
parent 8a9b2d8910
commit 724da23104
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,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