diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-01-11 16:28:53 -0500 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2016-01-11 16:43:21 -0500 |
commit | 95223c4b92b9c45bda2b00989bc51461d8073c5d (patch) | |
tree | b251ca31e29e2d21ce5c39e13748bba8a9fb79b5 /roles/openshift_common/tasks | |
parent | e5fd55cf81776adeef252b9de31b7dd5203624b6 (diff) | |
download | openshift-95223c4b92b9c45bda2b00989bc51461d8073c5d.tar.gz openshift-95223c4b92b9c45bda2b00989bc51461d8073c5d.tar.bz2 openshift-95223c4b92b9c45bda2b00989bc51461d8073c5d.tar.xz openshift-95223c4b92b9c45bda2b00989bc51461d8073c5d.zip |
Switch to using hostnamectl as it works on atomic and rhel7
Diffstat (limited to 'roles/openshift_common/tasks')
-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 |