rina.yml 1.04 KB
---
- hosts: all

  vars:
    swig_dir: ~/swig
    rina_dir: ~/stack
  
  #remote_user: user
  #become: yes
  #become_method: su
  tasks:
  - apt: update_cache=yes cache_valid_time=300 
  - apt: name={{ item }} state=present
    with_items:
    - kernel-package
    - libncurses5-dev
    - autoconf
    - automake
    - libtool
    - pkg-config
    - git
    - g++
    - openjdk-7-jdk
    - maven
    - openssl
    - libssl-dev

    - protobuf-compiler
    - libprotobuf-dev
    - libnl-genl-3-dev
    - libnl-3-dev

    - libpcre3-dev

    - vlan

    - yodl
    - bison

  - name: SWIG
    git: repo=https://github.com/swig/swig.git
         dest={{ swig_dir }}
  - name: SWIG COMPILE
    shell: cd {{ swig_dir }};{{ item }}
    with_items:
      - ./autogen.sh
      - ./configure
      - make
      - make install

  - name: RINA 
    git: repo=https://github.com/IRATI/stack.git
         dest={{ rina_dir }}
  - shell: cd {{ rina_dir }}; git pull --tags
  - shell: cd {{ rina_dir }}/linux; make olddefconfig
  - shell: cd {{ rina_dir }};./install-from-scratch