Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
728e675c
Commit
728e675c
authored
Jun 12, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uncomment
parent
28344bd3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
ansible_service.py
deployer/service/ansible_service.py
+9
-10
No files found.
deployer/service/ansible_service.py
View file @
728e675c
...
@@ -54,17 +54,16 @@ class AnsibleService:
...
@@ -54,17 +54,16 @@ class AnsibleService:
inputs
=
create
[
'inputs'
]
inputs
=
create
[
'inputs'
]
git_url
=
inputs
[
'repository'
]
git_url
=
inputs
[
'repository'
]
playbook_names
=
inputs
[
'resources'
]
playbook_names
=
inputs
[
'resources'
]
#
for playbook_name in playbook_names:
for
playbook_name
in
playbook_names
:
#
environment_id = None
environment_id
=
None
#
if env_vars:
if
env_vars
:
#
environment_id = self.semaphore_helper.create_environment(project_id,name,env_vars)
environment_id
=
self
.
semaphore_helper
.
create_environment
(
project_id
,
name
,
env_vars
)
#
task_id = self.run_task(name, project_id, key_id, git_url, inventory_id, playbook_name, environment_id= environment_id)
task_id
=
self
.
run_task
(
name
,
project_id
,
key_id
,
git_url
,
inventory_id
,
playbook_name
,
environment_id
=
environment_id
)
#
if self.semaphore_helper.get_task(project_id, task_id).status != 'success':
if
self
.
semaphore_helper
.
get_task
(
project_id
,
task_id
)
.
status
!=
'success'
:
#
break
break
#
tasks_outputs[task_id] = self.semaphore_helper.get_task_outputs(project_id, task_id)
tasks_outputs
[
task_id
]
=
self
.
semaphore_helper
.
get_task_outputs
(
project_id
,
task_id
)
# if self.semaphore_helper.get_task(project_id,task_id).status == 'success':
if
self
.
semaphore_helper
.
get_task
(
project_id
,
task_id
)
.
status
==
'success'
:
if
True
:
configure
=
interface
[
'configure'
]
configure
=
interface
[
'configure'
]
inputs
=
configure
[
'inputs'
]
inputs
=
configure
[
'inputs'
]
git_url
=
inputs
[
'repository'
]
git_url
=
inputs
[
'repository'
]
...
...
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