68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
|
---
|
||
|
- hosts: "{{ variable_host | default('lab15_standard') }}"
|
||
|
gather_facts: no
|
||
|
become: yes
|
||
|
tasks:
|
||
|
- name: install python3-zmq
|
||
|
apt:
|
||
|
pkg: python3-zmq
|
||
|
|
||
|
# LibSodium
|
||
|
- name: Make temp folder
|
||
|
file:
|
||
|
path: /temp
|
||
|
state: mkdir
|
||
|
|
||
|
- name: download sources libsodium c++
|
||
|
get_url: url=https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz dest=/temp
|
||
|
|
||
|
- name: untar libsodium
|
||
|
unarchive:
|
||
|
src: /temp/libsodium-1.0.18.tar.gz
|
||
|
dest: /temp
|
||
|
|
||
|
- name: run libsodium configure scirpt
|
||
|
script: /temp/libsodium-1.0.18/configure
|
||
|
|
||
|
- name: Build the default target /temp/libsodium-1.0.18/
|
||
|
make:
|
||
|
chdir: /temp/libsodium-1.0.18/
|
||
|
|
||
|
- name: Build the default target /temp/libsodium-1.0.18/
|
||
|
make:
|
||
|
chdir: /temp/libsodium-1.0.18/
|
||
|
|
||
|
- name: Run 'install' target /temp/libsodium-1.0.18/
|
||
|
make:
|
||
|
chdir: /temp/libsodium-1.0.18/
|
||
|
target: install
|
||
|
|
||
|
# ZeroMQ - C++
|
||
|
- name: download sources zeromq c++
|
||
|
get_url: url=https://archive.org/download/zeromq_4.1.4/zeromq-4.1.4.tar.gz dest=/temp
|
||
|
|
||
|
- name: untar zeromq
|
||
|
unarchive:
|
||
|
src: /temp/zeromq-4.1.4.tar.gz
|
||
|
dest: /temp
|
||
|
|
||
|
- name: run zeromq configure scirpt
|
||
|
script: /temp/zeromq-4.1.4/configure
|
||
|
|
||
|
- name: Build the default target /temp/zeromq-4.1.4/
|
||
|
make:
|
||
|
chdir: /temp/zeromq-4.1.4/
|
||
|
|
||
|
- name: Build the default target /temp/zeromq-4.1.4/
|
||
|
make:
|
||
|
chdir: /temp/zeromq-4.1.4/
|
||
|
|
||
|
- name: Run 'install' target /temp/zeromq-4.1.4/
|
||
|
make:
|
||
|
chdir: /temp/zeromq-4.1.4/
|
||
|
target: install
|
||
|
|
||
|
- name: Clean temp folder
|
||
|
file:
|
||
|
path: /temp
|
||
|
state: absent
|