Add new task for hostname #248

This commit is contained in:
kim 2024-04-17 17:16:52 +02:00
parent 58abaf0d47
commit 310253a661
2 changed files with 9 additions and 5 deletions

View file

@ -1,3 +1,8 @@
- name: set hostname
hostname:
name: "{{ inventory_hostname }}"
use: debian
- name: copy base configs - name: copy base configs
copy: copy:
src: etc/apt/apt.conf.d/20auto-upgrades src: etc/apt/apt.conf.d/20auto-upgrades
@ -17,5 +22,4 @@
- name: Ensure the DE locale exists - name: Ensure the DE locale exists
community.general.locale_gen: community.general.locale_gen:
name: de_DE.UTF-8 name: de_DE.UTF-8
state: present state: present

View file

@ -1,12 +1,12 @@
- name: base config - name: base config
import_tasks: config.yml import_tasks: config.yml
- name: custom DNS servers
import_tasks: dns.yml
- name: install packages - name: install packages
import_tasks: packages.yml import_tasks: packages.yml
- name: custom DNS servers
import_tasks: dns.yml
- name: install ctop - name: install ctop
import_tasks: ctop.yml import_tasks: ctop.yml