base: Make sure OpenBSD hostname is updated
This commit is contained in:
parent
df5ecb1a04
commit
14c421a81c
2 changed files with 7 additions and 0 deletions
6
roles/base/handlers/main.yml
Normal file
6
roles/base/handlers/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
- name: Update hostname
|
||||||
|
ansible.builtin.command:
|
||||||
|
argv:
|
||||||
|
- hostname
|
||||||
|
- "{{ inventory_hostname }}"
|
|
@ -6,6 +6,7 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
|
notify: Update hostname
|
||||||
|
|
||||||
- name: Configure mirror for packages and updates
|
- name: Configure mirror for packages and updates
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue