Initial commit
This commit is contained in:
15
roles/Configure_Hostname/tasks/main.yml
Executable file
15
roles/Configure_Hostname/tasks/main.yml
Executable file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
# tasks file for Configure_Hostname
|
||||
- name: Configure Hostname
|
||||
shell: hostnamectl set-hostname "{{hostname_suffix}}"."{{suffix}}"
|
||||
- name: Insert Hosts
|
||||
blockinfile:
|
||||
path: /etc/hosts
|
||||
block: |
|
||||
172.17.22.174 gsmc5.gsmc.com
|
||||
- name: Insert resolv
|
||||
replace:
|
||||
path: /etc/resolv.conf
|
||||
regexp: '^gmv.es'
|
||||
replace: 'gsmc.com'
|
||||
|
||||
Reference in New Issue
Block a user