Statistics
| Branch: | Revision:

iof-tools / playbooks / install-bird.yaml @ 39d924ff

History | View | Annotate | Download (877 Bytes)

1
---
2
- hosts: nodes
3
  tasks:
4
  - name: set home
5
    set_fact:
6
      home_dir: "{{ lookup('env', 'HOME') }}"
7
      bird_dir: "{{ ansible_env.HOME }}/iof-bird-daemon"
8
  - name: archive file
9
    local_action: command tar -C "{{ home_dir }}" -czf /tmp/iof-bird-daemon.bzip iof-bird-daemon
10
  - unarchive:
11
      src: "/tmp/iof-bird-daemon.bzip"
12
      dest: "{{ ansible_env.HOME }}/"
13
  - file:
14
      path: /tmp/iof-bird-daemon.zip
15
      state: absent
16
  - name: install required libraries
17
    become: true
18
    apt:
19
      name: "{{ packages }}"
20
    vars:
21
      packages:
22
        - libncurses5-dev
23
        - libreadline-dev
24
  - name: run autoreconf
25
    command: autoreconf
26
    args:
27
      chdir: "{{ bird_dir }}"
28
  - name: run configure
29
    command: ./configure
30
    args:
31
      chdir: "{{ bird_dir }}"
32
  - name: compile bird
33
    command: make -j 4
34
    args:
35
      chdir: "{{ bird_dir }}"