質問編集履歴
5
文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,7 +8,9 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
|
11
|
+
WindowsserverにあるTeraTarmmacroをPowershellでバッチファイル化
|
12
|
+
|
13
|
+
そのPowershellをAnsibleから実行したい
|
12
14
|
|
13
15
|
|
14
16
|
|
4
playbookの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,9 +48,13 @@
|
|
48
48
|
|
49
49
|
■インベントリファイル
|
50
50
|
|
51
|
+
```ここに言語を入力
|
52
|
+
|
51
53
|
[windows]
|
52
54
|
|
53
55
|
WindowsserverのIPアドレス
|
56
|
+
|
57
|
+
|
54
58
|
|
55
59
|
|
56
60
|
|
@@ -58,7 +62,7 @@
|
|
58
62
|
|
59
63
|
ansible_ssh_user=Administrator
|
60
64
|
|
61
|
-
ansible_ssh_pass=
|
65
|
+
ansible_ssh_pass=serverのPW
|
62
66
|
|
63
67
|
ansible_ssh_port=5986
|
64
68
|
|
@@ -67,6 +71,8 @@
|
|
67
71
|
ansible_winrm_transport=basic
|
68
72
|
|
69
73
|
ansible_winrm_server_cert_validation=ignore
|
74
|
+
|
75
|
+
```
|
70
76
|
|
71
77
|
|
72
78
|
|
3
playbookの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,6 +26,8 @@
|
|
26
26
|
|
27
27
|
■作成したplaybook
|
28
28
|
|
29
|
+
```ここに言語を入力
|
30
|
+
|
29
31
|
---
|
30
32
|
|
31
33
|
- hosts: windows
|
@@ -39,6 +41,8 @@
|
|
39
41
|
tags: setting
|
40
42
|
|
41
43
|
win_shell: C:\tmp\script\restore.ps1
|
44
|
+
|
45
|
+
```
|
42
46
|
|
43
47
|
|
44
48
|
|
2
playbookの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,23 +26,19 @@
|
|
26
26
|
|
27
27
|
■作成したplaybook
|
28
28
|
|
29
|
-
|
29
|
+
---
|
30
30
|
|
31
|
-
|
31
|
+
- hosts: windows
|
32
32
|
|
33
|
-
|
33
|
+
gather_facts: false
|
34
34
|
|
35
|
-
|
35
|
+
tasks:
|
36
36
|
|
37
|
-
|
37
|
+
- name: Run shell command
|
38
38
|
|
39
|
-
|
39
|
+
tags: setting
|
40
40
|
|
41
|
-
|
41
|
+
win_shell: C:\tmp\script\restore.ps1
|
42
|
-
|
43
|
-
args:
|
44
|
-
|
45
|
-
excutable: cmd
|
46
42
|
|
47
43
|
|
48
44
|
|
1
文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,19 +30,19 @@
|
|
30
30
|
|
31
31
|
‐ hosts: windows
|
32
32
|
|
33
|
-
gather_facts: false
|
33
|
+
gather_facts: false
|
34
34
|
|
35
|
-
tasks:
|
35
|
+
tasks:
|
36
36
|
|
37
|
-
‐ name: Run shell command
|
37
|
+
‐ name: Run shell command
|
38
38
|
|
39
|
-
tags: setting
|
39
|
+
tags: setting
|
40
40
|
|
41
|
-
win_shell: C:\tmp\script\restore.ps1
|
41
|
+
win_shell: C:\tmp\script\restore.ps1
|
42
42
|
|
43
|
-
args:
|
43
|
+
args:
|
44
44
|
|
45
|
-
excutable: cmd
|
45
|
+
excutable: cmd
|
46
46
|
|
47
47
|
|
48
48
|
|