mirror of https://github.com/ansible/ansible.git
Add new arches/OSes for binary_modules tests (#69052)
parent
af44bd4ddd
commit
d17a44b0c5
@ -1,21 +1,9 @@
|
|||||||
- hosts: testhost
|
- hosts: testhost
|
||||||
tasks:
|
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
|
- name: download binary module
|
||||||
tags: test_binary_modules
|
tags: test_binary_modules
|
||||||
get_url:
|
get_url:
|
||||||
url: "https://ansible-ci-files.s3.amazonaws.com/test/integration/roles/test_binary_modules/{{ module_filename }}"
|
url: "https://ansible-ci-files.s3.amazonaws.com/test/integration/roles/test_binary_modules/{{ filename }}"
|
||||||
dest: "{{ playbook_dir }}/library/{{ module_filename }}"
|
dest: "{{ playbook_dir }}/library/{{ filename }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|||||||
@ -0,0 +1,3 @@
|
|||||||
|
system: "{{ ansible_system|lower }}"
|
||||||
|
suffix: "{{ '.exe' if system == 'win32nt' else '' }}"
|
||||||
|
filename: "helloworld_{{ system }}_{{ ansible_architecture }}{{ suffix }}"
|
||||||
Loading…
Reference in New Issue