20 lines
552 B
YAML
20 lines
552 B
YAML
---
|
|
- name: Manage the dataplaneapi executable
|
|
block:
|
|
- name: Create the dataplaneapi dest directory
|
|
file:
|
|
dest: '/opt/haproxy-api'
|
|
state: directory
|
|
|
|
- name: Download and unpack the dataplaneapi executable
|
|
unarchive:
|
|
remote_src: yes
|
|
src: '{{ haproxy_dataplane_api_download_url }}'
|
|
dest: '/opt/haproxy-api'
|
|
mode: '0755'
|
|
owner: root
|
|
group: root
|
|
creates: '/opt/haproxy-api/build/dataplaneapi'
|
|
|
|
tags: [ 'haproxy', 'haproxy_dataplane', 'haproxy_dataplaneapi' ]
|