mirror of https://github.com/ansible/ansible.git
Add binary module tests to Windows CI. (#16914)
parent
f7570f1dc4
commit
ff4f4bc8a0
@ -1,10 +1,21 @@
|
||||
- hosts: all
|
||||
- hosts: testhost_binary_modules
|
||||
tasks:
|
||||
- debug: var=ansible_system
|
||||
|
||||
- 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'
|
||||
|
||||
- name: download binary module
|
||||
tags: test_binary_modules
|
||||
get_url:
|
||||
url: "https://ansible-ci-files.s3.amazonaws.com/test/integration/roles/test_binary_modules/helloworld_{{ ansible_system|lower }}"
|
||||
dest: "{{ playbook_dir }}/library/helloworld_{{ ansible_system|lower }}"
|
||||
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 }}"
|
||||
mode: 0755
|
||||
|
Loading…
Reference in New Issue