2019-01-10 23:45:12 +01:00
|
|
|
- hosts: testhost
|
2016-07-31 17:48:32 +02:00
|
|
|
tasks:
|
|
|
|
- debug: var=ansible_system
|
|
|
|
|
2016-08-02 19:42:07 +02:00
|
|
|
- name: set module filename (POSIX)
|
|
|
|
set_fact:
|
|
|
|
module_filename: "helloworld_{{ ansible_system | lower }}"
|
|
|
|
when: ansible_system != 'Win32NT'
|
|
|
|
|
|
|
|
- name: set module filename (Win32NT)
|
|
|
|
set_fact:
|
|
|
|
module_filename: "helloworld_{{ ansible_system | lower }}.exe"
|
|
|
|
when: ansible_system == 'Win32NT'
|
|
|
|
|
2016-07-31 17:48:32 +02:00
|
|
|
- name: download binary module
|
|
|
|
tags: test_binary_modules
|
2019-04-27 02:33:59 +02:00
|
|
|
get_url:
|
2016-08-02 19:42:07 +02:00
|
|
|
url: "https://ansible-ci-files.s3.amazonaws.com/test/integration/roles/test_binary_modules/{{ module_filename }}"
|
|
|
|
dest: "{{ playbook_dir }}/library/{{ module_filename }}"
|
2016-07-31 17:48:32 +02:00
|
|
|
mode: 0755
|
2019-04-27 02:33:59 +02:00
|
|
|
delegate_to: localhost
|