summaryrefslogtreecommitdiffstats
path: root/cyborg_enhancement/mitaka_version/cyborg/setup/roles/install_package/tasks/main.yml
blob: 561cc1c2fdc5a708d76d140c53b706147e0dc27e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---

- name: Check if pip is installed
  shell: "which pip"
  register: which_pip
  ignore_errors: true

- name: Install pip
  package:
    name: python-pip
    state: present
  when: which_pip|failed
  become: true

- name: Install rsync
  package:
    name: rsync
    state: present
  become: true

- name: Copy cyborg to host
  synchronize:
    src: ../../../cyborg/
    dest: /tmp/cyborg
    use_ssh_args: yes

- name: Remove old Cyborg if installed
  pip:
    name: cyborg
    state: absent
  become: true
  ignore_errors: true

- name: Install Cyborg using pip
  pip:
    name: /tmp/cyborg
    state: present
  become: true