Merge "Make sure /etc/hostname is valid for SELinux"

This commit is contained in:
Jenkins 2016-04-11 16:14:57 +00:00 committed by Gerrit Code Review
commit 8a9d365dd9

View File

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