Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TASK [clickhouse : add clickhouse user] ****************************************
- task path: /opt/tower/var/tower/playbooks/NOC/system_roles/clickhouse/tasks/main.yml:6
- Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/system/user.py
- <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
- <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
- <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
- <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
- <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")
- <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.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
- <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
- <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
- <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'"'"''
- Escalation succeeded
- <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')
- ok: [Node1] => {
- "append": false,
- "changed": false,
- "comment": "",
- "group": 100,
- "home": "/home/clickhouse",
- "invocation": {
- "module_args": {
- "append": false,
- "comment": null,
- "create_home": true,
- "expires": null,
- "force": false,
- "generate_ssh_key": null,
- "group": null,
- "groups": null,
- "hidden": null,
- "home": null,
- "local": null,
- "login_class": null,
- "move_home": false,
- "name": "clickhouse",
- "non_unique": false,
- "password": null,
- "password_lock": null,
- "remove": false,
- "seuser": null,
- "shell": "/bin/false",
- "skeleton": null,
- "ssh_key_bits": 0,
- "ssh_key_comment": "ansible-generated on Node1",
- "ssh_key_file": null,
- "ssh_key_passphrase": null,
- "ssh_key_type": "rsa",
- "state": "present",
- "system": false,
- "uid": null,
- "update_password": "always"
- }
- },
- "move_home": false,
- "name": "clickhouse",
- "shell": "/bin/false",
- "state": "present",
- "uid": 1003
- }
- Read vars_file '../../vars/main.yml'
- Read vars_file '../../vars/{{ ansible_distribution }}.yml'
- TASK [clickhouse : Create ch directories] **************************************
- task path: /opt/tower/var/tower/playbooks/NOC/system_roles/clickhouse/tasks/main.yml:11
- Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/files/file.py
- <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
- <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
- <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
- <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
- <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")
- <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.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
- <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
- <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
- <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'"'"''
- Escalation succeeded
- <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')
- changed: [Node1] => (item=/etc/clickhouse-server) => {
- "changed": true,
- "diff": {
- "after": {
- "path": "/etc/clickhouse-server"
- },
- "before": {
- "path": "/etc/clickhouse-server"
- }
- },
- "gid": 1003,
- "group": "clickhouse",
- "invocation": {
- "module_args": {
- "_diff_peek": null,
- "_original_basename": null,
- "access_time": null,
- "access_time_format": "%Y%m%d%H%M.%S",
- "attributes": null,
- "backup": null,
- "content": null,
- "delimiter": null,
- "directory_mode": null,
- "follow": true,
- "force": false,
- "group": "clickhouse",
- "mode": 509,
- "modification_time": null,
- "modification_time_format": "%Y%m%d%H%M.%S",
- "owner": "clickhouse",
- "path": "/etc/clickhouse-server",
- "recurse": true,
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": null,
- "state": "directory",
- "unsafe_writes": null
- }
- },
- "item": "/etc/clickhouse-server",
- "mode": "0775",
- "owner": "clickhouse",
- "path": "/etc/clickhouse-server",
- "size": 4096,
- "state": "directory",
- "uid": 1003
- }
- Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/files/file.py
- <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
- <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
- <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
- <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
- <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")
- <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.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
- <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
- <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
- <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'"'"''
- Escalation succeeded
- <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')
- changed: [Node1] => (item=/var/log/clickhouse-server) => {
- "changed": true,
- "diff": {
- "after": {
- "path": "/var/log/clickhouse-server"
- },
- "before": {
- "path": "/var/log/clickhouse-server"
- }
- },
- "gid": 1003,
- "group": "clickhouse",
- "invocation": {
- "module_args": {
- "_diff_peek": null,
- "_original_basename": null,
- "access_time": null,
- "access_time_format": "%Y%m%d%H%M.%S",
- "attributes": null,
- "backup": null,
- "content": null,
- "delimiter": null,
- "directory_mode": null,
- "follow": true,
- "force": false,
- "group": "clickhouse",
- "mode": 509,
- "modification_time": null,
- "modification_time_format": "%Y%m%d%H%M.%S",
- "owner": "clickhouse",
- "path": "/var/log/clickhouse-server",
- "recurse": true,
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": null,
- "state": "directory",
- "unsafe_writes": null
- }
- },
- "item": "/var/log/clickhouse-server",
- "mode": "0775",
- "owner": "clickhouse",
- "path": "/var/log/clickhouse-server",
- "size": 4096,
- "state": "directory",
- "uid": 1003
- }
- Using module file /opt/tower/lib/python2.7/site-packages/ansible/modules/files/file.py
- <10.220.21.122> ESTABLISH SSH CONNECTION FOR USER: ansible
- <10.220.21.122> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
- <10.220.21.122> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no)
- <10.220.21.122> SSH: ANSIBLE_REMOTE_PORT/remote_port/ansible_port set: (-o)(Port=22)
- <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")
- <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.220.21.122> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
- <10.220.21.122> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
- <10.220.21.122> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/ansible-ssh-%r-%h-%r)
- <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'"'"''
- Escalation succeeded
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement