Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50EB2C433E0 for ; Tue, 23 Feb 2021 19:50:07 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 919C464E12 for ; Tue, 23 Feb 2021 19:50:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 919C464E12 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:42124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEdh7-0003yt-9V for qemu-devel@archiver.kernel.org; Tue, 23 Feb 2021 14:50:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEdfi-0002gy-90 for qemu-devel@nongnu.org; Tue, 23 Feb 2021 14:48:39 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:32115) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lEdfc-0001hN-GL for qemu-devel@nongnu.org; Tue, 23 Feb 2021 14:48:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614109710; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7CPKItsr2uzgpxWbR7P+YCZsSEn8V9dgfybPC2BIY8s=; b=RAvvIEl8kVAqgRE4iHB9SO5Yd5VjgKLMqJPb20j34Mm2/td1FAdi3TJS9DCoA+J1WTyGTJ c7oVu01yux5lFU0uPAWbipPxfArY9b/Vb9g8WytdNWyIikWYzneTTH0U/6Z0epGYwohQF8 ii9B1bZ9XzQA8NZXhgjHag7iyGhF48c= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-476-j8E9MGxgOzKTLrqWwNrV9w-1; Tue, 23 Feb 2021 14:48:25 -0500 X-MC-Unique: j8E9MGxgOzKTLrqWwNrV9w-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 23EF3801965; Tue, 23 Feb 2021 19:48:24 +0000 (UTC) Received: from localhost (ovpn-114-28.rdu2.redhat.com [10.10.114.28]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8EC3F19C46; Tue, 23 Feb 2021 19:48:20 +0000 (UTC) Date: Tue, 23 Feb 2021 14:47:18 -0500 From: Cleber Rosa To: Alex =?iso-8859-1?Q?Benn=E9e?= Subject: Re: [PATCH v5 2/4] Jobs based on custom runners: build environment docs and playbook Message-ID: <20210223194718.GI987581@amachine.somewhere> References: <20210219215838.752547-1-crosa@redhat.com> <20210219215838.752547-3-crosa@redhat.com> <87im6i4znx.fsf@linaro.org> <87ft1m4yjw.fsf@linaro.org> <20210223174431.GE987581@amachine.somewhere> <87v9ai3amx.fsf@linaro.org> MIME-Version: 1.0 In-Reply-To: <87v9ai3amx.fsf@linaro.org> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=crosa@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nEsDIrWrg+hrB7l1" Content-Disposition: inline Received-SPF: pass client-ip=63.128.21.124; envelope-from=crosa@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Peter Maydell , Thomas Huth , Daniel P =?iso-8859-1?Q?=2E_Berrang=E9?= , Eduardo Habkost , Erik Skultety , Stefan Hajnoczi , Andrea Bolognani , Wainer dos Santos Moschetta , qemu-devel@nongnu.org, Willian Rampazzo , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , Beraldo Leal Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --nEsDIrWrg+hrB7l1 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 23, 2021 at 06:23:25PM +0000, Alex Benn=E9e wrote: >=20 > Cleber Rosa writes: >=20 > > On Tue, Feb 23, 2021 at 03:01:50PM +0000, Alex Benn=E9e wrote: > >>=20 > >> Alex Benn=E9e writes: > >>=20 > >> > Cleber Rosa writes: > >> > > >> >> To run basic jobs on custom runners, the environment needs to be > >> >> properly set up. The most common requirement is having the right > >> >> packages installed. > >> >> > >> > >> > > >> > So I got somewhat there with a direct command line invocation: > >> > > >> > ansible-playbook -u root -i 192.168.122.24,192.168.122.45 scripts/= ci/setup/build-environment.yml -e 'ansible_python_interpreter=3D/usr/bin/py= thon3' > >> > > >> > although for some reason a single host -i fails... > >> > > >> >> diff --git a/scripts/ci/setup/build-environment.yml b/scripts/ci/se= tup/build-environment.yml > >> >> new file mode 100644 > >> >> index 0000000000..0197e0a48b > >> >> --- /dev/null > >> >> +++ b/scripts/ci/setup/build-environment.yml > >> >> @@ -0,0 +1,76 @@ > >> >> +--- > >> >> +- name: Installation of basic packages to build QEMU > >> >> + hosts: all > >> >> + tasks: > >> >> + - name: Update apt cache > >> >> + apt: > >> >> + update_cache: yes > >> >> + when: > >> >> + - ansible_facts['distribution'] =3D=3D 'Ubuntu' > >> > > >> > So are we limiting to Ubuntu here rather than say a Debian base? > >>=20 > >> Also I'm getting: > >>=20 > >> TASK [Update apt cache] ********************************************= ***************************************************************************= ****************************** > >> fatal: [hackbox-ubuntu-2004]: FAILED! =3D> {"msg": "The conditional = check 'ansible_facts['distribution'] =3D=3D 'Ubuntu'' failed. The error was= : error while evaluating conditional (ansible_facts['distribution'] =3D=3D = 'Ubuntu'): 'dict object' has no attribute 'distribution'\n\nThe error appea= rs to have been in '/home/alex/lsrc/qemu.git/scripts/ci/setup/build-environ= ment.yml': line 5, column 7, but may\nbe elsewhere in the file depending on= the exact syntax problem.\n\nThe offending line appears to be:\n\n tasks:= \n - name: Update apt cache\n ^ here\n"} > >>=20 > >> which is odd given that machine is definitely an Ubuntu one. > >> > > > > It's defintely odd. This is what I get on a fresh machine: > > > > TASK [Update apt cache] ********************************************= ***************************************************************************= ** > > [WARNING]: Updating cache and auto-installing missing dependency: py= thon3-apt > > ok: [localhost] > > > > Could you please let me know the output of: > > > > $ ansible -m setup -u $YOUR_USERNAME -i $HOSTNAME, all | grep > > ansible_distribution >=20 > The key doesn't exist: >=20 > hackbox-ubuntu-2004 | SUCCESS =3D> { > "ansible_facts": { > "ansible_all_ipv4_addresses": [ > "192.168.122.170" > ], > "ansible_all_ipv6_addresses": [ > "fe80::5054:ff:fe54:7cfe" > ], > "ansible_apparmor": { > "status": "enabled" > }, > "ansible_architecture": "x86_64", > "ansible_bios_date": "04/01/2014", > "ansible_bios_version": "1.10.2-1ubuntu1", > "ansible_cmdline": { > "BOOT_IMAGE": "/vmlinuz-5.4.0-65-generic", > "maybe-ubiquity": true, > "ro": true, > "root": "/dev/mapper/ubuntu--vg-ubuntu--lv" > }, > "ansible_date_time": { > "date": "2021-02-23", > "day": "23", > "epoch": "1614104601", > "hour": "18", > "iso8601": "2021-02-23T18:23:21Z", > "iso8601_basic": "20210223T182321857461", > "iso8601_basic_short": "20210223T182321", > "iso8601_micro": "2021-02-23T18:23:21.857529Z", > "minute": "23", > "month": "02", > "second": "21", > "time": "18:23:21", > "tz": "UTC", > "tz_offset": "+0000", > "weekday": "Tuesday", > "weekday_number": "2", > "weeknumber": "08", > "year": "2021" > }, > "ansible_default_ipv4": { > "address": "192.168.122.170", > "alias": "enp1s0", > "broadcast": "192.168.122.255", > "gateway": "192.168.122.1", > "interface": "enp1s0", > "macaddress": "52:54:00:54:7c:fe", > "mtu": 1500, > "netmask": "255.255.255.0", > "network": "192.168.122.0", > "type": "ether" > }, > "ansible_default_ipv6": {}, > "ansible_device_links": { > "ids": { > "dm-0": [ > "dm-name-ubuntu--vg-ubuntu--lv", > "dm-uuid-LVM-filR1BfuX6Mpp9J7CP9cbVsTT2ICh7Apc9qZsFoh= nsqycocacS0Sm6HAhjTBEAkq" > ], > "sda": [ > "scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-1" > ], > "sda1": [ > "scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-1-part1" > ], > "sda2": [ > "scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-1-part2" > ], > "sda3": [ > "lvm-pv-uuid-agDdyQ-V5gQ-aaov-933l-SFAL-0rmD-SlOkYy", > "scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-1-part3" > ], > "sr0": [ > "ata-QEMU_DVD-ROM_QM00001" > ] > }, > "labels": {}, > "masters": { > "sda3": [ > "dm-0" > ] > }, > "uuids": { > "dm-0": [ > "291656fe-bd87-484c-b4a9-4453471a17e8" > ], > "sda2": [ > "45018994-9625-44ad-877a-3980bcf943a3" > ] > } > }, > "ansible_devices": { > "dm-0": { > "holders": [], > "host": "", > "links": { > "ids": [ > "dm-name-ubuntu--vg-ubuntu--lv", > "dm-uuid-LVM-filR1BfuX6Mpp9J7CP9cbVsTT2ICh7Apc9qZ= sFohnsqycocacS0Sm6HAhjTBEAkq" > ], > "labels": [], > "masters": [], > "uuids": [ > "291656fe-bd87-484c-b4a9-4453471a17e8" > ] > }, > "model": null, > "partitions": {}, > "removable": "0", > "rotational": "1", > "sas_address": null, > "sas_device_handle": null, > "scheduler_mode": "", > "sectors": "41943040", > "sectorsize": "512", > "size": "20.00 GB", > "support_discard": "4096", > "vendor": null, > "virtual": 1 > }, > "loop0": { > "holders": [], > "host": "", > "links": { > "ids": [], > "labels": [], > "masters": [], > "uuids": [] > }, > "model": null, > "partitions": {}, > "removable": "0", > "rotational": "1", > "sas_address": null, > "sas_device_handle": null, > "scheduler_mode": "mq-deadline", > "sectors": "143120", > "sectorsize": "512", > "size": "69.88 MB", > "support_discard": "4096", > "vendor": null, > "virtual": 1 > }, > "loop1": { > "holders": [], > "host": "", > "links": { > "ids": [], > "labels": [], > "masters": [], > "uuids": [] > }, > "model": null, > "partitions": {}, > "removable": "0", > "rotational": "1", > "sas_address": null, > "sas_device_handle": null, > "scheduler_mode": "mq-deadline", > "sectors": "0", > "sectorsize": "512", > "size": "0.00 Bytes", > "support_discard": "4096", > "vendor": null, > "virtual": 1 > }, > "loop2": { > "holders": [], > "host": "", > "links": { > "ids": [], > "labels": [], > "masters": [], > "uuids": [] > }, > "model": null, > "partitions": {}, > "removable": "0", > "rotational": "1", > "sas_address": null, > "sas_device_handle": null, > "scheduler_mode": "mq-deadline", > "sectors": "0", > "sectorsize": "512", > "size": "0.00 Bytes", > "support_discard": "4096", > "vendor": null, > "virtual": 1 > }, > "loop3": { > "holders": [], > "host": "", > "links": { > "ids": [], > "labels": [], > "masters": [], > "uuids": [] > }, > "model": null, > "partitions": {}, > "removable": "0", > "rotational": "1", > "sas_address": null, > "sas_device_handle": null, > "scheduler_mode": "mq-deadline", > "sectors": "113424", > "sectorsize": "512", > "size": "55.38 MB", > "support_discard": "4096", > "vendor": null, > "virtual": 1 > }, > "loop4": { > "holders": [], > "host": "", > "links": { > "ids": [], > "labels": [], > "masters": [], > "uuids": [] > }, > "model": null, > "partitions": {}, > "removable": "0", > "rotational": "1", > "sas_address": null, > "sas_device_handle": null, > "scheduler_mode": "mq-deadline", > "sectors": "63672", > "sectorsize": "512", > "size": "31.09 MB", > "support_discard": "4096", > "vendor": null, > "virtual": 1 > }, > "loop5": { > "holders": [], > "host": "", > "links": { > "ids": [], > "labels": [], > "masters": [], > "uuids": [] > }, > "model": null, > "partitions": {}, > "removable": "0", > "rotational": "1", > "sas_address": null, > "sas_device_handle": null, > "scheduler_mode": "mq-deadline", > "sectors": "142872", > "sectorsize": "512", > "size": "69.76 MB", > "support_discard": "4096", > "vendor": null, > "virtual": 1 > }, > "loop6": { > "holders": [], > "host": "", > "links": { > "ids": [], > "labels": [], > "masters": [], > "uuids": [] > }, > "model": null, > "partitions": {}, > "removable": "0", > "rotational": "1", > "sas_address": null, > "sas_device_handle": null, > "scheduler_mode": "mq-deadline", > "sectors": "113592", > "sectorsize": "512", > "size": "55.46 MB", > "support_discard": "4096", > "vendor": null, > "virtual": 1 > }, > "loop7": { > "holders": [], > "host": "", > "links": { > "ids": [], > "labels": [], > "masters": [], > "uuids": [] > }, > "model": null, > "partitions": {}, > "removable": "0", > "rotational": "1", > "sas_address": null, > "sas_device_handle": null, > "scheduler_mode": "mq-deadline", > "sectors": "63664", > "sectorsize": "512", > "size": "31.09 MB", > "support_discard": "4096", > "vendor": null, > "virtual": 1 > }, > "sda": { > "holders": [], > "host": "SCSI storage controller: Broadcom / LSI 53c895a"= , > "links": { > "ids": [ > "scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-1" > ], > "labels": [], > "masters": [], > "uuids": [] > }, > "model": "QEMU HARDDISK", > "partitions": { > "sda1": { > "holders": [], > "links": { > "ids": [ > "scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-1= -part1" > ], > "labels": [], > "masters": [], > "uuids": [] > }, > "sectors": "2048", > "sectorsize": 512, > "size": "1.00 MB", > "start": "2048", > "uuid": null > }, > "sda2": { > "holders": [], > "links": { > "ids": [ > "scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-1= -part2" > ], > "labels": [], > "masters": [], > "uuids": [ > "45018994-9625-44ad-877a-3980bcf943a3" > ] > }, > "sectors": "2097152", > "sectorsize": 512, > "size": "1.00 GB", > "start": "4096", > "uuid": "45018994-9625-44ad-877a-3980bcf943a3" > }, > "sda3": { > "holders": [ > "ubuntu--vg-ubuntu--lv" > ], > "links": { > "ids": [ > "lvm-pv-uuid-agDdyQ-V5gQ-aaov-933l-SFAL-0= rmD-SlOkYy", > "scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-1= -part3" > ], > "labels": [], > "masters": [ > "dm-0" > ], > "uuids": [] > }, > "sectors": "81782784", > "sectorsize": 512, > "size": "39.00 GB", > "start": "2101248", > "uuid": null > } > }, > "removable": "0", > "rotational": "1", > "sas_address": null, > "sas_device_handle": null, > "scheduler_mode": "mq-deadline", > "sectors": "83886080", > "sectorsize": "512", > "size": "40.00 GB", > "support_discard": "4096", > "vendor": "QEMU", > "virtual": 1 > }, > "sr0": { > "holders": [], > "host": "SATA controller: Intel Corporation 82801IR/IO/IH= (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02)", > "links": { > "ids": [ > "ata-QEMU_DVD-ROM_QM00001" > ], > "labels": [], > "masters": [], > "uuids": [] > }, > "model": "QEMU DVD-ROM", > "partitions": {}, > "removable": "1", > "rotational": "1", > "sas_address": null, > "sas_device_handle": null, > "scheduler_mode": "mq-deadline", > "sectors": "2097151", > "sectorsize": "512", > "size": "1024.00 MB", > "support_discard": "0", > "vendor": "QEMU", > "virtual": 1 > } > }, > "ansible_dns": { > "nameservers": [ > "127.0.0.53" > ], > "options": { > "edns0": true, > "trust-ad": true > } > }, > "ansible_domain": "", > "ansible_effective_group_id": 0, > "ansible_effective_user_id": 0, > "ansible_enp1s0": { > "active": true, > "device": "enp1s0", > "features": { > "esp_hw_offload": "off [fixed]", > "esp_tx_csum_hw_offload": "off [fixed]", > "fcoe_mtu": "off [fixed]", > "generic_receive_offload": "on", > "generic_segmentation_offload": "on", > "highdma": "on [fixed]", > "hw_tc_offload": "off [fixed]", > "l2_fwd_offload": "off [fixed]", > "large_receive_offload": "on", > "loopback": "off [fixed]", > "netns_local": "off [fixed]", > "ntuple_filters": "off [fixed]", > "receive_hashing": "off [fixed]", > "rx_all": "off [fixed]", > "rx_checksumming": "on [fixed]", > "rx_fcs": "off [fixed]", > "rx_gro_hw": "off [fixed]", > "rx_udp_tunnel_port_offload": "off [fixed]", > "rx_vlan_filter": "on [fixed]", > "rx_vlan_offload": "off [fixed]", > "rx_vlan_stag_filter": "off [fixed]", > "rx_vlan_stag_hw_parse": "off [fixed]", > "scatter_gather": "on", > "tcp_segmentation_offload": "on", > "tls_hw_record": "off [fixed]", > "tls_hw_rx_offload": "off [fixed]", > "tls_hw_tx_offload": "off [fixed]", > "tx_checksum_fcoe_crc": "off [fixed]", > "tx_checksum_ip_generic": "on", > "tx_checksum_ipv4": "off [fixed]", > "tx_checksum_ipv6": "off [fixed]", > "tx_checksum_sctp": "off [fixed]", > "tx_checksumming": "on", > "tx_esp_segmentation": "off [fixed]", > "tx_fcoe_segmentation": "off [fixed]", > "tx_gre_csum_segmentation": "off [fixed]", > "tx_gre_segmentation": "off [fixed]", > "tx_gso_partial": "off [fixed]", > "tx_gso_robust": "on [fixed]", > "tx_ipxip4_segmentation": "off [fixed]", > "tx_ipxip6_segmentation": "off [fixed]", > "tx_lockless": "off [fixed]", > "tx_nocache_copy": "off", > "tx_scatter_gather": "on", > "tx_scatter_gather_fraglist": "off [fixed]", > "tx_sctp_segmentation": "off [fixed]", > "tx_tcp6_segmentation": "on", > "tx_tcp_ecn_segmentation": "on", > "tx_tcp_mangleid_segmentation": "off", > "tx_tcp_segmentation": "on", > "tx_udp_segmentation": "off [fixed]", > "tx_udp_tnl_csum_segmentation": "off [fixed]", > "tx_udp_tnl_segmentation": "off [fixed]", > "tx_vlan_offload": "off [fixed]", > "tx_vlan_stag_hw_insert": "off [fixed]", > "vlan_challenged": "off [fixed]" > }, > "hw_timestamp_filters": [], > "ipv4": { > "address": "192.168.122.170", > "broadcast": "192.168.122.255", > "netmask": "255.255.255.0", > "network": "192.168.122.0" > }, > "ipv6": [ > { > "address": "fe80::5054:ff:fe54:7cfe", > "prefix": "64", > "scope": "link" > } > ], > "macaddress": "52:54:00:54:7c:fe", > "module": "virtio_net", > "mtu": 1500, > "pciid": "virtio0", > "promisc": false, > "speed": -1, > "timestamping": [ > "tx_software", > "rx_software", > "software" > ], > "type": "ether" > }, > "ansible_env": { > "DBUS_SESSION_BUS_ADDRESS": "unix:path=3D/run/user/0/bus", > "HOME": "/root", > "LANG": "en_GB.UTF-8", > "LOGNAME": "root", > "MOTD_SHOWN": "pam", > "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/s= bin:/bin:/usr/games:/usr/local/games:/snap/bin", > "PWD": "/root", > "SHELL": "/bin/bash", > "SHLVL": "0", > "SSH_AUTH_SOCK": "/tmp/ssh-xGhYmKCci1/agent.4096", > "SSH_CLIENT": "192.168.122.1 40374 22", > "SSH_CONNECTION": "192.168.122.1 40374 192.168.122.170 22", > "SSH_TTY": "/dev/pts/0", > "TERM": "screen-256color", > "USER": "root", > "XDG_RUNTIME_DIR": "/run/user/0", > "XDG_SESSION_CLASS": "user", > "XDG_SESSION_ID": "17", > "XDG_SESSION_TYPE": "tty", > "_": "/bin/sh" > }, > "ansible_fips": false, > "ansible_form_factor": "Other", > "ansible_fqdn": "ubuntu2004", > "ansible_hostname": "ubuntu2004", > "ansible_interfaces": [ > "enp1s0", > "lo" > ], > "ansible_is_chroot": false, > "ansible_iscsi_iqn": "iqn.1993-08.org.debian:01:af5bf2af245", > "ansible_kernel": "5.4.0-65-generic", > "ansible_lo": { > "active": true, > "device": "lo", > "features": { > "esp_hw_offload": "off [fixed]", > "esp_tx_csum_hw_offload": "off [fixed]", > "fcoe_mtu": "off [fixed]", > "generic_receive_offload": "on", > "generic_segmentation_offload": "on", > "highdma": "on [fixed]", > "hw_tc_offload": "off [fixed]", > "l2_fwd_offload": "off [fixed]", > "large_receive_offload": "off [fixed]", > "loopback": "on [fixed]", > "netns_local": "on [fixed]", > "ntuple_filters": "off [fixed]", > "receive_hashing": "off [fixed]", > "rx_all": "off [fixed]", > "rx_checksumming": "on [fixed]", > "rx_fcs": "off [fixed]", > "rx_gro_hw": "off [fixed]", > "rx_udp_tunnel_port_offload": "off [fixed]", > "rx_vlan_filter": "off [fixed]", > "rx_vlan_offload": "off [fixed]", > "rx_vlan_stag_filter": "off [fixed]", > "rx_vlan_stag_hw_parse": "off [fixed]", > "scatter_gather": "on", > "tcp_segmentation_offload": "on", > "tls_hw_record": "off [fixed]", > "tls_hw_rx_offload": "off [fixed]", > "tls_hw_tx_offload": "off [fixed]", > "tx_checksum_fcoe_crc": "off [fixed]", > "tx_checksum_ip_generic": "on [fixed]", > "tx_checksum_ipv4": "off [fixed]", > "tx_checksum_ipv6": "off [fixed]", > "tx_checksum_sctp": "on [fixed]", > "tx_checksumming": "on", > "tx_esp_segmentation": "off [fixed]", > "tx_fcoe_segmentation": "off [fixed]", > "tx_gre_csum_segmentation": "off [fixed]", > "tx_gre_segmentation": "off [fixed]", > "tx_gso_partial": "off [fixed]", > "tx_gso_robust": "off [fixed]", > "tx_ipxip4_segmentation": "off [fixed]", > "tx_ipxip6_segmentation": "off [fixed]", > "tx_lockless": "on [fixed]", > "tx_nocache_copy": "off [fixed]", > "tx_scatter_gather": "on [fixed]", > "tx_scatter_gather_fraglist": "on [fixed]", > "tx_sctp_segmentation": "on", > "tx_tcp6_segmentation": "on", > "tx_tcp_ecn_segmentation": "on", > "tx_tcp_mangleid_segmentation": "on", > "tx_tcp_segmentation": "on", > "tx_udp_segmentation": "off [fixed]", > "tx_udp_tnl_csum_segmentation": "off [fixed]", > "tx_udp_tnl_segmentation": "off [fixed]", > "tx_vlan_offload": "off [fixed]", > "tx_vlan_stag_hw_insert": "off [fixed]", > "vlan_challenged": "on [fixed]" > }, > "hw_timestamp_filters": [], > "ipv4": { > "address": "127.0.0.1", > "broadcast": "host", > "netmask": "255.0.0.0", > "network": "127.0.0.0" > }, > "ipv6": [ > { > "address": "::1", > "prefix": "128", > "scope": "host" > } > ], > "mtu": 65536, > "promisc": false, > "timestamping": [ > "tx_software", > "rx_software", > "software" > ], > "type": "loopback" > }, > "ansible_local": {}, > "ansible_lsb": { > "codename": "focal", > "description": "Ubuntu 20.04.2 LTS", > "id": "Ubuntu", > "major_release": "20", > "release": "20.04" > }, > "ansible_lvm": { > "lvs": { > "ubuntu-lv": { > "size_g": "20.00", > "vg": "ubuntu-vg" > } > }, > "pvs": { > "/dev/sda3": { > "free_g": "19.00", > "size_g": "39.00", > "vg": "ubuntu-vg" > } > }, > "vgs": { > "ubuntu-vg": { > "free_g": "19.00", > "num_lvs": "1", > "num_pvs": "1", > "size_g": "39.00" > } > } > }, > "ansible_machine": "x86_64", > "ansible_machine_id": "64d7747e869a45b09d0aae9a6d463611", > "ansible_memfree_mb": 2765, > "ansible_memory_mb": { > "nocache": { > "free": 3687, > "used": 248 > }, > "real": { > "free": 2765, > "total": 3935, > "used": 1170 > }, > "swap": { > "cached": 0, > "free": 3934, > "total": 3934, > "used": 0 > } > }, > "ansible_memtotal_mb": 3935, > "ansible_mounts": [ > { > "block_available": 2357334, > "block_size": 4096, > "block_total": 5127828, > "block_used": 2770494, > "device": "/dev/mapper/ubuntu--vg-ubuntu--lv", > "fstype": "ext4", > "inode_available": 1130751, > "inode_total": 1310720, > "inode_used": 179969, > "mount": "/", > "options": "rw,relatime", > "size_available": 9655640064, > "size_total": 21003583488, > "uuid": "291656fe-bd87-484c-b4a9-4453471a17e8" > }, > { > "block_available": 181527, > "block_size": 4096, > "block_total": 249830, > "block_used": 68303, > "device": "/dev/sda2", > "fstype": "ext4", > "inode_available": 65220, > "inode_total": 65536, > "inode_used": 316, > "mount": "/boot", > "options": "rw,relatime", > "size_available": 743534592, > "size_total": 1023303680, > "uuid": "45018994-9625-44ad-877a-3980bcf943a3" > }, > { > "block_available": 0, > "block_size": 131072, > "block_total": 444, > "block_used": 444, > "device": "/dev/loop3", > "fstype": "squashfs", > "inode_available": 0, > "inode_total": 10809, > "inode_used": 10809, > "mount": "/snap/core18/1944", > "options": "ro,nodev,relatime", > "size_available": 0, > "size_total": 58195968, > "uuid": "N/A" > }, > { > "block_available": 0, > "block_size": 131072, > "block_total": 249, > "block_used": 249, > "device": "/dev/loop4", > "fstype": "squashfs", > "inode_available": 0, > "inode_total": 472, > "inode_used": 472, > "mount": "/snap/snapd/10707", > "options": "ro,nodev,relatime", > "size_available": 0, > "size_total": 32636928, > "uuid": "N/A" > }, > { > "block_available": 0, > "block_size": 131072, > "block_total": 559, > "block_used": 559, > "device": "/dev/loop5", > "fstype": "squashfs", > "inode_available": 0, > "inode_total": 1578, > "inode_used": 1578, > "mount": "/snap/lxd/19032", > "options": "ro,nodev,relatime", > "size_available": 0, > "size_total": 73269248, > "uuid": "N/A" > }, > { > "block_available": 0, > "block_size": 131072, > "block_total": 444, > "block_used": 444, > "device": "/dev/loop6", > "fstype": "squashfs", > "inode_available": 0, > "inode_total": 10817, > "inode_used": 10817, > "mount": "/snap/core18/1988", > "options": "ro,nodev,relatime", > "size_available": 0, > "size_total": 58195968, > "uuid": "N/A" > }, > { > "block_available": 0, > "block_size": 131072, > "block_total": 249, > "block_used": 249, > "device": "/dev/loop7", > "fstype": "squashfs", > "inode_available": 0, > "inode_total": 470, > "inode_used": 470, > "mount": "/snap/snapd/11036", > "options": "ro,nodev,relatime", > "size_available": 0, > "size_total": 32636928, > "uuid": "N/A" > }, > { > "block_available": 0, > "block_size": 131072, > "block_total": 560, > "block_used": 560, > "device": "/dev/loop0", > "fstype": "squashfs", > "inode_available": 0, > "inode_total": 1578, > "inode_used": 1578, > "mount": "/snap/lxd/19188", > "options": "ro,nodev,relatime", > "size_available": 0, > "size_total": 73400320, > "uuid": "N/A" > } > ], > "ansible_nodename": "ubuntu2004", > "ansible_processor": [ > "0", > "GenuineIntel", > "Intel Xeon Processor (Skylake, IBRS)", > "1", > "GenuineIntel", > "Intel Xeon Processor (Skylake, IBRS)", > "2", > "GenuineIntel", > "Intel Xeon Processor (Skylake, IBRS)", > "3", > "GenuineIntel", > "Intel Xeon Processor (Skylake, IBRS)" > ], > "ansible_processor_cores": 1, > "ansible_processor_count": 4, > "ansible_processor_threads_per_core": 1, > "ansible_processor_vcpus": 4, > "ansible_product_name": "Standard PC (Q35 + ICH9, 2009)", > "ansible_product_serial": "NA", > "ansible_product_uuid": "64d7747e-869a-45b0-9d0a-ae9a6d463611", > "ansible_product_version": "pc-q35-2.11", > "ansible_python": { > "executable": "/usr/bin/python3", > "has_sslcontext": true, > "type": "cpython", > "version": { > "major": 3, > "micro": 5, > "minor": 8, > "releaselevel": "final", > "serial": 0 > }, > "version_info": [ > 3, > 8, > 5, > "final", > 0 > ] > }, > "ansible_python_version": "3.8.5", > "ansible_real_group_id": 0, > "ansible_real_user_id": 0, > "ansible_selinux": { > "status": "Missing selinux Python library" > }, > "ansible_selinux_python_present": false, > "ansible_service_mgr": "systemd", > "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBANcblFlUR= YNVXrHiZ2ozUgS6NQWkL9q6dKRvhFV75WjqBQfZs4wAAd9qYdT/fAJfT+MHdaeKgAzIgCCEH0lw= EOVJY5go1u3AOEuq6S2b9D1Tr6VufAjuVYuDbPqYCoYPMDepsgKfJIxLGcfs0SgaeJyCzKOh5pr= QrDfYPHIP3NRjAAAAFQDc3uAPrXGgg7q74VaX8yMC5evKjwAAAIEAy+8TP/tI05oSLikv6L5es6= J/iIXouuCSSlpzYT+ZcA64PaXB7X9ziRUOF79fbWkVYGmCRutjayucFHfsnICwm17vLaA5Pdc18= hKqgO64HLhX1fBf8BE3KKQFY2nqcop0ShRHsLHWoL5E8SJ0Jrjd+wqw/0SQ4EnxxdmW7mrf+KUA= AACAeWRshM/sCGP/DDifYusYkhZ85d5vgeXK/h9d4V3WhnXa6TlNPTo7Y21rX842UJ8npSf+ZVZ= b9iRJMRxGJiGgQK3GPRvdopQPFM9Y+kTf4GfLS5Bmd4RdZXF0POEpe10xc0ewg5is9NsFnJI+mJ= FcEB9FH+TtS0T7PmP+l9ADkTs=3D", > "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHA= yNTYAAAAIbmlzdHAyNTYAAABBBGumKEwBRlMPpWemu3oyScRXbm4/dH+q5iCKvhB4EsehElxsVT= QXbNjQyv5Ei38yG34N2q5DvZSus+tD8LJEZW4=3D", > "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAI= BJpeIq8MEf3YBN7NLxd/ss/iqbvH9q34eLjYP0tubup", > "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABg= QC8hyqeCETLm6kd/kG9lRy9HWIBFFRQTlsIUYdBDmb8dcA0Ye6JwcGhFbEJD5KaWKmyul0OP0dm= V4BfLdf1dzDvilh0vTfgTTklbsPpEEjlfstqLHpKDZ4wL+Gj8eF54xW00oFwSR68CWNomyR0YrT= czsN/CUb5HSejvYS48OzRP+it4iTyrlwVp8Lb7O7m/TnQFbys8uTaFFNpXFm4WrBtK0HlqVI/9L= ASXnuYqudCOgwkGlKamVnSwCO3Bt8MXFdhkgvXqoEp0sCdGZIM207jrN42hy6stXyjvn/43YbfT= AiXwJDPUhllpbuUSTRF3zzlIvHbC0JRwq0wGd+eXS5kb9RS6v5QLptn0pA8kxQYg2uqO4I+Uc0R= 7akmgPu1S85jobS7MJIpZmNj57fGmUC7ZUvYTQ97lXcWrfNzk4pwl9TG85U/tQNwN6X5TmaFuSk= qGSVRb+a86Z62//BH6lY8sOPEn+Ou883l3QBXjSkgQIjpWKy30GlUcd8Mn6nsgU0=3D", > "ansible_swapfree_mb": 3934, > "ansible_swaptotal_mb": 3934, > "ansible_system": "Linux", > "ansible_system_capabilities": [], > "ansible_system_capabilities_enforced": "False", > "ansible_system_vendor": "QEMU", > "ansible_uptime_seconds": 12500, > "ansible_user_dir": "/root", > "ansible_user_gecos": "root", > "ansible_user_gid": 0, > "ansible_user_id": "root", > "ansible_user_shell": "/bin/bash", > "ansible_user_uid": 0, > "ansible_userspace_architecture": "x86_64", > "ansible_userspace_bits": "64", > "ansible_virtualization_role": "guest", > "ansible_virtualization_type": "kvm", > "gather_subset": [ > "all" > ], > "module_setup": true > }, > "changed": false > } >=20 > Hi Alex, Thanks! I've compared this to the output I get when running "ansible" and connecting to an Ubuntu 20.04 VM, and it looks pretty much the same... *but* the distribution related fields. Thinking it could be an issue with the *ansible* code itself (maybe a bug in a given version) I then went on and tried the following on both x86_64 and aarch64: podman run --rm -ti ubuntu:20.04 /bin/sh -c 'apt update && apt -y install= ansible && ansible -c local -i 127.0.0.1, -m setup all' And the distribution keys are properly reported. So both the ansible code I'm running, and ansible shipped with Ubuntu 20.04 seem fine. The next target for testing is the exact image you're using. Ansible probes the distribution largely based on the a "/etc/*release*" like file[1], so I'd like to know how to replicate your machine. Are you using a cloud image? Installing a given profile? Is the actual image something you could share? Thanks, - Cleber. [1] - https://github.com/ansible/ansible/blob/devel/lib/ansible/module_util= s/facts/system/distribution.py --nEsDIrWrg+hrB7l1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeruW64tGuU1eD+m7ZX6NM6XyCfMFAmA1W8IACgkQZX6NM6Xy CfN8khAAwv6BDW/XUzitLI5eDlKzUsCjO269MUFjgNaqMNpJpjAagwCy5IebNuKa Uff/GGKM1fnfTmv6nWFQU1uWf3UJlmg8lO0QwhUkIGfYNnPiO7gysVmZtKJCgADu jptHAbMaCY4NY8H+/j9B6gYYeSfKznBEZxvowyxWycfN4N3AcaPD88oSM5e5vyvj MC8rF+g6AmrvHQlXF2Ec3hKEOKnk53fhbaOaO1foOqjB0MyHLLOlUHDyTfthQe0H /bWb30VAiW5gd5hPtxpo6RH1PSPf/zphj+fLOkZsmPlqWvDaBoQ91JppBuBn1t5r e1VYRSw+8XRE72smp7HgQjbXjaAg9Wj23LIs+PFNYRqFycOlej30egOY+UCxrh61 42bR+0WGNFWPQMLAG1ZDlUdCKx64odX/ilkbqNv+FMcML3SvKzrZT4MUGfnaocsq ihNkCvORtnBpuOc1TY5ZovDuCwfQD5HxH4vwp9dhu9k0ISHtcwUhZuwB2nhmtFRx bYvogxBizCJNF7UQtG11LKrD6sr32veRVAidyVTkPSWWzrd/7auXLwjOKit637TR N/NHdOCMwcuFYRfyP8qhfoAADPMr3dqja8wixQRxhnTJJn4D/MpIZlc7nxZtdgsW XtvVchiuMC740fAuKco4f3aROvVQp7Nu7gIw0c9FMU9VT2Mi9zM= =Iff4 -----END PGP SIGNATURE----- --nEsDIrWrg+hrB7l1--