-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.yaml
62 lines (50 loc) · 1.69 KB
/
test.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
- name: This is a hello-world example
hosts: localhost
tasks:
- name: Show a hello world message
debug:
msg: "hello world"
- name: List directory contents
command: "ls -lap /runner/configs"
register: configs_dir
ignore_errors: true
- name: Debug configs_dir
debug:
var: configs_dir
- name: List directory contents
command: "ls -lap /runner/configs/swift-configmap"
register: swift_dir
ignore_errors: true
- name: Debug swift_dir
debug:
var: swift_dir
- name: List directory contents
command: "ls -lap /runner/configs/test-configmap-1"
register: test_configmap_1_dir
ignore_errors: true
- name: Debug test_configma<p_1_dir
debug:
var: test_configmap_1_dir
- name: List directory contents
command: "ls -lap /runner/configs/test-configmap-2"
register: test_configmap_2_dir
ignore_errors: true
- name: Debug test_configmap_2_dir
debug:
var: test_configmap_2_dir
- name: Debug swift-configmap
debug:
msg: "the value of swift_account_ring is {{lookup('file', '/runner/configs/swift-configmap') }}"
ignore_errors: true
- name: Debug swift_account_ring
debug:
msg: "the value of swift_account_ring is {{lookup('file', '/runner/configs/swift-configmap/swift_account_ring') }}"
ignore_errors: true
- name: Debug test-configmap-2
debug:
msg: "the value of swift_account_ring is {{lookup('file', '/runner/configs/test-configmap-2/config.yaml') }}"
ignore_errors: true
- name: List environment variables
debug:
var: vars["ansible_env"]