1
0
Fork 0

Initial commit

This commit is contained in:
Andrew Tomaka 2022-12-21 22:56:39 -05:00
commit d6bd3862eb
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
19 changed files with 357 additions and 0 deletions

View 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