diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-01-12 10:38:14 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-01-12 10:38:14 -0500 |
commit | f648f7111efdb16059996667730c7c9b423d75d7 (patch) | |
tree | 0a6a63bfbe8ebd0013eb85299259bb268f8176ea /roles | |
parent | 52a4f52d023c1fd670b761974e7a5f0ef35a0eaf (diff) | |
parent | 95223c4b92b9c45bda2b00989bc51461d8073c5d (diff) | |
download | openshift-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
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_common/tasks/main.yml | 3 |
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 |