Update the hostname if update_hostname: yes
This commit is contained in:
parent
66acbf2930
commit
3c2f642820
3 changed files with 9 additions and 0 deletions
|
|
@ -1,5 +1,10 @@
|
|||
---
|
||||
# tasks file for common
|
||||
- name: Update hostname
|
||||
become: true
|
||||
hostname:
|
||||
name: '{{ hostname }}'
|
||||
when: hostname and update_hostname == True
|
||||
|
||||
- name: Firewall
|
||||
become: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue