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
ec3284cc
Commit
ec3284cc
authored
Oct 14, 2014
by
Fred Smith
Committed by
David Baumgold
Oct 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace geturl with a shell out to curl - to fix broken certificate management
parent
bfb28f7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
playbooks/roles/user/tasks/main.yml
+10
-4
No files found.
playbooks/roles/user/tasks/main.yml
View file @
ec3284cc
...
...
@@ -115,10 +115,16 @@
# won't update if they haven't changed on the github
# side
-
name
:
copy github key[s] to .ssh/authorized_keys2
get_url
:
>
url=https://github.com/{{ item.name }}.keys
force=yes
dest=/home/{{ item.name }}/.ssh/authorized_keys2 mode=0640
shell
:
>
curl https://github.com/{{ item.name }}.keys -o /home/{{ item.name }}/.ssh/authorized_keys2
sudo_user
:
"
{{
item.name
}}"
when
:
item.github is defined and item.get('state', 'present') == 'present'
with_items
:
user_info
-
name
:
set permissions on .ssh/authorized_keys2
file
:
>
dest=/home/{{ item.name }}/.ssh/authorized_keys2
mode=0640
owner={{ item.name }}
when
:
item.github is defined and item.get('state', 'present') == 'present'
with_items
:
user_info
...
...
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