質問編集履歴

6

2018/02/27 01:28

投稿

gants
gants

スコア18

test CHANGED
File without changes
test CHANGED
@@ -1,17 +1,19 @@
1
1
  ```ここに言語を入力
2
2
 
3
- TASK [service] ******************************************************
4
-
5
- fatal: [----]: FAILED! => {"changed": false, "failed": true, "msg": "Unable to restart service squid: Job for squid.service failed. See 'systemctl status squid.service' and 'journalctl -xn' for details.\n"}
6
-
7
- to retry, use: --limit @/root/ansible-squid/kickcancrew.retry
8
-
9
- tasks:
10
-
11
- - service:
12
-
13
- name: squid
14
-
15
- state: restarted
3
+ TASK [
16
4
 
17
5
  ```
6
+
7
+ ///
8
+
9
+ TASK [
10
+
11
+ ```
12
+
13
+ ///
14
+
15
+ TASK [
16
+
17
+ ```
18
+
19
+ ///

5

p

2018/02/27 01:28

投稿

gants
gants

スコア18

test CHANGED
File without changes
test CHANGED
@@ -1,33 +1,3 @@
1
- ansibleでサーバー構築していますが、今まで他のvpsでは構築出来てましたが、
2
-
3
- 別のクラウドで使用しますと同じコードでもエラーが出てしまいます。
4
-
5
- 教えていただけないでしょうか。
6
-
7
- よろしくお願いします。
8
-
9
-
10
-
11
- <環境>
12
-
13
- 他のクラウドで通りました。
14
-
15
- 今回の対接続先サーバー
16
-
17
- - hosts: google
18
-
19
- # 他ユーザー権限を利用する(デフォルト:root)
20
-
21
- become: yes
22
-
23
- # 他ユーザー権限を利用する方法
24
-
25
-
26
-
27
- squid.serviceというtaskが流れず困っています。
28
-
29
- 結果↓
30
-
31
1
  ```ここに言語を入力
32
2
 
33
3
  TASK [service] ******************************************************

4

修正2

2018/02/21 10:38

投稿

gants
gants

スコア18

test CHANGED
File without changes
test CHANGED
@@ -22,16 +22,6 @@
22
22
 
23
23
  # 他ユーザー権限を利用する方法
24
24
 
25
- tasks:
26
-
27
- - service:
28
-
29
- name: squid
30
-
31
- state: restarted
32
-
33
- ```
34
-
35
25
 
36
26
 
37
27
  squid.serviceというtaskが流れず困っています。

3

修正

2017/09/01 14:25

投稿

gants
gants

スコア18

test CHANGED
File without changes
test CHANGED
@@ -55,123 +55,3 @@
55
55
  state: restarted
56
56
 
57
57
  ```
58
-
59
- systemctl status squid.service -l のコマンドで確かめました。↓
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
- ```ここに言語を入力
68
-
69
- [root@ppp ~]# squid -k parse
70
-
71
- 2017/08/27 17:29:18| Startup: Initializing Authentication Schemes ...
72
-
73
- 2017/08/27 17:29:18| Startup: Initialized Authentication Scheme 'basic'
74
-
75
- 2017/08/27 17:29:18| Startup: Initialized Authentication Scheme 'digest'
76
-
77
- 2017/08/27 17:29:18| Startup: Initialized Authentication Scheme 'negotiate'
78
-
79
- 2017/08/27 17:29:18| Startup: Initialized Authentication Scheme 'ntlm'
80
-
81
- 2017/08/27 17:29:18| Startup: Initialized Authentication.
82
-
83
- 2017/08/27 17:29:18| Processing Configuration File: /etc/squid/squid.conf (depth 0)
84
-
85
- 2017/08/27 17:29:18| Processing: auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/.htpasswd
86
-
87
- 2017/08/27 17:29:18| Processing: auth_param basic children 5
88
-
89
- 2017/08/27 17:29:18| Processing: auth_param basic realm Squid Basic Authentication
90
-
91
- 2017/08/27 17:29:18| Processing: auth_param basic credentialsttl 5 hours
92
-
93
- 2017/08/27 17:29:18| Processing: acl password proxy_auth REQUIRED
94
-
95
- 2017/08/27 17:29:18| Processing: http_access allow password
96
-
97
- 2017/08/27 17:29:18| Processing: no_cache deny all
98
-
99
- 2017/08/27 17:29:18| Processing: cache_store_log none
100
-
101
- 2017/08/27 17:29:18| Processing: coredump_dir /var/spool/squid
102
-
103
- 2017/08/27 17:29:18| Processing: refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
104
-
105
- 2017/08/27 17:29:18| Processing: ipcache_size 5120
106
-
107
- 2017/08/27 17:29:18| Processing: http_port ----
108
-
109
- 2017/08/27 17:29:18| Processing: request_header_access Referer deny all
110
-
111
- 2017/08/27 17:29:18| Processing: request_header_access X-Forwarded-For deny all
112
-
113
- 2017/08/27 17:29:18| Processing: request_header_access Via deny all
114
-
115
- 2017/08/27 17:29:18| Processing: request_header_access Cache-Control deny all
116
-
117
- 2017/08/27 17:29:18| Processing: acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
118
-
119
- 2017/08/27 17:29:18| Processing: acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
120
-
121
- 2017/08/27 17:29:18| Processing: acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
122
-
123
- 2017/08/27 17:29:18| Processing: acl SSL_ports port 443
124
-
125
- 2017/08/27 17:29:18| Processing: acl Safe_ports port 80 # http
126
-
127
- 2017/08/27 17:29:18| Processing: acl Safe_ports port 21 # ftp
128
-
129
- 2017/08/27 17:29:18| Processing: acl Safe_ports port 443 # https
130
-
131
- 2017/08/27 17:29:18| Processing: acl Safe_ports port 70 # gopher
132
-
133
- 2017/08/27 17:29:18| Processing: acl Safe_ports port 210 # wais
134
-
135
- 2017/08/27 17:29:18| Processing: acl Safe_ports port 1025-65535 # unregistered ports
136
-
137
- 2017/08/27 17:29:18| Processing: acl Safe_ports port 280 # http-mgmt
138
-
139
- 2017/08/27 17:29:18| Processing: acl Safe_ports port 488 # gss-http
140
-
141
- 2017/08/27 17:29:18| Processing: acl Safe_ports port 591 # filemaker
142
-
143
- 2017/08/27 17:29:18| Processing: acl Safe_ports port 777 # multiling http
144
-
145
- 2017/08/27 17:29:18| Processing: acl CONNECT method CONNECT
146
-
147
- 2017/08/27 17:29:18| Processing: http_access deny !Safe_ports
148
-
149
- 2017/08/27 17:29:18| Processing: http_access deny CONNECT !SSL_ports
150
-
151
- 2017/08/27 17:29:18| Processing: http_access allow localhost manager
152
-
153
- 2017/08/27 17:29:18| Processing: http_access deny manager
154
-
155
- 2017/08/27 17:29:18| Processing: http_access allow localnet
156
-
157
- 2017/08/27 17:29:18| Processing: http_access allow localhost
158
-
159
- 2017/08/27 17:29:18| Processing: http_access deny all
160
-
161
- 2017/08/27 17:29:18| Processing: http_port 3128
162
-
163
- 2017/08/27 17:29:18| Processing: coredump_dir /var/spool/squid
164
-
165
- 2017/08/27 17:29:18| Processing: refresh_pattern ^ftp: 1440 20% 10080
166
-
167
- 2017/08/27 17:29:18| Processing: refresh_pattern ^gopher: 1440 0% 1440
168
-
169
- 2017/08/27 17:29:18| Processing: refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
170
-
171
- 2017/08/27 17:29:18| Processing: refresh_pattern . 0 20% 4320
172
-
173
- 2017/08/27 17:29:18| Processing: visible_hostname unknown
174
-
175
-
176
-
177
- ```

2

2017/09/01 14:24

投稿

gants
gants

スコア18

test CHANGED
File without changes
test CHANGED
@@ -13,14 +13,6 @@
13
13
  他のクラウドで通りました。
14
14
 
15
15
  今回の対接続先サーバー
16
-
17
- CentOS 7.1 64bit
18
-
19
-
20
-
21
-
22
-
23
- ```ここに言語を入力
24
16
 
25
17
  - hosts: google
26
18
 
@@ -67,34 +59,6 @@
67
59
  systemctl status squid.service -l のコマンドで確かめました。↓
68
60
 
69
61
 
70
-
71
- ```ここに言語を入力
72
-
73
- [root@ppp ~]# systemctl status squid.service -l
74
-
75
- squid.service - Squid caching proxy
76
-
77
- Loaded: loaded (/usr/lib/systemd/system/squid.service; disabled)
78
-
79
- Active: failed (Result: exit-code) since Sat 2017-08-26 17:36:12 UTC; 14min ago
80
-
81
- Process: 3746 ExecStop=/usr/sbin/squid -k shutdown -f $SQUID_CONF (code=exited, status=0/SUCCESS)
82
-
83
- Process: 5338 ExecStart=/usr/sbin/squid $SQUID_OPTS -f $SQUID_CONF (code=exited, status=1/FAILURE)
84
-
85
- Process: 5333 ExecStartPre=/usr/libexec/squid/cache_swap.sh (code=exited, status=0/SUCCESS)
86
-
87
- Main PID: 2359 (code=killed, signal=TERM)
88
-
89
- Aug 26 17:36:12 ppp systemd[1]: Starting Squid caching proxy...
90
-
91
- Aug 26 17:36:12 ppp systemd[1]: squid.service: control process exited, code=exited status=1
92
-
93
- Aug 26 17:36:12 ppp systemd[1]: Failed to start Squid caching proxy.
94
-
95
- Aug 26 17:36:12 ppp systemd[1]: Unit squid.service entered failed state.
96
-
97
- ```
98
62
 
99
63
 
100
64
 

1

修正しました

2017/08/31 18:33

投稿

gants
gants

スコア18

test CHANGED
File without changes
test CHANGED
@@ -95,3 +95,119 @@
95
95
  Aug 26 17:36:12 ppp systemd[1]: Unit squid.service entered failed state.
96
96
 
97
97
  ```
98
+
99
+
100
+
101
+
102
+
103
+ ```ここに言語を入力
104
+
105
+ [root@ppp ~]# squid -k parse
106
+
107
+ 2017/08/27 17:29:18| Startup: Initializing Authentication Schemes ...
108
+
109
+ 2017/08/27 17:29:18| Startup: Initialized Authentication Scheme 'basic'
110
+
111
+ 2017/08/27 17:29:18| Startup: Initialized Authentication Scheme 'digest'
112
+
113
+ 2017/08/27 17:29:18| Startup: Initialized Authentication Scheme 'negotiate'
114
+
115
+ 2017/08/27 17:29:18| Startup: Initialized Authentication Scheme 'ntlm'
116
+
117
+ 2017/08/27 17:29:18| Startup: Initialized Authentication.
118
+
119
+ 2017/08/27 17:29:18| Processing Configuration File: /etc/squid/squid.conf (depth 0)
120
+
121
+ 2017/08/27 17:29:18| Processing: auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/.htpasswd
122
+
123
+ 2017/08/27 17:29:18| Processing: auth_param basic children 5
124
+
125
+ 2017/08/27 17:29:18| Processing: auth_param basic realm Squid Basic Authentication
126
+
127
+ 2017/08/27 17:29:18| Processing: auth_param basic credentialsttl 5 hours
128
+
129
+ 2017/08/27 17:29:18| Processing: acl password proxy_auth REQUIRED
130
+
131
+ 2017/08/27 17:29:18| Processing: http_access allow password
132
+
133
+ 2017/08/27 17:29:18| Processing: no_cache deny all
134
+
135
+ 2017/08/27 17:29:18| Processing: cache_store_log none
136
+
137
+ 2017/08/27 17:29:18| Processing: coredump_dir /var/spool/squid
138
+
139
+ 2017/08/27 17:29:18| Processing: refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
140
+
141
+ 2017/08/27 17:29:18| Processing: ipcache_size 5120
142
+
143
+ 2017/08/27 17:29:18| Processing: http_port ----
144
+
145
+ 2017/08/27 17:29:18| Processing: request_header_access Referer deny all
146
+
147
+ 2017/08/27 17:29:18| Processing: request_header_access X-Forwarded-For deny all
148
+
149
+ 2017/08/27 17:29:18| Processing: request_header_access Via deny all
150
+
151
+ 2017/08/27 17:29:18| Processing: request_header_access Cache-Control deny all
152
+
153
+ 2017/08/27 17:29:18| Processing: acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
154
+
155
+ 2017/08/27 17:29:18| Processing: acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
156
+
157
+ 2017/08/27 17:29:18| Processing: acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
158
+
159
+ 2017/08/27 17:29:18| Processing: acl SSL_ports port 443
160
+
161
+ 2017/08/27 17:29:18| Processing: acl Safe_ports port 80 # http
162
+
163
+ 2017/08/27 17:29:18| Processing: acl Safe_ports port 21 # ftp
164
+
165
+ 2017/08/27 17:29:18| Processing: acl Safe_ports port 443 # https
166
+
167
+ 2017/08/27 17:29:18| Processing: acl Safe_ports port 70 # gopher
168
+
169
+ 2017/08/27 17:29:18| Processing: acl Safe_ports port 210 # wais
170
+
171
+ 2017/08/27 17:29:18| Processing: acl Safe_ports port 1025-65535 # unregistered ports
172
+
173
+ 2017/08/27 17:29:18| Processing: acl Safe_ports port 280 # http-mgmt
174
+
175
+ 2017/08/27 17:29:18| Processing: acl Safe_ports port 488 # gss-http
176
+
177
+ 2017/08/27 17:29:18| Processing: acl Safe_ports port 591 # filemaker
178
+
179
+ 2017/08/27 17:29:18| Processing: acl Safe_ports port 777 # multiling http
180
+
181
+ 2017/08/27 17:29:18| Processing: acl CONNECT method CONNECT
182
+
183
+ 2017/08/27 17:29:18| Processing: http_access deny !Safe_ports
184
+
185
+ 2017/08/27 17:29:18| Processing: http_access deny CONNECT !SSL_ports
186
+
187
+ 2017/08/27 17:29:18| Processing: http_access allow localhost manager
188
+
189
+ 2017/08/27 17:29:18| Processing: http_access deny manager
190
+
191
+ 2017/08/27 17:29:18| Processing: http_access allow localnet
192
+
193
+ 2017/08/27 17:29:18| Processing: http_access allow localhost
194
+
195
+ 2017/08/27 17:29:18| Processing: http_access deny all
196
+
197
+ 2017/08/27 17:29:18| Processing: http_port 3128
198
+
199
+ 2017/08/27 17:29:18| Processing: coredump_dir /var/spool/squid
200
+
201
+ 2017/08/27 17:29:18| Processing: refresh_pattern ^ftp: 1440 20% 10080
202
+
203
+ 2017/08/27 17:29:18| Processing: refresh_pattern ^gopher: 1440 0% 1440
204
+
205
+ 2017/08/27 17:29:18| Processing: refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
206
+
207
+ 2017/08/27 17:29:18| Processing: refresh_pattern . 0 20% 4320
208
+
209
+ 2017/08/27 17:29:18| Processing: visible_hostname unknown
210
+
211
+
212
+
213
+ ```