Update the hostname if update_hostname: yes

This commit is contained in:
Jan Beilicke 2020-04-01 21:30:47 +02:00
parent 66acbf2930
commit 3c2f642820
3 changed files with 9 additions and 0 deletions

View file

@ -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