Merge "Make sure /etc/hostname is valid for SELinux"
This commit is contained in:
commit
8a9d365dd9
@ -7,6 +7,10 @@
|
|||||||
src: /etc/hosts
|
src: /etc/hosts
|
||||||
dest: /etc/hosts
|
dest: /etc/hosts
|
||||||
|
|
||||||
|
- name: Ensure /etc/hostname is valid for SELinux
|
||||||
|
command: restorecon -v /etc/hostname
|
||||||
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
- name: Assign hostname
|
- name: Assign hostname
|
||||||
hostname:
|
hostname:
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user