Initial commit
This commit is contained in:
commit
d6bd3862eb
19 changed files with 357 additions and 0 deletions
17
roles/instance/tasks/main.yml
Normal file
17
roles/instance/tasks/main.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- name: Set hostname
|
||||
hostname:
|
||||
name: '{{ inventory_hostname | replace("_", "-") }}'
|
||||
|
||||
- name: Add hostname to /etc/hosts
|
||||
lineinfile:
|
||||
dest: /etc/hosts
|
||||
regexp: '^127\.0\.0\.1[ \t]+localhost'
|
||||
line: '127.0.0.1 localhost {{ inventory_hostname | replace("_", "-") }}'
|
||||
state: present
|
||||
|
||||
- name: Install ansible pre-requisites
|
||||
apt:
|
||||
name:
|
||||
- acl
|
||||
state: present
|
Loading…
Add table
Add a link
Reference in a new issue