Commit 314c68d2 by John Jarvis

adding hostname change in edxlocal

parent 13d7fd75
......@@ -4,5 +4,6 @@
gather_facts: True
roles:
- common
- edxlocal
- supervisor
- edxapp
---
edxlocal_hostname: edx-server
edxlocal_debian_pkgs:
- python-mysqldb
- mysql-server-5.5
- postfix
- postfix
- python-pycurl
......@@ -40,3 +40,17 @@
- name: edxlocal | install memcached
apt: pkg=memcached state=present
- name: edxlocal | set the hostname to edx-server (single instance only)
template: src=hosts.j2 dest=/etc/hosts
register: etc_hosts
- name: edxlocal | set the hostname to edx-server (single instance only)
template: src=hostname.j2 dest=/etc/hostname
register: etc_hostname
- name: edxlocal | update hostname
shell: >
hostname -F /etc/hostname
when: etc_hosts.changed or etc_hostname.changed
127.0.0.1 {{ edxlocal_hostname }} localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment