Commit 6bfd0600 authored by Joanne Hugé's avatar Joanne Hugé

playbook/ors: change init-sdr and init-enb path to /opt/amarisoft

parent 6f95e219
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment