mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
726 B
YAML
22 lines
726 B
YAML
8 years ago
|
- hosts: testhost_binary_modules
|
||
8 years ago
|
tasks:
|
||
|
- debug: var=ansible_system
|
||
|
|
||
8 years ago
|
- 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'
|
||
|
|
||
8 years ago
|
- name: download binary module
|
||
|
tags: test_binary_modules
|
||
8 years ago
|
local_action:
|
||
|
module: get_url
|
||
|
url: "https://ansible-ci-files.s3.amazonaws.com/test/integration/roles/test_binary_modules/{{ module_filename }}"
|
||
|
dest: "{{ playbook_dir }}/library/{{ module_filename }}"
|
||
8 years ago
|
mode: 0755
|