summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2016-01-12 10:38:14 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2016-01-12 10:38:14 -0500
commitf648f7111efdb16059996667730c7c9b423d75d7 (patch)
tree0a6a63bfbe8ebd0013eb85299259bb268f8176ea
parent52a4f52d023c1fd670b761974e7a5f0ef35a0eaf (diff)
parent95223c4b92b9c45bda2b00989bc51461d8073c5d (diff)
downloadopenshift-f648f7111efdb16059996667730c7c9b423d75d7.tar.gz
openshift-f648f7111efdb16059996667730c7c9b423d75d7.tar.bz2
openshift-f648f7111efdb16059996667730c7c9b423d75d7.tar.xz
openshift-f648f7111efdb16059996667730c7c9b423d75d7.zip
Merge pull request #1165 from sdodson/bz1280171
use hostnamectl to set the hostname
-rw-r--r--roles/openshift_common/tasks/main.yml3
1 files changed, 2 insertions, 1 deletions
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