Set hostname with nvue
This commit is contained in:
parent
bf858a82bf
commit
a7300faceb
1 changed files with 3 additions and 0 deletions
|
|
@ -8,6 +8,9 @@
|
|||
regexp: '^127.0.1.1\s+'
|
||||
line: "127.0.1.1 {{ inventory_hostname }}"
|
||||
|
||||
- name: Set hostname in nvue
|
||||
shell: "nv set system hostname {{ inventory_hostname }}"
|
||||
|
||||
- name: Tell nvue to leave configuration files alone
|
||||
shell: "nv set system config apply ignore {{ item }}"
|
||||
loop:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue