-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_modules.yml
44 lines (39 loc) · 1.12 KB
/
test_modules.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
- name: Test writeExcelFileLine module
hosts: all
tasks:
- name: Build the output file name with a timestamp
set_fact:
output_file_name: "{{'test_' + ansible_date_time['epoch'] + '.xlsx'}}"
- name: Create /tmp/test.xlsx file and write line 6 from column 4
writeExcelFileLine:
dest: "{{'/tmp/' + output_file_name}}"
sheet: 'Sheet'
line_number: 6
start_column: 4
line:
- 'test3'
- 'test2'
- 'test3'
- 'test4'
- name: Write line 5 from column 3 of already existing /tmp/test.xlsx file
writeExcelFileLine:
dest: "{{'/tmp/' + output_file_name}}"
sheet: 'Sheet'
line_number: 5
start_column: 3
line:
- 'test3'
- 'test2'
- 'test3'
- 'test4'
- name: Try to write test.xlsx file in unexisting folder
writeExcelFileLine:
dest: "{{'/unexisting/' + output_file_name}}"
sheet: 'Sheet'
line_number: 6
start_column: 4
line:
- 'test3'
- 'test2'
- 'test3'
- 'test4'