Skip to content

Commit

Permalink
Cleaning up code
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuffman committed Oct 16, 2017
1 parent 4eac271 commit 797ea84
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
---
#Set hostname
- name: Ensure hostname is set to {{ hosts_hostname.hostname }}
hostname: name={{ hosts_hostname.hostname }}
hostname:
name: "{{ hosts_hostname.hostname }}"

#Configure /etc/hosts for fqdn and additional host entries
- name: Configure /etc/hosts
template: src=hosts.j2 dest=/etc/hosts backup=yes owner=root group=root mode=644
template:
src: hosts.j2
dest: /etc/hosts
backup: yes
owner: root
group: root
mode: 644
become: yes

0 comments on commit 797ea84

Please sign in to comment.