Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafael Monnerat
slapos.package
Commits
6bfd0600
Commit
6bfd0600
authored
Oct 04, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook/ors: change init-sdr and init-enb path to /opt/amarisoft
parent
6f95e219
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
playbook/roles/ors/tasks/main.yml
playbook/roles/ors/tasks/main.yml
+10
-12
No files found.
playbook/roles/ors/tasks/main.yml
View file @
6bfd0600
...
...
@@ -35,32 +35,30 @@
-
name
:
Give permission to slapuser to remove tmp files owned by other slapuser
copy
:
src=slapuser-rm-tmp dest=/etc/sudoers.d owner=root mode=440
-
name
:
Give permission to slapuser to launch init-sdr script
copy
:
src=slapuser-init-sdr dest=/etc/sudoers.d owner=root mode=440
-
name
:
Give permission to slapuser to launch init-enb script
copy
:
src=slapuser-init-enb dest=/etc/sudoers.d owner=root mode=440
-
name
:
Check if /opt/amarisoft exists
stat
:
path=/opt/amarisoft
register
:
opt_amarisoft
-
name
:
Get Amarisoft path
shell
:
'
find
/opt/amarisoft
-maxdepth
1
|
grep
"^/opt/amarisoft/v[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}$"
|
sort
|
tail
-n1'
register
:
amarisoft_path
when
:
opt_amarisoft.stat.exists
-
name
:
Check amarisoft_path
debug
:
var=amarisoft_path
-
name
:
Copy init SDR script
copy
:
src=init-sdr dest=
{{ amarisoft_path.stdout }}
owner=root
copy
:
src=init-sdr dest=
/opt/amarisoft
owner=root
when
:
opt_amarisoft.stat.exists
-
name
:
Copy init eNB script
copy
:
src=init-enb dest=
{{ amarisoft_path.stdout }}
owner=root
copy
:
src=init-enb dest=
/opt/amarisoft
owner=root
when
:
opt_amarisoft.stat.exists
-
name
:
Init SDR
script
:
"
{{
amarisoft_path.stdout
}}
/init-sdr"
script
:
"
/opt/amarisoft
/init-sdr"
when
:
opt_amarisoft.stat.exists
-
name
:
Init eNB
script
:
"
{{
amarisoft_path.stdout
}}
/init-enb"
script
:
"
/opt/amarisoft
/init-enb"
when
:
opt_amarisoft.stat.exists
-
name
:
Check if Service Exists
...
...
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