Commit fb4956d5 by Ben Patterson

Merge pull request #1176 from edx/benp/vagrant-specific-config

Skip chown of motd.d files for vagrant machines.
parents a1aae5cf e7f26ce0
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
- "{{ COMMON_BIN_DIR }}" - "{{ COMMON_BIN_DIR }}"
- "{{ COMMON_CFG_DIR }}" - "{{ COMMON_CFG_DIR }}"
# Determine if machine is provisioned via vagrant
# Some EC2-specific steps would need to be skipped
- name: check if instance is vagrant
stat: path=/home/vagrant
register: vagrant_home_dir
# Need to install python-pycurl to use Ansible's apt_repository module # Need to install python-pycurl to use Ansible's apt_repository module
- name: Install python-pycurl - name: Install python-pycurl
apt: pkg=python-pycurl state=present update_cache=yes apt: pkg=python-pycurl state=present update_cache=yes
...@@ -103,10 +109,12 @@ ...@@ -103,10 +109,12 @@
# Remove some of the default motd display on ubuntu # Remove some of the default motd display on ubuntu
# and add a custom motd. These do not require an # and add a custom motd. These do not require an
# ssh restart # ssh restart
# Only needed for EC2 instances.
- name: update the ssh motd on Ubuntu - name: update the ssh motd on Ubuntu
file: > file: >
mode=0644 mode=0644
path={{ item }} path={{ item }}
when: vagrant_home_dir.stat.exists == false
with_items: with_items:
- "/etc/update-motd.d/10-help-text" - "/etc/update-motd.d/10-help-text"
- "/usr/share/landscape/landscape-sysinfo.wrapper" - "/usr/share/landscape/landscape-sysinfo.wrapper"
......
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