From 1d61d758d1e02e183a2ff5f59eaaa5d80036dc77 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 11 May 2017 17:29:45 +0000 Subject: [PATCH] fix hosts file --- playbooks/groups/os-cluster.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playbooks/groups/os-cluster.yml b/playbooks/groups/os-cluster.yml index cccf9c71f4..55e9efc32b 100644 --- a/playbooks/groups/os-cluster.yml +++ b/playbooks/groups/os-cluster.yml @@ -48,6 +48,13 @@ - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml tasks: + - name: fix hosts file + copy: + src: "{{roles_path}}/hosts/files/os-hosts" + dest: "/etc/hosts" + owner: root + mode: 0644 + - name: deploy private key to control hosts copy: src: "{{private}}/files/os/{{env}}/control_key"