質問編集履歴

2

セキュリティグループ設定情報を追記

2018/07/23 00:03

投稿

th0167
th0167

スコア12

test CHANGED
File without changes
test CHANGED
@@ -6,46 +6,50 @@
6
6
 
7
7
 
8
8
 
9
+ ansible 2.6.1
10
+
9
11
  Ansibleインスタンス:Centos7.5
10
12
 
11
13
  管理対象インスタンス:Win2012R2
12
14
 
15
+ →上記2インスタンスのセキュリティグループはインバウンドに、
16
+
17
+ ポート22,80,443,3389,5985,5986を0.0.0.0/0を開けてます。
18
+
19
+
20
+
21
+ ```
22
+
23
+ $ cat hosts
24
+
25
+ localhost ansible_host=127.0.0.1 ansible_connection=local
26
+
27
+
28
+
29
+ [windows]
30
+
31
+ 11.222.333.444
32
+
33
+
34
+
35
+ [windows:vars]
36
+
37
+ ansible_user=Administrator
38
+
39
+ ansible_password=xxxxxxxxxxxxx
40
+
41
+ ansible_port=5986
42
+
43
+ ansible_connection=winrm
44
+
45
+ ansible_winrm_server_cert_validation=ignore
46
+
47
+
48
+
49
+ $ sudo ansible windows -m win_ping -vvvvv
50
+
13
51
  ansible 2.6.1
14
52
 
15
-
16
-
17
- ```
18
-
19
- $ cat hosts
20
-
21
- localhost ansible_host=127.0.0.1 ansible_connection=local
22
-
23
-
24
-
25
- [windows]
26
-
27
- 11.222.333.444
28
-
29
-
30
-
31
- [windows:vars]
32
-
33
- ansible_user=Administrator
34
-
35
- ansible_password=xxxxxxxxxxxxx
36
-
37
- ansible_port=5986
38
-
39
- ansible_connection=winrm
40
-
41
- ansible_winrm_server_cert_validation=ignore
42
-
43
-
44
-
45
- $ sudo ansible windows -m win_ping -vvvvv
46
-
47
- ansible 2.6.1
48
-
49
53
  config file = /etc/ansible/ansible.cfg
50
54
 
51
55
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']

1

Ansibleバージョン追記

2018/07/23 00:03

投稿

th0167
th0167

スコア12

test CHANGED
File without changes
test CHANGED
@@ -10,6 +10,8 @@
10
10
 
11
11
  管理対象インスタンス:Win2012R2
12
12
 
13
+ ansible 2.6.1
14
+
13
15
 
14
16
 
15
17
  ```