Comments (3)
This is very odd behaviour - which I am also not able to reproduce.
I've just triggered a run on the CI system, which also tests the latest
feature of the role (https://github.com/patrickjahns/ansible-role-promtail/tree/master/molecule/latest) - and the CI runs are green:
Can you please provide more information on your environment?
What os are you running on? What ansible version is this running on? What are the target machines? Can you share a ansible run with -vvvv
?
Gauging from the error message you've shared - this seems to be more of an issue with ansible itself not correctly overriding the value when it is set via a fact. Did you search for any issues upstream that might explain the behaviour you are seeing?
from ansible-role-promtail.
Thanks for following up. The only potential upstream issue i could find was: ansible/ansible#39684
I use a debian 11.2 VM using:
ansible 2.10.8 ansible python module location = /usr/lib/python3/dist-packages/ansible executable location = /usr/bin/ansible python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
Target machines are also Debian 11.2 VMs and a few RasPi using RaspberryPi OS 11 (basedo n Debian bullseye)
Run with -vvvv to a Debian VM:
ansible-playbook 2.10.8
config file = /home/user/.ansible.cfg
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
Using /home/user/.ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /home/user/ansible/inventory/inventory.ini as it did not pass its verify_file() method
script declined parsing /home/user/ansible/inventory/inventory.ini as it did not pass its verify_file() method
auto declined parsing /home/user/ansible/inventory/inventory.ini as it did not pass its verify_file() method
yaml declined parsing /home/user/ansible/inventory/inventory.ini as it did not pass its verify_file() method
Parsed /home/user/ansible/inventory/inventory.ini inventory source with ini plugin
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python3/dist-packages/ansible/plugins/callback/default.py
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
PLAYBOOK: install_promtail.yml ******************************************************************************************************************************************************************************************************************************
Positional arguments: ./install_promtail.yml
verbosity: 4
connection: smart
timeout: 10
become_method: sudo
tags: ('all',)
inventory: ('/home/user/ansible/inventory/inventory.ini',)
forks: 5
1 plays in ./install_promtail.yml
PLAY [Install Promtail] *************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************************************************************************************************************************************
task path: /home/user/ansible/playbooks/installations/install_promtail.yml:2
Using module file /usr/lib/python3/dist-packages/ansible/modules/setup.py
Pipelining is enabled.
<192.168.1.80> ESTABLISH SSH CONNECTION FOR USER: ansible
<192.168.1.80> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/1f3664c281 192.168.1.80 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-hzbgfiajqfixetkdkjwjlnvulbotznjh ; /usr/bin/python3'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<192.168.1.80> (0, b'BECOME-SUCCESS-hzbgfiajqfixetkdkjwjlnvulbotznjh\n\n{"ansible_facts": {"ansible_system_capabilities_enforced": "False", "ansible_system_capabilities": [], "ansible_env": {"SUDO_GID": "1001", "MAIL": "/var/mail/root", "LANGUAGE": "en_GB:en", "USER": "root", "HOME": "/root", "SUDO_UID": "1001", "LOGNAME": "root", "TERM": "unknown", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LANG": "en_GB.UTF-8", "SUDO_COMMAND": "/bin/sh -c echo BECOME-SUCCESS-hzbgfiajqfixetkdkjwjlnvulbotznjh ; /usr/bin/python3", "SHELL": "/bin/bash", "SUDO_USER": "ansible", "LC_ALL": "C.UTF-8", "PWD": "/home/ansible"}, "ansible_user_id": "root", "ansible_user_uid": 0, "ansible_user_gid": 0, "ansible_user_gecos": "root", "ansible_user_dir": "/root", "ansible_user_shell": "/bin/bash", "ansible_real_user_id": 0, "ansible_effective_user_id": 0, "ansible_real_group_id": 0, "ansible_effective_group_id": 0, "ansible_system": "Linux", "ansible_kernel": "5.10.0-10-amd64", "ansible_kernel_version": "#1 SMP Debian 5.10.84-1 (2021-12-08)", "ansible_machine": "x86_64", "ansible_python_version": "3.9.2", "ansible_fqdn": "plex.dehei.io", "ansible_hostname": "plex", "ansible_nodename": "plex", "ansible_domain": "dehei.io", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_userspace_architecture": "x86_64", "ansible_machine_id": "bddd6a207fef49d39355403e91cbde94", "ansible_is_chroot": false, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz", "2", "GenuineIntel", "Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz", "3", "GenuineIntel", "Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz", "4", "GenuineIntel", "Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz", "5", "GenuineIntel", "Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz"], "ansible_processor_count": 1, "ansible_processor_cores": 6, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 6, "ansible_processor_nproc": 6, "ansible_memtotal_mb": 957, "ansible_memfree_mb": 76, "ansible_swaptotal_mb": 2044, "ansible_swapfree_mb": 1752, "ansible_memory_mb": {"real": {"total": 957, "used": 881, "free": 76}, "nocache": {"free": 515, "used": 442}, "swap": {"total": 2044, "free": 1752, "used": 292, "cached": 45}}, "ansible_bios_date": "04/01/2014", "ansible_bios_vendor": "SeaBIOS", "ansible_bios_version": "rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org", "ansible_board_asset_tag": "NA", "ansible_board_name": "NA", "ansible_board_serial": "NA", "ansible_board_vendor": "NA", "ansible_board_version": "NA", "ansible_chassis_asset_tag": "NA", "ansible_chassis_serial": "NA", "ansible_chassis_vendor": "QEMU", "ansible_chassis_version": "pc-i440fx-6.1", "ansible_form_factor": "Other", "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_product_serial": "NA", "ansible_product_uuid": "bddd6a20-7fef-49d3-9355-403e91cbde94", "ansible_product_version": "pc-i440fx-6.1", "ansible_system_vendor": "QEMU", "ansible_devices": {"sr0": {"virtual": 1, "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "uuids": [], "labels": [], "masters": []}, "vendor": "QEMU", "model": "QEMU DVD-ROM", "sas_address": null, "sas_device_handle": null, "removable": "1", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "mq-deadline", "sectors": "2097151", "sectorsize": "512", "size": "1024.00 MB", "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "holders": []}, "sda": {"virtual": 1, "links": {"ids": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0"], "uuids": [], "labels": [], "masters": []}, "vendor": "QEMU", "model": "QEMU HARDDISK", "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {"sda2": {"links": {"ids": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part2"], "uuids": [], "labels": [], "masters": []}, "start": "205524990", "sectors": "2", "sectorsize": 512, "size": "1.00 KB", "uuid": null, "holders": []}, "sda5": {"links": {"ids": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part5"], "uuids": ["4302048e-8610-4931-b210-df26da5a34c8"], "labels": [], "masters": []}, "start": "205524992", "sectors": "4188160", "sectorsize": 512, "size": "2.00 GB", "uuid": "4302048e-8610-4931-b210-df26da5a34c8", "holders": []}, "sda1": {"links": {"ids": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part1"], "uuids": ["32f67a49-14eb-4552-9073-6aea53615345"], "labels": [], "masters": []}, "start": "2048", "sectors": "205520896", "sectorsize": 512, "size": "98.00 GB", "uuid": "32f67a49-14eb-4552-9073-6aea53615345", "holders": []}}, "rotational": "1", "scheduler_mode": "none", "sectors": "209715200", "sectorsize": "512", "size": "100.00 GB", "host": "SCSI storage controller: Red Hat, Inc. Virtio SCSI", "holders": []}}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"], "sda1": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part1"], "sda5": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part5"], "sda2": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part2"], "sda": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0"]}, "uuids": {"sda1": ["32f67a49-14eb-4552-9073-6aea53615345"], "sda5": ["4302048e-8610-4931-b210-df26da5a34c8"]}, "labels": {}, "masters": {}}, "ansible_uptime_seconds": 1449622, "ansible_mounts": [{"mount": "/", "device": "/dev/sda1", "fstype": "ext4", "options": "rw,relatime,errors=remount-ro", "size_total": 103038377984, "size_available": 75331022848, "block_size": 4096, "block_total": 25155854, "block_available": 18391363, "block_used": 6764491, "inode_total": 6422528, "inode_available": 6069169, "inode_used": 353359, "uuid": "32f67a49-14eb-4552-9073-6aea53615345"}, {"mount": "/mnt/truenas", "device": "192.168.1.111:/mnt/tank/media", "fstype": "nfs4", "options": "rw,noatime,vers=4.1,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.80,local_lock=none,addr=192.168.1.111", "size_total": 31318513811456, "size_available": 16139058413568, "block_size": 131072, "block_total": 238941298, "block_available": 123131244, "block_used": 115810054, "inode_total": 1456940854, "inode_available": 1456827336, "inode_used": 113518, "uuid": "N/A"}], "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDfS90XD/ZGbfYq/apYUS+hATHVYCqInsCZgtZ+1I5GdLBlqVKHfA7t7pDX9CROSs8RAse23uc/M83RhQYvuQP4DSrzeBhaBYL/GbKCqOJqaM1ZaBWN7kojVHPt8o5qPiHVhlWwDV34KgUyUN3qyJYyfPDEtzk4l2maZ96p95pujBLeiwkYAAHjM8OH4xQGG35Y4nXPeTKnA2UQ7eIlcVNiveWPUGnTFfGW/gfWn4xY0Hja5Da99JSd9AA1En3kzehxNvW/3IGW7gpJqZLFTgzpnsxjBUZE8eHw6SVwypChwyZt/09TajdEPP26DCJ0mFi4pgz/DWwJbKfLxzCkME6X", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEfOBXuRGbjXao9xwzQEjuaduen7V/vBsluJoLdthkVhB20RPfZvTbNYTcqCC34DthkHUQT4PRQ062yapIb3W6Q=", "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIFeJky2IAiiuFtXENRXmxnsORy5kck9DQM9ULfdYeRJB", "ansible_ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ansible_distribution": "Debian", "ansible_distribution_release": "bullseye", "ansible_distribution_version": "11", "ansible_distribution_major_version": "11", "ansible_distribution_file_path": "/etc/os-release", "ansible_distribution_file_variety": "Debian", "ansible_distribution_file_parsed": true, "ansible_os_family": "Debian", "ansible_fips": false, "ansible_python": {"version": {"major": 3, "minor": 9, "micro": 2, "releaselevel": "final", "serial": 0}, "version_info": [3, 9, 2, "final", 0], "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython"}, "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "ansible_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-5.10.0-10-amd64", "root": "UUID=32f67a49-14eb-4552-9073-6aea53615345", "ro": true, "quiet": true}, "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-5.10.0-10-amd64", "root": "UUID=32f67a49-14eb-4552-9073-6aea53615345", "ro": true, "quiet": true}, "ansible_hostnqn": "", "ansible_local": {}, "ansible_lsb": {"id": "Debian", "description": "Debian GNU/Linux 11 (bullseye)", "release": "11", "codename": "bullseye", "major_release": "11"}, "ansible_date_time": {"year": "2022", "month": "01", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "02", "day": "11", "hour": "09", "minute": "45", "second": "43", "epoch": "1641890743", "date": "2022-01-11", "time": "09:45:43", "iso8601_micro": "2022-01-11T08:45:43.964327Z", "iso8601": "2022-01-11T08:45:43Z", "iso8601_basic": "20220111T094543964327", "iso8601_basic_short": "20220111T094543", "tz": "CET", "tz_offset": "+0100"}, "ansible_fibre_channel_wwn": [], "ansible_selinux": {"status": "Missing selinux Python library"}, "ansible_selinux_python_present": false, "ansible_iscsi_iqn": "", "ansible_apparmor": {"status": "enabled"}, "ansible_dns": {"domain": "dehei.io", "search": ["dehei.io."], "nameservers": ["192.168.1.90", "192.168.1.91"]}, "ansible_service_mgr": "systemd", "ansible_interfaces": ["lo", "ens18"], "ansible_ens18": {"device": "ens18", "macaddress": "f2:41:a4:0b:2f:3f", "mtu": 1500, "active": true, "module": "virtio_net", "type": "ether", "pciid": "virtio3", "speed": -1, "promisc": false, "ipv4": {"address": "192.168.1.80", "broadcast": "192.168.1.255", "netmask": "255.255.255.0", "network": "192.168.1.0"}, "ipv6": [{"address": "2a02:168:4b13:1:f041:a4ff:fe0b:2f3f", "prefix": "64", "scope": "global"}, {"address": "fe80::f041:a4ff:fe0b:2f3f", "prefix": "64", "scope": "link"}]}, "ansible_lo": {"device": "lo", "mtu": 65536, "active": true, "type": "loopback", "promisc": false, "ipv4": {"address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}]}, "ansible_default_ipv4": {"gateway": "192.168.1.1", "interface": "ens18", "address": "192.168.1.80", "broadcast": "192.168.1.255", "netmask": "255.255.255.0", "network": "192.168.1.0", "macaddress": "f2:41:a4:0b:2f:3f", "mtu": 1500, "type": "ether", "alias": "ens18"}, "ansible_default_ipv6": {"gateway": "fe80::76ac:b9ff:fe4e:8c", "interface": "ens18", "address": "2a02:168:4b13:1:f041:a4ff:fe0b:2f3f", "prefix": "64", "scope": "global", "macaddress": "f2:41:a4:0b:2f:3f", "mtu": 1500, "type": "ether"}, "ansible_all_ipv4_addresses": ["192.168.1.80"], "ansible_all_ipv6_addresses": ["2a02:168:4b13:1:f041:a4ff:fe0b:2f3f", "fe80::f041:a4ff:fe0b:2f3f"], "ansible_pkg_mgr": "apt", "gather_subset": ["all"], "module_setup": true}, "invocation": {"module_args": {"gather_subset": ["all"], "gather_timeout": 10, "filter": "*", "fact_path": "/etc/ansible/facts.d"}}}\n', b'OpenSSH_8.4p1 Debian-5, OpenSSL 1.1.1k 25 Mar 2021\r\ndebug1: Reading configuration data /home/user/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.1.80 is address\r\ndebug3: expanded UserKnownHostsFile \'~/.ssh/known_hosts\' -> \'/home/user/.ssh/known_hosts\'\r\ndebug3: expanded UserKnownHostsFile \'~/.ssh/known_hosts2\' -> \'/home/user/.ssh/known_hosts2\'\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket "/home/user/.ansible/cp/1f3664c281" does not exist\r\ndebug2: ssh_connect_direct\r\ndebug1: Connecting to 192.168.1.80 [192.168.1.80] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: identity file /home/user/.ssh/id_rsa type 0\r\ndebug1: identity file /home/user/.ssh/id_rsa-cert type -1\r\ndebug1: identity file /home/user/.ssh/id_dsa type -1\r\ndebug1: identity file /home/user/.ssh/id_dsa-cert type -1\r\ndebug1: identity file /home/user/.ssh/id_ecdsa type -1\r\ndebug1: identity file /home/user/.ssh/id_ecdsa-cert type -1\r\ndebug1: identity file /home/user/.ssh/id_ecdsa_sk type -1\r\ndebug1: identity file /home/user/.ssh/id_ecdsa_sk-cert type -1\r\ndebug1: identity file /home/user/.ssh/id_ed25519 type 3\r\ndebug1: identity file /home/user/.ssh/id_ed25519-cert type -1\r\ndebug1: identity file /home/user/.ssh/id_ed25519_sk type -1\r\ndebug1: identity file /home/user/.ssh/id_ed25519_sk-cert type -1\r\ndebug1: identity file /home/user/.ssh/id_xmss type -1\r\ndebug1: identity file /home/user/.ssh/id_xmss-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_8.4p1 Debian-5\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_8.4p1 Debian-5\r\ndebug1: match: OpenSSH_8.4p1 Debian-5 pat OpenSSH* compat 0x04000000\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: Authenticating to 192.168.1.80:22 as \'ansible\'\r\ndebug3: hostkeys_foreach: reading file "/home/user/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /home/user/.ssh/known_hosts:18\r\ndebug3: load_hostkeys: loaded 1 keys from 192.168.1.80\r\ndebug3: order_hostkeyalgs: have matching best-preference key type [email protected], using HostkeyAlgorithms verbatim\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c\r\ndebug2: host key algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],ssh-ed25519,[email protected],rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: [email protected],zlib,none\r\ndebug2: compression stoc: [email protected],zlib,none\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256\r\ndebug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected]\r\ndebug2: compression stoc: none,[email protected]\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: [email protected]\r\ndebug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: [email protected]\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:+wAlL3Plex9BIG/or8vo8NTcWJYzh/g3UweLiGLFp3I\r\ndebug3: hostkeys_foreach: reading file "/home/user/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /home/user/.ssh/known_hosts:18\r\ndebug3: load_hostkeys: loaded 1 keys from 192.168.1.80\r\ndebug1: Host \'192.168.1.80\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /home/user/.ssh/known_hosts:18\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey out after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey in after 134217728 blocks\r\ndebug1: Will attempt key: /home/user/.ssh/id_rsa RSA SHA256:IkhwANZkwBlLI6YL5Z5/uEc+rckEQS0OfPWz+jbzt6U\r\ndebug1: Will attempt key: /home/user/.ssh/id_dsa \r\ndebug1: Will attempt key: /home/user/.ssh/id_ecdsa \r\ndebug1: Will attempt key: /home/user/.ssh/id_ecdsa_sk \r\ndebug1: Will attempt key: /home/user/.ssh/id_ed25519 ED25519 SHA256:sRJaGIdG85P2dxrwn9uJcH9mRQ718t+2kR9olfBPar4\r\ndebug1: Will attempt key: /home/user/.ssh/id_ed25519_sk \r\ndebug1: Will attempt key: /home/user/.ssh/id_xmss \r\ndebug2: pubkey_prepare: done\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,[email protected],ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected]>\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,password\r\ndebug3: start over, passed a different list publickey,password\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering public key: /home/user/.ssh/id_rsa RSA SHA256:IkhwANZkwBlLI6YL5Z5/uEc+rckEQS0OfPWz+jbzt6U\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,password\r\ndebug1: Trying private key: /home/user/.ssh/id_dsa\r\ndebug3: no such identity: /home/user/.ssh/id_dsa: No such file or directory\r\ndebug1: Trying private key: /home/user/.ssh/id_ecdsa\r\ndebug3: no such identity: /home/user/.ssh/id_ecdsa: No such file or directory\r\ndebug1: Trying private key: /home/user/.ssh/id_ecdsa_sk\r\ndebug3: no such identity: /home/user/.ssh/id_ecdsa_sk: No such file or directory\r\ndebug1: Offering public key: /home/user/.ssh/id_ed25519 ED25519 SHA256:sRJaGIdG85P2dxrwn9uJcH9mRQ718t+2kR9olfBPar4\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: /home/user/.ssh/id_ed25519 ED25519 SHA256:sRJaGIdG85P2dxrwn9uJcH9mRQ718t+2kR9olfBPar4\r\ndebug3: sign_and_send_pubkey: ED25519 SHA256:sRJaGIdG85P2dxrwn9uJcH9mRQ718t+2kR9olfBPar4\r\ndebug3: sign_and_send_pubkey: signing using ssh-ed25519 SHA256:sRJaGIdG85P2dxrwn9uJcH9mRQ718t+2kR9olfBPar4\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Enabling compression at level 6.\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to 192.168.1.80 ([192.168.1.80]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver_listen: temporary control path /home/user/.ansible/cp/1f3664c281.qnZM2TdUWebzK833\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug3: fd 4 is O_NONBLOCK\r\ndebug3: fd 4 is O_NONBLOCK\r\ndebug1: channel 0: new [/home/user/.ansible/cp/1f3664c281]\r\ndebug3: muxserver_listen: mux listener channel 0 fd 4\r\ndebug2: fd 3 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IP_TOS 0x08\r\ndebug1: control_persist_detach: backgrounding master process\r\ndebug2: control_persist_detach: background process is 59071\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug1: forking to background\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: id\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\ndebug1: multiplexing control connection\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug3: fd 5 is O_NONBLOCK\r\ndebug1: channel 1: new [mux-control]\r\ndebug3: channel_post_mux_listener: new mux channel 1 fd 5\r\ndebug3: mux_master_read_cb: channel 1: hello sent\r\ndebug2: set_control_persist_exit_time: cancel scheduled exit\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4\r\ndebug2: mux_master_process_hello: channel 1 client version 4\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_master_read_cb: channel 1 packet type 0x10000004 len 4\r\ndebug2: mux_master_process_alive_check: channel 1: alive check\r\ndebug3: mux_client_request_alive: done pid = 59073\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 216\r\ndebug3: mux_master_process_new_session: got fds stdin 6, stdout 7, stderr 8\r\ndebug2: fd 6 setting O_NONBLOCK\r\ndebug2: fd 7 setting O_NONBLOCK\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug1: channel 2: new [client-session]\r\ndebug2: mux_master_process_new_session: channel_new: 2 linked to control channel 1\r\ndebug2: channel 2: send open\r\ndebug3: send packet: type 90\r\ndebug3: receive packet: type 80\r\ndebug1: client_input_global_request: rtype [email protected] want_reply 0\r\ndebug3: receive packet: type 4\r\ndebug1: Remote: /home/ansible/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding\r\ndebug3: receive packet: type 4\r\ndebug1: Remote: /home/ansible/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 2: callback start\r\ndebug2: client_session2_setup: id 2\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = C\r\ndebug2: channel 2: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug1: Sending env LC_ALL = C.UTF-8\r\ndebug2: channel 2: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug1: Sending command: /bin/sh -c \'sudo -H -S -n -u root /bin/sh -c \'"\'"\'echo BECOME-SUCCESS-hzbgfiajqfixetkdkjwjlnvulbotznjh ; /usr/bin/python3\'"\'"\' && sleep 0\'\r\ndebug2: channel 2: request exec confirm 1\r\ndebug3: send packet: type 98\r\ndebug3: mux_session_confirm: sending success reply\r\ndebug2: channel_input_open_confirmation: channel 2: callback done\r\ndebug2: channel 2: open confirm rwindow 0 rmax 32768\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: channel 2: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 2\r\ndebug2: exec request accepted on channel 2\r\ndebug2: channel 2: rcvd adjust 65536\r\ndebug2: channel 2: read<=0 rfd 6 len 0\r\ndebug2: channel 2: read failed\r\ndebug2: channel 2: chan_shutdown_read (i0 o0 sock -1 wfd 6 efd 8 [write])\r\ndebug2: channel 2: input open -> drain\r\ndebug2: channel 2: ibuf empty\r\ndebug2: channel 2: send eof\r\ndebug3: send packet: type 96\r\ndebug2: channel 2: input drain -> closed\r\ndebug2: channel 2: rcvd adjust 65536\r\ndebug2: channel 2: rcvd adjust 65536\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype exit-status reply 0\r\ndebug3: mux_exit_message: channel 2: exit message, exitval 0\r\ndebug3: receive packet: type 96\r\ndebug2: channel 2: rcvd eof\r\ndebug2: channel 2: output open -> drain\r\ndebug2: channel 2: obuf empty\r\ndebug2: channel 2: chan_shutdown_write (i3 o1 sock -1 wfd 7 efd 8 [write])\r\ndebug2: channel 2: output drain -> closed\r\ndebug3: receive packet: type 97\r\ndebug2: channel 2: rcvd close\r\ndebug3: channel 2: will not send data after close\r\ndebug2: channel 2: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: gc: notify user\r\ndebug3: mux_master_session_cleanup_cb: entering for channel 2\r\ndebug2: channel 1: rcvd close\r\ndebug2: channel 1: output open -> drain\r\ndebug2: channel 1: chan_shutdown_read (i0 o1 sock 5 wfd 5 efd -1 [closed])\r\ndebug2: channel 1: input open -> closed\r\ndebug2: channel 2: gc: user detached\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: garbage collecting\r\ndebug1: channel 2: free: client-session, nchannels 3\r\ndebug3: channel 2: status: The following connections are open:\r\n #1 mux-control (t16 nr0 i3/0 o1/16 e[closed]/0 fd 5/5/-1 sock 5 cc -1)\r\n #2 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/8 sock -1 cc -1)\r\n\r\ndebug2: channel 1: obuf empty\r\ndebug2: channel 1: chan_shutdown_write (i3 o1 sock 5 wfd 5 efd -1 [closed])\r\ndebug2: channel 1: output drain -> closed\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: gc: notify user\r\ndebug3: mux_master_control_cleanup_cb: entering for channel 1\r\ndebug2: channel 1: gc: user detached\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: garbage collecting\r\ndebug1: channel 1: free: mux-control, nchannels 2\r\ndebug3: channel 1: status: The following connections are open:\r\n #1 mux-control (t16 nr0 i3/0 o3/0 e[closed]/0 fd 5/5/-1 sock 5 cc -1)\r\n\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
ok: [192.168.1.80]
META: ran handlers
TASK [Install Promtail] *************************************************************************************************************************************************************************************************************************************
task path: /home/user/ansible/playbooks/installations/install_promtail.yml:9
statically imported: /home/user/.ansible/roles/patrickjahns.promtail/tasks/preflight.yml
statically imported: /home/user/.ansible/roles/patrickjahns.promtail/tasks/install.yml
TASK [patrickjahns.promtail : Assert usage of systemd as an init system] ************************************************************************************************************************************************************************************
task path: /home/user/.ansible/roles/patrickjahns.promtail/tasks/preflight.yml:2
ok: [192.168.1.80] => {
"changed": false,
"msg": "All assertions passed"
}
❯ ansible-playbook ./install_promtail.yml -vvvv
ansible-playbook 2.10.8
config file = /home/user/.ansible.cfg
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
Using /home/user/.ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /home/user/ansible/inventory/inventory.ini as it did not pass its verify_file() method
script declined parsing /home/user/ansible/inventory/inventory.ini as it did not pass its verify_file() method
auto declined parsing /home/user/ansible/inventory/inventory.ini as it did not pass its verify_file() method
yaml declined parsing /home/user/ansible/inventory/inventory.ini as it did not pass its verify_file() method
Parsed /home/user/ansible/inventory/inventory.ini inventory source with ini plugin
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python3/dist-packages/ansible/plugins/callback/default.py
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
PLAYBOOK: install_promtail.yml ******************************************************************************************************************************************************************************************************************************
Positional arguments: ./install_promtail.yml
verbosity: 4
connection: smart
timeout: 10
become_method: sudo
tags: ('all',)
inventory: ('/home/user/ansible/inventory/inventory.ini',)
forks: 5
1 plays in ./install_promtail.yml
PLAY [Install Promtail] *************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************************************************************************************************************************************
task path: /home/user/ansible/playbooks/installations/install_promtail.yml:2
Using module file /usr/lib/python3/dist-packages/ansible/modules/setup.py
Pipelining is enabled.
<192.168.1.80> ESTABLISH SSH CONNECTION FOR USER: ansible
<192.168.1.80> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/1f3664c281 192.168.1.80 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-mvnaoikrsclcsqsnypksiuqfxunlflhs ; /usr/bin/python3'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<192.168.1.80> (0, b'\n{"ansible_facts": {"ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "ansible_system": "Linux", "ansible_kernel": "5.10.0-10-amd64", "ansible_kernel_version": "#1 SMP Debian 5.10.84-1 (2021-12-08)", "ansible_machine": "x86_64", "ansible_python_version": "3.9.2", "ansible_fqdn": "plex.dehei.io", "ansible_hostname": "plex", "ansible_nodename": "plex", "ansible_domain": "dehei.io", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_userspace_architecture": "x86_64", "ansible_machine_id": "bddd6a207fef49d39355403e91cbde94", "ansible_iscsi_iqn": "", "ansible_distribution": "Debian", "ansible_distribution_release": "bullseye", "ansible_distribution_version": "11", "ansible_distribution_major_version": "11", "ansible_distribution_file_path": "/etc/os-release", "ansible_distribution_file_variety": "Debian", "ansible_distribution_file_parsed": true, "ansible_os_family": "Debian", "ansible_selinux": {"status": "Missing selinux Python library"}, "ansible_selinux_python_present": false, "ansible_env": {"SUDO_GID": "1001", "MAIL": "/var/mail/root", "LANGUAGE": "en_GB:en", "USER": "root", "HOME": "/root", "SUDO_UID": "1001", "LOGNAME": "root", "TERM": "unknown", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LANG": "en_GB.UTF-8", "SUDO_COMMAND": "/bin/sh -c echo BECOME-SUCCESS-mvnaoikrsclcsqsnypksiuqfxunlflhs ; /usr/bin/python3", "SHELL": "/bin/bash", "SUDO_USER": "ansible", "LC_ALL": "C.UTF-8", "PWD": "/home/ansible"}, "ansible_fips": false, "ansible_lsb": {"id": "Debian", "description": "Debian GNU/Linux 11 (bullseye)", "release": "11", "codename": "bullseye", "major_release": "11"}, "ansible_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-5.10.0-10-amd64", "root": "UUID=32f67a49-14eb-4552-9073-6aea53615345", "ro": true, "quiet": true}, "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-5.10.0-10-amd64", "root": "UUID=32f67a49-14eb-4552-9073-6aea53615345", "ro": true, "quiet": true}, "ansible_system_capabilities_enforced": "False", "ansible_system_capabilities": [], "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDfS90XD/ZGbfYq/apYUS+hATHVYCqInsCZgtZ+1I5GdLBlqVKHfA7t7pDX9CROSs8RAse23uc/M83RhQYvuQP4DSrzeBhaBYL/GbKCqOJqaM1ZaBWN7kojVHPt8o5qPiHVhlWwDV34KgUyUN3qyJYyfPDEtzk4l2maZ96p95pujBLeiwkYAAHjM8OH4xQGG35Y4nXPeTKnA2UQ7eIlcVNiveWPUGnTFfGW/gfWn4xY0Hja5Da99JSd9AA1En3kzehxNvW/3IGW7gpJqZLFTgzpnsxjBUZE8eHw6SVwypChwyZt/09TajdEPP26DCJ0mFi4pgz/DWwJbKfLxzCkME6X", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEfOBXuRGbjXao9xwzQEjuaduen7V/vBsluJoLdthkVhB20RPfZvTbNYTcqCC34DthkHUQT4PRQ062yapIb3W6Q=", "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIFeJky2IAiiuFtXENRXmxnsORy5kck9DQM9ULfdYeRJB", "ansible_ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ansible_user_id": "root", "ansible_user_uid": 0, "ansible_user_gid": 0, "ansible_user_gecos": "root", "ansible_user_dir": "/root", "ansible_user_shell": "/bin/bash", "ansible_real_user_id": 0, "ansible_effective_user_id": 0, "ansible_real_group_id": 0, "ansible_effective_group_id": 0, "ansible_python": {"version": {"major": 3, "minor": 9, "micro": 2, "releaselevel": "final", "serial": 0}, "version_info": [3, 9, 2, "final", 0], "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython"}, "ansible_is_chroot": false, "ansible_dns": {"domain": "dehei.io", "search": ["dehei.io."], "nameservers": ["192.168.1.90", "192.168.1.91"]}, "ansible_local": {}, "ansible_apparmor": {"status": "enabled"}, "ansible_date_time": {"year": "2022", "month": "01", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "02", "day": "11", "hour": "09", "minute": "46", "second": "19", "epoch": "1641890779", "date": "2022-01-11", "time": "09:46:19", "iso8601_micro": "2022-01-11T08:46:19.586545Z", "iso8601": "2022-01-11T08:46:19Z", "iso8601_basic": "20220111T094619586545", "iso8601_basic_short": "20220111T094619", "tz": "CET", "tz_offset": "+0100"}, "ansible_fibre_channel_wwn": [], "ansible_hostnqn": "", "ansible_processor": ["0", "GenuineIntel", "Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz", "2", "GenuineIntel", "Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz", "3", "GenuineIntel", "Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz", "4", "GenuineIntel", "Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz", "5", "GenuineIntel", "Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz"], "ansible_processor_count": 1, "ansible_processor_cores": 6, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 6, "ansible_processor_nproc": 6, "ansible_memtotal_mb": 957, "ansible_memfree_mb": 72, "ansible_swaptotal_mb": 2044, "ansible_swapfree_mb": 1752, "ansible_memory_mb": {"real": {"total": 957, "used": 885, "free": 72}, "nocache": {"free": 512, "used": 445}, "swap": {"total": 2044, "free": 1752, "used": 292, "cached": 45}}, "ansible_bios_date": "04/01/2014", "ansible_bios_vendor": "SeaBIOS", "ansible_bios_version": "rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org", "ansible_board_asset_tag": "NA", "ansible_board_name": "NA", "ansible_board_serial": "NA", "ansible_board_vendor": "NA", "ansible_board_version": "NA", "ansible_chassis_asset_tag": "NA", "ansible_chassis_serial": "NA", "ansible_chassis_vendor": "QEMU", "ansible_chassis_version": "pc-i440fx-6.1", "ansible_form_factor": "Other", "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_product_serial": "NA", "ansible_product_uuid": "bddd6a20-7fef-49d3-9355-403e91cbde94", "ansible_product_version": "pc-i440fx-6.1", "ansible_system_vendor": "QEMU", "ansible_devices": {"sr0": {"virtual": 1, "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "uuids": [], "labels": [], "masters": []}, "vendor": "QEMU", "model": "QEMU DVD-ROM", "sas_address": null, "sas_device_handle": null, "removable": "1", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "mq-deadline", "sectors": "2097151", "sectorsize": "512", "size": "1024.00 MB", "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "holders": []}, "sda": {"virtual": 1, "links": {"ids": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0"], "uuids": [], "labels": [], "masters": []}, "vendor": "QEMU", "model": "QEMU HARDDISK", "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {"sda2": {"links": {"ids": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part2"], "uuids": [], "labels": [], "masters": []}, "start": "205524990", "sectors": "2", "sectorsize": 512, "size": "1.00 KB", "uuid": null, "holders": []}, "sda5": {"links": {"ids": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part5"], "uuids": ["4302048e-8610-4931-b210-df26da5a34c8"], "labels": [], "masters": []}, "start": "205524992", "sectors": "4188160", "sectorsize": 512, "size": "2.00 GB", "uuid": "4302048e-8610-4931-b210-df26da5a34c8", "holders": []}, "sda1": {"links": {"ids": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part1"], "uuids": ["32f67a49-14eb-4552-9073-6aea53615345"], "labels": [], "masters": []}, "start": "2048", "sectors": "205520896", "sectorsize": 512, "size": "98.00 GB", "uuid": "32f67a49-14eb-4552-9073-6aea53615345", "holders": []}}, "rotational": "1", "scheduler_mode": "none", "sectors": "209715200", "sectorsize": "512", "size": "100.00 GB", "host": "SCSI storage controller: Red Hat, Inc. Virtio SCSI", "holders": []}}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"], "sda1": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part1"], "sda5": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part5"], "sda2": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part2"], "sda": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0"]}, "uuids": {"sda1": ["32f67a49-14eb-4552-9073-6aea53615345"], "sda5": ["4302048e-8610-4931-b210-df26da5a34c8"]}, "labels": {}, "masters": {}}, "ansible_uptime_seconds": 1449658, "ansible_mounts": [{"mount": "/", "device": "/dev/sda1", "fstype": "ext4", "options": "rw,relatime,errors=remount-ro", "size_total": 103038377984, "size_available": 75331014656, "block_size": 4096, "block_total": 25155854, "block_available": 18391361, "block_used": 6764493, "inode_total": 6422528, "inode_available": 6069169, "inode_used": 353359, "uuid": "32f67a49-14eb-4552-9073-6aea53615345"}, {"mount": "/mnt/truenas", "device": "192.168.1.111:/mnt/tank/media", "fstype": "nfs4", "options": "rw,noatime,vers=4.1,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.80,local_lock=none,addr=192.168.1.111", "size_total": 31318512893952, "size_available": 16139057496064, "block_size": 131072, "block_total": 238941291, "block_available": 123131237, "block_used": 115810054, "inode_total": 1456939070, "inode_available": 1456825552, "inode_used": 113518, "uuid": "N/A"}], "ansible_interfaces": ["lo", "ens18"], "ansible_ens18": {"device": "ens18", "macaddress": "f2:41:a4:0b:2f:3f", "mtu": 1500, "active": true, "module": "virtio_net", "type": "ether", "pciid": "virtio3", "speed": -1, "promisc": false, "ipv4": {"address": "192.168.1.80", "broadcast": "192.168.1.255", "netmask": "255.255.255.0", "network": "192.168.1.0"}, "ipv6": [{"address": "2a02:168:4b13:1:f041:a4ff:fe0b:2f3f", "prefix": "64", "scope": "global"}, {"address": "fe80::f041:a4ff:fe0b:2f3f", "prefix": "64", "scope": "link"}]}, "ansible_lo": {"device": "lo", "mtu": 65536, "active": true, "type": "loopback", "promisc": false, "ipv4": {"address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}]}, "ansible_default_ipv4": {"gateway": "192.168.1.1", "interface": "ens18", "address": "192.168.1.80", "broadcast": "192.168.1.255", "netmask": "255.255.255.0", "network": "192.168.1.0", "macaddress": "f2:41:a4:0b:2f:3f", "mtu": 1500, "type": "ether", "alias": "ens18"}, "ansible_default_ipv6": {"gateway": "fe80::76ac:b9ff:fe4e:8c", "interface": "ens18", "address": "2a02:168:4b13:1:f041:a4ff:fe0b:2f3f", "prefix": "64", "scope": "global", "macaddress": "f2:41:a4:0b:2f:3f", "mtu": 1500, "type": "ether"}, "ansible_all_ipv4_addresses": ["192.168.1.80"], "ansible_all_ipv6_addresses": ["2a02:168:4b13:1:f041:a4ff:fe0b:2f3f", "fe80::f041:a4ff:fe0b:2f3f"], "ansible_pkg_mgr": "apt", "ansible_service_mgr": "systemd", "gather_subset": ["all"], "module_setup": true}, "invocation": {"module_args": {"gather_subset": ["all"], "gather_timeout": 10, "filter": "*", "fact_path": "/etc/ansible/facts.d"}}}\n', b"OpenSSH_8.4p1 Debian-5, OpenSSL 1.1.1k 25 Mar 2021\r\ndebug1: Reading configuration data /home/user/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 192.168.1.80 is address\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/user/.ssh/known_hosts'\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/user/.ssh/known_hosts2'\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 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 = 59073\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
ok: [192.168.1.80]
META: ran handlers
TASK [Install Promtail] *************************************************************************************************************************************************************************************************************************************
task path: /home/user/ansible/playbooks/installations/install_promtail.yml:9
statically imported: /home/user/.ansible/roles/patrickjahns.promtail/tasks/preflight.yml
statically imported: /home/user/.ansible/roles/patrickjahns.promtail/tasks/install.yml
TASK [patrickjahns.promtail : Assert usage of systemd as an init system] ************************************************************************************************************************************************************************************
task path: /home/user/.ansible/roles/patrickjahns.promtail/tasks/preflight.yml:2
ok: [192.168.1.80] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [patrickjahns.promtail : Get latest release] ***********************************************************************************************************************************************************************************************************
task path: /home/user/.ansible/roles/patrickjahns.promtail/tasks/preflight.yml:8
<192.168.1.80> ESTABLISH SSH CONNECTION FOR USER: ansible
<192.168.1.80> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/1f3664c281 192.168.1.80 '/bin/sh -c '"'"'echo ~ansible && sleep 0'"'"''
<192.168.1.80> rc=0, stdout and stderr censored due to no log
<192.168.1.80> ESTABLISH SSH CONNECTION FOR USER: ansible
<192.168.1.80> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/1f3664c281 192.168.1.80 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1641890779.9300659-59104-221894501920969 `" && echo ansible-tmp-1641890779.9300659-59104-221894501920969="` echo /home/ansible/.ansible/tmp/ansible-tmp-1641890779.9300659-59104-221894501920969 `" ) && sleep 0'"'"''
<192.168.1.80> rc=0, stdout and stderr censored due to no log
Using module file /usr/lib/python3/dist-packages/ansible/modules/uri.py
Pipelining is enabled.
<192.168.1.80> ESTABLISH SSH CONNECTION FOR USER: ansible
<192.168.1.80> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/1f3664c281 192.168.1.80 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-izyezuwwxdwmalbapcaqhqcgudhmndhs ; /usr/bin/python3'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<192.168.1.80> rc=0, stdout and stderr censored due to no log
<192.168.1.80> ESTABLISH SSH CONNECTION FOR USER: ansible
<192.168.1.80> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/1f3664c281 192.168.1.80 '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1641890779.9300659-59104-221894501920969/ > /dev/null 2>&1 && sleep 0'"'"''
<192.168.1.80> rc=0, stdout and stderr censored due to no log
ok: [192.168.1.80] => {
"attempts": 1,
"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result",
"changed": false
}
TASK [patrickjahns.promtail : Set promtail version to 2.4.1] ************************************************************************************************************************************************************************************************
task path: /home/user/.ansible/roles/patrickjahns.promtail/tasks/preflight.yml:23
ok: [192.168.1.80] => {
"ansible_facts": {
"promtail_version": "2.4.1"
},
"changed": false
}
TASK [patrickjahns.promtail : Get checksum list] ************************************************************************************************************************************************************************************************************
task path: /home/user/.ansible/roles/patrickjahns.promtail/tasks/preflight.yml:29
url lookup connecting to https://github.com/grafana/loki/releases/download/vlatest/SHA256SUMS
fatal: [192.168.1.80]: FAILED! => {
"msg": "An unhandled exception occurred while running the lookup plugin 'url'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Received HTTP error for https://github.com/grafana/loki/releases/download/vlatest/SHA256SUMS : HTTP Error 404: Not Found"
}
NO MORE HOSTS LEFT ******************************************************************************************************************************************************************************************************************************************
PLAY RECAP **************************************************************************************************************************************************************************************************************************************************
192.168.1.80 : ok=4 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
the playbook:
---
- name: Install Promtail
# hosts: all:!OracleCloud
hosts: 192.168.1.80
gather_facts: true
become: true
tasks:
- name: Install Promtail
include_role:
name: patrickjahns.promtail
vars:
promtail_version: latest
promtail_loki_server_url: "http://loki.service.consul:3100"
promtail_config_positions:
filename: /etc/promtail/positions.yaml
promtail_config_scrape_configs:
- job_name: journal
journal:
max_age: 24h
labels:
job: systemd-journal
relabel_configs:
- source_labels: ['__journal__systemd_unit']
target_label: 'unit'
- source_labels: ['__journal__hostname']
target_label: 'hostname'
- job_name: system
pipeline_stages:
static_configs:
- targets:
- localhost
labels:
job: varlogs
host: "{{ ansible_hostname }}"
__path__: /var/log/*.log
from ansible-role-promtail.
Closing this for now - if the issue still is persistent, please feel free to reopen
from ansible-role-promtail.
Related Issues (20)
- Support pipeline_stages HOT 3
- run_once causes failures when not all nodes in batch get promtail
- Make LimitNOFILE in systemd service configurable HOT 5
- Unable to run the role without enabling and starting the promtail service HOT 2
- Reenable version check for default tests
- 1.19.1 no longer works: user promtail is currently used by process 546 HOT 4
- running tasks on localhost requires sudo permissions HOT 10
- Update release pipeline (before Jun 23)
- Add variable (list) for additional command line arguments/flags passed to promtail HOT 1
- promtail_config_expand_env variable is wrong by default HOT 1
- unable to parse syslog config receiver
- Automatic publishing to Ansible Galaxy is currently broken
- Support arbitrary options in the configuration file HOT 3
- [Question] Is ansible-lint being used? HOT 1
- set acl for read rights HOT 3
- Remove update_cache or make it optional HOT 3
- Cannot pull latest version HOT 3
- Ability to disable checksum check HOT 3
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-promtail.