alpine: set hostname
And configure /etc/hosts accordingly.
This commit is contained in:
parent
fe6c35edf1
commit
398e41732e
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,12 @@
|
|||
- name: Set hostname
|
||||
hostname:
|
||||
name: '{{ dns_name }}'
|
||||
|
||||
- name: Configure hosts
|
||||
template:
|
||||
dest: /etc/hosts
|
||||
src: hosts.j2
|
||||
|
||||
- name: Enable community package repo
|
||||
lineinfile:
|
||||
path: /etc/apk/repositories
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue