Initial commit
This commit is contained in:
commit
11b84aa872
40 changed files with 995 additions and 0 deletions
10
tasks/hostname.yml
Normal file
10
tasks/hostname.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
- name: "Hostname | Set hostname"
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ inventory_hostname }}"
|
||||
use: systemd
|
||||
|
||||
- name: "Hostname | Set hostname in /etc/hosts"
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/hosts
|
||||
line: '127.0.0.1 {{ ansible_hostname }}'
|
Loading…
Add table
Add a link
Reference in a new issue