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
1eb7f686
Commit
1eb7f686
authored
May 19, 2015
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move aws specific task to aws role.
parent
47f7a39a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
15 deletions
+18
-15
playbooks/roles/aws/tasks/main.yml
+16
-0
playbooks/roles/common/tasks/main.yml
+2
-15
No files found.
playbooks/roles/aws/tasks/main.yml
View file @
1eb7f686
...
...
@@ -112,3 +112,19 @@
job
:
"
{{
aws_s3_sync_script
}}
>
/dev/null
2>&1"
state
:
absent
when
:
AWS_S3_LOGS
# update the ssh motd on Ubuntu
# Remove some of the default motd display on ubuntu
# and add a custom motd. These do not require an
# ssh restart
# Only needed for EC2 instances.
-
name
:
update the ssh motd on Ubuntu
file
:
>
mode=0644
path={{ item }}
when
:
vagrant_home_dir.stat.exists ==
false
with_items
:
-
"
/etc/update-motd.d/10-help-text"
-
"
/usr/share/landscape/landscape-sysinfo.wrapper"
-
"
/etc/update-motd.d/51-cloudguest"
-
"
/etc/update-motd.d/91-release-upgrade"
playbooks/roles/common/tasks/main.yml
View file @
1eb7f686
...
...
@@ -108,21 +108,6 @@
template
:
src=etc/dhcp/dhclient.conf.j2 dest=/etc/dhcp/dhclient.conf
when
:
COMMON_CUSTOM_DHCLIENT_CONFIG
# Remove some of the default motd display on ubuntu
# and add a custom motd. These do not require an
# ssh restart
# Only needed for EC2 instances.
-
name
:
update the ssh motd on Ubuntu
file
:
>
mode=0644
path={{ item }}
when
:
vagrant_home_dir.stat.exists ==
false
with_items
:
-
"
/etc/update-motd.d/10-help-text"
-
"
/usr/share/landscape/landscape-sysinfo.wrapper"
-
"
/etc/update-motd.d/51-cloudguest"
-
"
/etc/update-motd.d/91-release-upgrade"
-
name
:
add ssh-warning banner motd
template
:
>
dest=/etc/motd.tail
...
...
@@ -133,3 +118,4 @@
dest=/etc/ssh/sshd_config
src=sshd_config.j2 mode=0644 owner=root group=root
notify
:
restart ssh
\ No newline at end of file
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