Skip to content

Commit

Permalink
Updated ansible script
Browse files Browse the repository at this point in the history
  • Loading branch information
Trial97 authored and danbogos committed Feb 6, 2020
1 parent f7a50da commit afd555f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions data/ansible/packages/main.yaml
Expand Up @@ -206,9 +206,17 @@
- hosts: pkg
remote_user: '{{ gouser }}'
tasks:
- name: Creates directory
become: yes
file:
path: /var/packages/debian/v0.10/
state: directory

- name: Remove symlink from current deb package
become: yes
shell: "sudo rm /var/packages/debian/cgrates_current_amd64.deb"
file:
path: /var/packages/debian/v0.10/cgrates_current_amd64.deb
state: absent

- name: Move the new package to /var/packages/debian
become: yes
Expand All @@ -217,5 +225,5 @@

- name: Create the new symlink cgrates_current_amd64.deb
become: yes
shell: "sudo ln -s /var/packages/debian/{{ item }} /var/packages/debian/cgrates_current_amd64.deb"
shell: "sudo ln -s /var/packages/debian/v0.10/{{ item }} /var/packages/debian/v0.10/cgrates_current_amd64.deb"
with_items: "{{ hostvars['apt']['debFileName']['stdout_lines'] }}"

0 comments on commit afd555f

Please sign in to comment.