mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-03-09 11:05:18 +01:00
TEST
This commit is contained in:
parent
4ed7a677ce
commit
f976c994c7
1 changed files with 2 additions and 8 deletions
|
|
@ -19,14 +19,6 @@
|
||||||
- foo.txt
|
- foo.txt
|
||||||
- bar.txt
|
- bar.txt
|
||||||
|
|
||||||
- name: Check facts
|
|
||||||
debug:
|
|
||||||
var: ansible_facts
|
|
||||||
|
|
||||||
- name: Check virtualization_type
|
|
||||||
debug:
|
|
||||||
msg: "{{ ansible_facts.virtualization_type }}"
|
|
||||||
|
|
||||||
- name: Check '{{ output_dir }}' value
|
- name: Check '{{ output_dir }}' value
|
||||||
debug:
|
debug:
|
||||||
msg: "{{ output_dir }}"
|
msg: "{{ output_dir }}"
|
||||||
|
|
@ -53,11 +45,13 @@
|
||||||
- foo.txt
|
- foo.txt
|
||||||
- bar.txt
|
- bar.txt
|
||||||
delegate_to: "{{ inventory_hostname }}"
|
delegate_to: "{{ inventory_hostname }}"
|
||||||
|
delegate_facts: true
|
||||||
- name: copy file to new filename
|
- name: copy file to new filename
|
||||||
copy:
|
copy:
|
||||||
src: "{{ output_dir }}/foo.txt"
|
src: "{{ output_dir }}/foo.txt"
|
||||||
dest: "{{ output_dir }}/foo.result"
|
dest: "{{ output_dir }}/foo.result"
|
||||||
delegate_to: "{{ inventory_hostname }}"
|
delegate_to: "{{ inventory_hostname }}"
|
||||||
|
delegate_facts: true
|
||||||
when:
|
when:
|
||||||
- ansible_facts.virtualization_type == 'docker'
|
- ansible_facts.virtualization_type == 'docker'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue