Skip to content

Commit

Permalink
Merge pull request #5340 from sdodson/bz1489913
Browse files Browse the repository at this point in the history
Revert back to hostnamectl and previous default of not setting hostname
  • Loading branch information
sdodson authored Sep 11, 2017
2 parents 7f6b765 + f255cca commit 4acdef4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions playbooks/common/openshift-cluster/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@
- name: Set hostname
hosts: oo_masters_to_config:oo_nodes_to_config
tasks:
# TODO: switch back to hostname module once we depend on ansible-2.4
# https://github.com/ansible/ansible/pull/25906
- name: Set hostname
hostname:
name: "{{ openshift.common.hostname }}"
when: openshift_set_hostname | default(True) | bool
command: "hostnamectl set-hostname {{ openshift.common.hostname }}"
when: openshift_set_hostname | default(false,true) | bool

- include: ../openshift-etcd/config.yml

Expand Down

0 comments on commit 4acdef4

Please sign in to comment.