From 95223c4b92b9c45bda2b00989bc51461d8073c5d Mon Sep 17 00:00:00 2001 From: Scott Dodson Date: Mon, 11 Jan 2016 16:28:53 -0500 Subject: Switch to using hostnamectl as it works on atomic and rhel7 --- roles/openshift_common/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roles/openshift_common/tasks') diff --git a/roles/openshift_common/tasks/main.yml b/roles/openshift_common/tasks/main.yml index 0ee873a2b..3a2ccb59a 100644 --- a/roles/openshift_common/tasks/main.yml +++ b/roles/openshift_common/tasks/main.yml @@ -38,5 +38,6 @@ set_hostname_default: "{{ not openshift.common.version_greater_than_3_1_or_1_1 }}" - name: Set hostname - hostname: name={{ openshift.common.hostname }} + command: > + hostnamectl set-hostname {{ openshift.common.hostname }} when: openshift_set_hostname | default(set_hostname_default) | bool -- cgit v1.2.3