From 02bdf5516a7c7eaa29a20034ceb84aa6b6c49bc3 Mon Sep 17 00:00:00 2001 From: Rob Stringer <41843577+Mycobee@users.noreply.github.com> Date: Sun, 27 Nov 2022 08:05:32 -0700 Subject: [PATCH] Add host to hostfile --- automated_builder/roles/common/tasks/bootstrap_vps.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/automated_builder/roles/common/tasks/bootstrap_vps.yml b/automated_builder/roles/common/tasks/bootstrap_vps.yml index 7fe0011d0..3f5fb25b3 100644 --- a/automated_builder/roles/common/tasks/bootstrap_vps.yml +++ b/automated_builder/roles/common/tasks/bootstrap_vps.yml @@ -33,3 +33,12 @@ user: ansible commands: ALL nopassword: true + + - name: Add host to hosts file + lineinfile: + path: /etc/hosts + search_string: '127.0.0.1' + line: '127.0.0.1 localhost host' + owner: root + group: root + mode: '0644'