質問編集履歴
8
説明文の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,13 +24,6 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
web.vip.hoge.co.jpはVIPのweb01.hoge.co.jpに紐づいています
|
27
|
-
```
|
28
|
-
|
29
|
-
|
30
|
-
validate_certs: false を設定後の
|
31
|
-
エラーメッセージ抜粋
|
32
|
-
```
|
33
|
-
"msg": "Status code was 404 and not [200]: HTTP Error 404: Not Found", "redirected": false, "server": "Jetty(X.X.XX.vyyyymmdd)", "status": 404, "url": "https://web01.hoge.co.jp/hoge.html?alive=value1"
|
34
27
|
```
|
35
28
|
|
36
29
|
### 該当のソースコード
|
@@ -60,7 +53,7 @@
|
|
60
53
|
"cmd": [
|
61
54
|
"curl",
|
62
55
|
"-k",
|
63
|
-
"https://web01.hoge.co.jp
|
56
|
+
"https://web01.hoge.co.jp/hoge.html?alive=value1",
|
64
57
|
"-s"
|
65
58
|
],
|
66
59
|
"delta": "0:00:00.ssssss",
|
7
説明文の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
### 前提
|
10
10
|
|
11
11
|
```curlコマンドの内容
|
12
|
-
$ curl -k https://web01.
|
12
|
+
$ curl -k https://web01.hoge.co.jp/hoge.html?alive=value1 -s
|
13
13
|
```
|
14
14
|
|
15
15
|
ブラウザーによる実行結果の表示
|
6
説明文の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
### 前提
|
10
10
|
|
11
11
|
```curlコマンドの内容
|
12
|
-
$ curl -k https://
|
12
|
+
$ curl -k https://web01. hoge.co.jp/hoge.html?alive=value1 -s
|
13
13
|
```
|
14
14
|
|
15
15
|
ブラウザーによる実行結果の表示
|
5
説明文の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,6 +24,13 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
web.vip.hoge.co.jpはVIPのweb01.hoge.co.jpに紐づいています
|
27
|
+
```
|
28
|
+
|
29
|
+
|
30
|
+
validate_certs: false を設定後の
|
31
|
+
エラーメッセージ抜粋
|
32
|
+
```
|
33
|
+
"msg": "Status code was 404 and not [200]: HTTP Error 404: Not Found", "redirected": false, "server": "Jetty(X.X.XX.vyyyymmdd)", "status": 404, "url": "https://web01.hoge.co.jp/hoge.html?alive=value1"
|
27
34
|
```
|
28
35
|
|
29
36
|
### 該当のソースコード
|
4
説明文の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -37,3 +37,37 @@
|
|
37
37
|
alive: "value1"
|
38
38
|
```
|
39
39
|
|
40
|
+
commandモジュールにてcurlコマンドを実行した結果
|
41
|
+
```playbook.yml
|
42
|
+
ansible.builtin.command: curl -k https://hoge.web01.co.jp/hoge.html?alive=value1 -s
|
43
|
+
```
|
44
|
+
|
45
|
+
上記のplaybookでのcurlコマンドを実行した際の結果ログ
|
46
|
+
```
|
47
|
+
ok: [web01.hoge.co.jp] => {
|
48
|
+
"vip_service_out": {
|
49
|
+
"ansible_facts": {
|
50
|
+
"discovered_interpreter_python": "/usr/bin/python"
|
51
|
+
},
|
52
|
+
"changed": true,
|
53
|
+
"cmd": [
|
54
|
+
"curl",
|
55
|
+
"-k",
|
56
|
+
"https://web01.hoge.co.jp:4443/hoge.html?alive=value1",
|
57
|
+
"-s"
|
58
|
+
],
|
59
|
+
"delta": "0:00:00.ssssss",
|
60
|
+
"end": "yyyy-mm-dd HH:MM:SS.ssssss",
|
61
|
+
"failed": false,
|
62
|
+
"msg": "",
|
63
|
+
"rc": 0,
|
64
|
+
"start": "yyyy-mm-dd HH:MM:SS.ssssss",
|
65
|
+
"stderr": "",
|
66
|
+
"stderr_lines": [],
|
67
|
+
"stdout": "{ \"isAlive\": value1 }",
|
68
|
+
"stdout_lines": [
|
69
|
+
"{ \"isAlive\": value1 }"
|
70
|
+
]
|
71
|
+
}
|
72
|
+
}
|
73
|
+
```
|
3
エラーメッセージを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -17,6 +17,15 @@
|
|
17
17
|
{ “isAlive”: value1 }
|
18
18
|
```
|
19
19
|
|
20
|
+
### エラーメッセージ
|
21
|
+
|
22
|
+
```
|
23
|
+
fatal: [web01.hoge.co.jp]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": true, "msg": "hostname 'web01.hoge.co.jp' doesn't match 'web.vip.hoge.co.jp'", "status": -1, "url": "https://web01.hoge.co.jp:4443/hoge.html"}
|
24
|
+
|
25
|
+
|
26
|
+
web.vip.hoge.co.jpはVIPのweb01.hoge.co.jpに紐づいています
|
27
|
+
```
|
28
|
+
|
20
29
|
### 該当のソースコード
|
21
30
|
|
22
31
|
```playbook.yml
|
2
説明文の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,8 @@
|
|
12
12
|
$ curl -k https://hoge.web01.co.jp/hoge.html?alive=value1 -s
|
13
13
|
```
|
14
14
|
|
15
|
-
|
15
|
+
ブラウザーによる実行結果の表示
|
16
|
+
```
|
16
17
|
{ “isAlive”: value1 }
|
17
18
|
```
|
18
19
|
|
1
説明文の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
$ curl -k https://hoge.web01.co.jp/hoge.html?alive=value1 -s
|
13
13
|
```
|
14
14
|
|
15
|
-
```
|
15
|
+
```ブラウザーによる実行結果の表示内
|
16
16
|
{ “isAlive”: value1 }
|
17
17
|
```
|
18
18
|
|