Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
fb4956d5
Commit
fb4956d5
authored
Jun 06, 2014
by
Ben Patterson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1176 from edx/benp/vagrant-specific-config
Skip chown of motd.d files for vagrant machines.
parents
a1aae5cf
e7f26ce0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
playbooks/roles/common/tasks/main.yml
+8
-0
No files found.
playbooks/roles/common/tasks/main.yml
View file @
fb4956d5
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment