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
OpenEdx
configuration
Commits
39cc8fda
Commit
39cc8fda
authored
8 years ago
by
arbabnazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed the git clone error
parent
6d38dafe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
playbooks/roles/git_clone/tasks/main.yml
+6
-5
No files found.
playbooks/roles/git_clone/tasks/main.yml
View file @
39cc8fda
...
@@ -32,11 +32,12 @@
...
@@ -32,11 +32,12 @@
fail
:
fail
:
msg
:
'
{{
GIT_REPOS.PROTOCOL
}}
must
be
"https"
or
"ssh"'
msg
:
'
{{
GIT_REPOS.PROTOCOL
}}
must
be
"https"
or
"ssh"'
when
:
(item.PROTOCOL != "https") and (item.PROTOCOL != "ssh") and GIT_REPOS is defined
when
:
(item.PROTOCOL != "https") and (item.PROTOCOL != "ssh") and GIT_REPOS is defined
with_items
:
"
{{
GIT_REPOS
}}"
with_items
:
GIT_REPOS
tags
:
tags
:
-
install
-
install
-
install:code
-
install:code
-
name
:
Install read-only ssh key
-
name
:
Install read-only ssh key
copy
:
copy
:
dest
:
"
{{
git_home
}}/.ssh/{{
item.REPO
}}"
dest
:
"
{{
git_home
}}/.ssh/{{
item.REPO
}}"
...
@@ -45,7 +46,7 @@
...
@@ -45,7 +46,7 @@
group
:
"
{{
repo_group
}}"
group
:
"
{{
repo_group
}}"
mode
:
"
0600"
mode
:
"
0600"
when
:
item.PROTOCOL == "ssh" and GIT_REPOS is defined
when
:
item.PROTOCOL == "ssh" and GIT_REPOS is defined
with_items
:
"
{{
GIT_REPOS
}}"
with_items
:
GIT_REPOS
tags
:
tags
:
-
install
-
install
-
install:code
-
install:code
...
@@ -60,7 +61,7 @@
...
@@ -60,7 +61,7 @@
become_user
:
"
{{
repo_owner
}}"
become_user
:
"
{{
repo_owner
}}"
register
:
code_checkout
register
:
code_checkout
when
:
item.PROTOCOL == "ssh" and GIT_REPOS is defined
when
:
item.PROTOCOL == "ssh" and GIT_REPOS is defined
with_items
:
"
{{
GIT_REPOS
}}"
with_items
:
GIT_REPOS
tags
:
tags
:
-
install
-
install
-
install:code
-
install:code
...
@@ -73,7 +74,7 @@
...
@@ -73,7 +74,7 @@
become_user
:
"
{{
repo_owner
}}"
become_user
:
"
{{
repo_owner
}}"
register
:
code_checkout
register
:
code_checkout
when
:
item.PROTOCOL == "https" and GIT_REPOS is defined
when
:
item.PROTOCOL == "https" and GIT_REPOS is defined
with_items
:
"
{{
GIT_REPOS
}}"
with_items
:
GIT_REPOS
tags
:
tags
:
-
install
-
install
-
install:code
-
install:code
...
@@ -83,7 +84,7 @@
...
@@ -83,7 +84,7 @@
dest
:
"
{{
git_home
}}/.ssh/{{
item.REPO
}}"
dest
:
"
{{
git_home
}}/.ssh/{{
item.REPO
}}"
state
:
absent
state
:
absent
when
:
item.PROTOCOL == "ssh" and GIT_REPOS is defined
when
:
item.PROTOCOL == "ssh" and GIT_REPOS is defined
with_items
:
"
{{
GIT_REPOS
}}"
with_items
:
GIT_REPOS
tags
:
tags
:
-
install
-
install
-
install:code
-
install:code
This diff is collapsed.
Click to expand it.
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