Advertisement
Izya12

Untitled

Feb 26th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.96 KB | None | 0 0
  1. TASK [clickhouse : add clickhouse user] ****************************************
  2. task path: /opt/tower/var/tower/playbooks/NOC/system_roles/clickhouse/tasks/main.yml:6
  3. Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/system/user.py
  4. <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
  5. <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  6. <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
  7. <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
  8. <10.220.21.122> SSH: ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: (-o)(IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa")
  9. <10.220.21.122> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  10. <10.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  11. <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  12. <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
  13. <10.220.21.122> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r 10.220.21.122 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ukefskzydvvqajlxxyzigufnvtrccqum; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  14. Escalation succeeded
  15. <10.220.21.122> (0, '\n{"comment": "", "shell": "/bin/false", "group": 100, "name": "clickhouse", "changed": false, "state": "present", "invocation": {"module_args": {"comment": null, "ssh_key_bits": 0, "update_password": "always", "non_unique": false, "force": false, "ssh_key_type": "rsa", "create_home": true, "password_lock": null, "ssh_key_passphrase": null, "uid": null, "home": null, "append": false, "skeleton": null, "ssh_key_comment": "ansible-generated on Node1", "group": null, "system": false, "state": "present", "hidden": null, "local": null, "shell": "/bin/false", "expires": null, "ssh_key_file": null, "groups": null, "move_home": false, "password": null, "name": "clickhouse", "seuser": null, "remove": false, "login_class": null, "generate_ssh_key": null}}, "home": "/home/clickhouse", "move_home": false, "append": false, "uid": 1003}\n', 'OpenSSH_7.9p1, OpenSSL 1.1.1d 10 Sep 2019\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.220.21.122 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 4361\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  16. ok: [Node1] => {
  17. "append": false,
  18. "changed": false,
  19. "comment": "",
  20. "group": 100,
  21. "home": "/home/clickhouse",
  22. "invocation": {
  23. "module_args": {
  24. "append": false,
  25. "comment": null,
  26. "create_home": true,
  27. "expires": null,
  28. "force": false,
  29. "generate_ssh_key": null,
  30. "group": null,
  31. "groups": null,
  32. "hidden": null,
  33. "home": null,
  34. "local": null,
  35. "login_class": null,
  36. "move_home": false,
  37. "name": "clickhouse",
  38. "non_unique": false,
  39. "password": null,
  40. "password_lock": null,
  41. "remove": false,
  42. "seuser": null,
  43. "shell": "/bin/false",
  44. "skeleton": null,
  45. "ssh_key_bits": 0,
  46. "ssh_key_comment": "ansible-generated on Node1",
  47. "ssh_key_file": null,
  48. "ssh_key_passphrase": null,
  49. "ssh_key_type": "rsa",
  50. "state": "present",
  51. "system": false,
  52. "uid": null,
  53. "update_password": "always"
  54. }
  55. },
  56. "move_home": false,
  57. "name": "clickhouse",
  58. "shell": "/bin/false",
  59. "state": "present",
  60. "uid": 1003
  61. }
  62. Read vars_file '../../vars/main.yml'
  63. Read vars_file '../../vars/{{ ansible_distribution }}.yml'
  64.  
  65. TASK [clickhouse : Create ch directories] **************************************
  66. task path: /opt/tower/var/tower/playbooks/NOC/system_roles/clickhouse/tasks/main.yml:11
  67. Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/files/file.py
  68. <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
  69. <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  70. <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
  71. <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
  72. <10.220.21.122> SSH: ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: (-o)(IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa")
  73. <10.220.21.122> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  74. <10.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  75. <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  76. <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
  77. <10.220.21.122> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r 10.220.21.122 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-valcobhyubazqszxrlndasasjvcjzugl; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  78. Escalation succeeded
  79. <10.220.21.122> (0, '\n{"group": "clickhouse", "uid": 1003, "changed": true, "owner": "clickhouse", "state": "directory", "gid": 1003, "mode": "0775", "path": "/etc/clickhouse-server", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "_original_basename": null, "path": "/etc/clickhouse-server", "owner": "clickhouse", "follow": true, "group": "clickhouse", "unsafe_writes": null, "state": "directory", "content": null, "serole": null, "selevel": null, "setype": null, "access_time": null, "access_time_format": "%Y%m%d%H%M.%S", "modification_time": null, "regexp": null, "src": null, "seuser": null, "recurse": true, "_diff_peek": null, "delimiter": null, "mode": 509, "modification_time_format": "%Y%m%d%H%M.%S", "attributes": null, "backup": null}}, "diff": {"after": {"path": "/etc/clickhouse-server"}, "before": {"path": "/etc/clickhouse-server"}}, "size": 4096}\n', 'OpenSSH_7.9p1, OpenSSL 1.1.1d 10 Sep 2019\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.220.21.122 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 4361\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  80. changed: [Node1] => (item=/etc/clickhouse-server) => {
  81. "changed": true,
  82. "diff": {
  83. "after": {
  84. "path": "/etc/clickhouse-server"
  85. },
  86. "before": {
  87. "path": "/etc/clickhouse-server"
  88. }
  89. },
  90. "gid": 1003,
  91. "group": "clickhouse",
  92. "invocation": {
  93. "module_args": {
  94. "_diff_peek": null,
  95. "_original_basename": null,
  96. "access_time": null,
  97. "access_time_format": "%Y%m%d%H%M.%S",
  98. "attributes": null,
  99. "backup": null,
  100. "content": null,
  101. "delimiter": null,
  102. "directory_mode": null,
  103. "follow": true,
  104. "force": false,
  105. "group": "clickhouse",
  106. "mode": 509,
  107. "modification_time": null,
  108. "modification_time_format": "%Y%m%d%H%M.%S",
  109. "owner": "clickhouse",
  110. "path": "/etc/clickhouse-server",
  111. "recurse": true,
  112. "regexp": null,
  113. "remote_src": null,
  114. "selevel": null,
  115. "serole": null,
  116. "setype": null,
  117. "seuser": null,
  118. "src": null,
  119. "state": "directory",
  120. "unsafe_writes": null
  121. }
  122. },
  123. "item": "/etc/clickhouse-server",
  124. "mode": "0775",
  125. "owner": "clickhouse",
  126. "path": "/etc/clickhouse-server",
  127. "size": 4096,
  128. "state": "directory",
  129. "uid": 1003
  130. }
  131. Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/files/file.py
  132. <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
  133. <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  134. <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
  135. <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
  136. <10.220.21.122> SSH: ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: (-o)(IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa")
  137. <10.220.21.122> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  138. <10.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  139. <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  140. <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
  141. <10.220.21.122> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r 10.220.21.122 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-nbqdvjyqtpznxtcpypftacufquzxnkdh; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  142. Escalation succeeded
  143. <10.220.21.122> (0, '\n{"group": "clickhouse", "uid": 1003, "changed": true, "owner": "clickhouse", "state": "directory", "gid": 1003, "mode": "0775", "path": "/var/log/clickhouse-server", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "_original_basename": null, "path": "/var/log/clickhouse-server", "owner": "clickhouse", "follow": true, "group": "clickhouse", "unsafe_writes": null, "state": "directory", "content": null, "serole": null, "selevel": null, "setype": null, "access_time": null, "access_time_format": "%Y%m%d%H%M.%S", "modification_time": null, "regexp": null, "src": null, "seuser": null, "recurse": true, "_diff_peek": null, "delimiter": null, "mode": 509, "modification_time_format": "%Y%m%d%H%M.%S", "attributes": null, "backup": null}}, "diff": {"after": {"path": "/var/log/clickhouse-server"}, "before": {"path": "/var/log/clickhouse-server"}}, "size": 4096}\n', 'OpenSSH_7.9p1, OpenSSL 1.1.1d 10 Sep 2019\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.220.21.122 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 4361\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  144. changed: [Node1] => (item=/var/log/clickhouse-server) => {
  145. "changed": true,
  146. "diff": {
  147. "after": {
  148. "path": "/var/log/clickhouse-server"
  149. },
  150. "before": {
  151. "path": "/var/log/clickhouse-server"
  152. }
  153. },
  154. "gid": 1003,
  155. "group": "clickhouse",
  156. "invocation": {
  157. "module_args": {
  158. "_diff_peek": null,
  159. "_original_basename": null,
  160. "access_time": null,
  161. "access_time_format": "%Y%m%d%H%M.%S",
  162. "attributes": null,
  163. "backup": null,
  164. "content": null,
  165. "delimiter": null,
  166. "directory_mode": null,
  167. "follow": true,
  168. "force": false,
  169. "group": "clickhouse",
  170. "mode": 509,
  171. "modification_time": null,
  172. "modification_time_format": "%Y%m%d%H%M.%S",
  173. "owner": "clickhouse",
  174. "path": "/var/log/clickhouse-server",
  175. "recurse": true,
  176. "regexp": null,
  177. "remote_src": null,
  178. "selevel": null,
  179. "serole": null,
  180. "setype": null,
  181. "seuser": null,
  182. "src": null,
  183. "state": "directory",
  184. "unsafe_writes": null
  185. }
  186. },
  187. "item": "/var/log/clickhouse-server",
  188. "mode": "0775",
  189. "owner": "clickhouse",
  190. "path": "/var/log/clickhouse-server",
  191. "size": 4096,
  192. "state": "directory",
  193. "uid": 1003
  194. }
  195. Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/files/file.py
  196. <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
  197. <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  198. <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
  199. <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
  200. <10.220.21.122> SSH: ANSIBLE_PRIVATE_KEY_FILE/private_key_file/ansible_ssh_private_key_file set: (-o)(IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa")
  201. <10.220.21.122> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  202. <10.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  203. <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  204. <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
  205. <10.220.21.122> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/opt/tower/var/tower/data/deploy_keys/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r 10.220.21.122 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-lslkeiusqyiojgpbvcvjedxxntcltith; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  206. Escalation succeeded
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement