Ansibles Callback plugins control most of the output you see when running the
command line programs, but can also be used to add additional output, integrate with other tools and
marshall the
events to a storage backend.
Last updated for ansible [core 2.16.4] on 2024-03-03
Description: summarizes all "resource:actions" co...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
Description: default Ansible screen output
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
PLAY [localhost] *******************************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************************
ok: [localhost]
TASK [command module | -ls /root as parameter] *************************************************************************************************************************************************
changed: [localhost] => {"changed": true, "cmd": ["ls", "/root"], "delta": "0:00:00.002110", "end": "2024-03-03 10:13:03.668576", "msg": "", "rc": 0, "start": "2024-03-03 10:13:03.666466", "stderr": "", "stderr_lines": [], "stdout": "ansi2html.sh\ncasts\ncss\nDockerfile\nindex.html\njs\nplaybook.yml\nREADME.md\nrequirements.txt\nrun.sh\nwebfonts", "stdout_lines": ["ansi2html.sh", "casts", "css", "Dockerfile", "index.html", "js", "playbook.yml", "README.md", "requirements.txt", "run.sh", "webfonts"]}
TASK [file module | delete the file /tmp/file] *************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "path": "/tmp/file", "state": "absent"}
TASK [copy module | create the file /tmp/file] *************************************************************************************************************************************************
--- before
+++ after: /tmp/file
@@ -0,0 +1,2 @@
+localhost
+2a45ed47c865
\ No newline at end of file
changed: [localhost] => {"changed": true, "checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7", "dest": "/tmp/file", "gid": 0, "group": "root", "md5sum": "8bf7d228d286a5809b9284f81b6f2b88", "mode": "0644", "owner": "root", "size": 22, "src": "/root/.ansible/tmp/ansible-tmp-1709460783.9449015-733-263890568397352/source", "state": "file", "uid": 0}
TASK [copy module | change the file /tmp/file] *************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7", "dest": "/tmp/file", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/tmp/file", "size": 22, "state": "file", "uid": 0}
TASK [file module | delete the file /tmp/file] *************************************************************************************************************************************************
--- before
+++ after
@@ -1,4 +1,4 @@
{
"path": "/tmp/file",
- "state": "file"
+ "state": "absent"
}
changed: [localhost] => {"changed": true, "path": "/tmp/file", "state": "absent"}
TASK [apt module | install htop] ***************************************************************************************************************************************************************
Suggested packages:
lm-sensors lsof strace
The following NEW packages will be installed:
htop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
changed: [localhost] => {"cache_update_time": 1709459901, "cache_updated": false, "changed": true, "stderr": "debconf: delaying package configuration, since apt-utils is not installed\n", "stderr_lines": ["debconf: delaying package configuration, since apt-utils is not installed"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.\nNeed to get 128 kB of archives.\nAfter this operation, 342 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]\nFetched 128 kB in 1s (216 kB/s)\nSelecting previously unselected package htop.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17239 files and directories currently installed.)\r\nPreparing to unpack .../htop_3.0.5-7build2_amd64.deb ...\r\nUnpacking htop (3.0.5-7build2) ...\r\nSetting up htop (3.0.5-7build2) ...\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Suggested packages:", " lm-sensors lsof strace", "The following NEW packages will be installed:", " htop", "0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.", "Need to get 128 kB of archives.", "After this operation, 342 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]", "Fetched 128 kB in 1s (216 kB/s)", "Selecting previously unselected package htop.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 17239 files and directories currently installed.)", "Preparing to unpack .../htop_3.0.5-7build2_amd64.deb ...", "Unpacking htop (3.0.5-7build2) ...", "Setting up htop (3.0.5-7build2) ..."]}
TASK [command module | remove htop to trigger warning] *****************************************************************************************************************************************
changed: [localhost] => {"changed": true, "cmd": ["apt", "remove", "htop", "--yes"], "delta": "0:00:01.551533", "end": "2024-03-03 10:13:10.654220", "msg": "", "rc": 0, "start": "2024-03-03 10:13:09.102687", "stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.", "stderr_lines": ["", "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n libnl-3-200 libnl-genl-3-200\nUse 'apt autoremove' to remove them.\nThe following packages will be REMOVED:\n htop\n0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.\nAfter this operation, 342 kB disk space will be freed.\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17253 files and directories currently installed.)\r\nRemoving htop (3.0.5-7build2) ...", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following packages were automatically installed and are no longer required:", " libnl-3-200 libnl-genl-3-200", "Use 'apt autoremove' to remove them.", "The following packages will be REMOVED:", " htop", "0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.", "After this operation, 342 kB disk space will be freed.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 17253 files and directories currently installed.)", "Removing htop (3.0.5-7build2) ..."]}
TASK [shell module | register result variable] *************************************************************************************************************************************************
changed: [localhost] => {"changed": true, "cmd": "/usr/bin/uptime", "delta": "0:00:00.004959", "end": "2024-03-03 10:13:10.827928", "msg": "", "rc": 0, "start": "2024-03-03 10:13:10.822969", "stderr": "", "stderr_lines": [], "stdout": " 10:13:10 up 35 min, 0 users, load average: 0.66, 0.65, 0.77", "stdout_lines": [" 10:13:10 up 35 min, 0 users, load average: 0.66, 0.65, 0.77"]}
TASK [debug module | print result variable] ****************************************************************************************************************************************************
ok: [localhost] => {
"result": {
"changed": true,
"cmd": "/usr/bin/uptime",
"delta": "0:00:00.004959",
"end": "2024-03-03 10:13:10.827928",
"failed": false,
"msg": "",
"rc": 0,
"start": "2024-03-03 10:13:10.822969",
"stderr": "",
"stderr_lines": [],
"stdout": " 10:13:10 up 35 min, 0 users, load average: 0.66, 0.65, 0.77",
"stdout_lines": [
" 10:13:10 up 35 min, 0 users, load average: 0.66, 0.65, 0.77"
]
}
}
TASK [debug module | print custom msg with variables] ******************************************************************************************************************************************
ok: [localhost] => {
"msg": "System localhost has uuid 03000200-0400-0500-0006-000700080009"
}
TASK [fail module | let play fail but ignore it] ***********************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "The task failed but we ignore this"}
...ignoring
TASK [assert] **********************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [pause] ***********************************************************************************************************************************************************************************
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
ok: [localhost] => {"changed": false, "delta": 1, "echo": true, "rc": 0, "start": "2024-03-03 10:13:10.930691", "stderr": "", "stdout": "Paused for 1.0 seconds", "stop": "2024-03-03 10:13:11.932876", "user_input": ""}
PLAY RECAP *************************************************************************************************************************************************************************************
localhost : ok=14 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1
Description: write playbook output to a JUnit fil...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
Description: minimal Ansible screen output
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
localhost | SUCCESS => {
"ansible_facts": {
"ansible_apparmor": {
"status": "disabled"
},
"ansible_architecture": "x86_64",
"ansible_bios_date": "12/17/2014",
"ansible_bios_vendor": "American Megatrends Inc.",
"ansible_bios_version": "P1.50",
"ansible_board_asset_tag": "NA",
"ansible_board_name": "Z97 Extreme4",
"ansible_board_serial": "M80-4C017800723",
"ansible_board_vendor": "ASRock",
"ansible_board_version": "NA",
"ansible_chassis_asset_tag": "To Be Filled By O.E.M.",
"ansible_chassis_serial": "To Be Filled By O.E.M.",
"ansible_chassis_vendor": "To Be Filled By O.E.M.",
"ansible_chassis_version": "To Be Filled By O.E.M.",
"ansible_cmdline": {
"BOOT_IMAGE": "/boot/vmlinuz-linux",
"root": "UUID=a949b443-c5da-4a95-9f11-4ae49063d139",
"rw": true
},
"ansible_date_time": {
"date": "2024-03-03",
"day": "03",
"epoch": "1709460802",
"epoch_int": "1709460802",
"hour": "10",
"iso8601": "2024-03-03T10:13:22Z",
"iso8601_basic": "20240303T101322838496",
"iso8601_basic_short": "20240303T101322",
"iso8601_micro": "2024-03-03T10:13:22.838496Z",
"minute": "13",
"month": "03",
"second": "22",
"time": "10:13:22",
"tz": "UTC",
"tz_dst": "UTC",
"tz_offset": "+0000",
"weekday": "Sunday",
"weekday_number": "0",
"weeknumber": "09",
"year": "2024"
},
"ansible_device_links": {
"ids": {},
"labels": {},
"masters": {},
"uuids": {}
},
"ansible_devices": {
"sda": {
"holders": [],
"host": "",
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"model": "Samsung SSD 840",
"partitions": {
"sda1": {
"holders": [],
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"sectors": "234431343",
"sectorsize": 512,
"size": "111.79 GB",
"start": "2048",
"uuid": null
}
},
"removable": "0",
"rotational": "0",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "mq-deadline",
"sectors": "234433391",
"sectorsize": "512",
"size": "111.79 GB",
"support_discard": "512",
"vendor": "ATA",
"virtual": 1
},
"sdb": {
"holders": [],
"host": "",
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"model": "WDC WD10EZEX-19Z",
"partitions": {
"sdb1": {
"holders": [],
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"sectors": "1953513472",
"sectorsize": 512,
"size": "931.51 GB",
"start": "2048",
"uuid": null
}
},
"removable": "0",
"rotational": "1",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "mq-deadline",
"sectors": "1953516911",
"sectorsize": "512",
"size": "931.51 GB",
"support_discard": "0",
"vendor": "ATA",
"virtual": 1
},
"sdc": {
"holders": [],
"host": "",
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"model": "WDC WD5000AAKS-0",
"partitions": {
"sdc1": {
"holders": [],
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"sectors": "204800",
"sectorsize": 512,
"size": "100.00 MB",
"start": "2048",
"uuid": null
},
"sdc2": {
"holders": [],
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"sectors": "976553984",
"sectorsize": 512,
"size": "465.66 GB",
"start": "206848",
"uuid": null
}
},
"removable": "0",
"rotational": "1",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "mq-deadline",
"sectors": "976764911",
"sectorsize": "512",
"size": "465.76 GB",
"support_discard": "0",
"vendor": "ATA",
"virtual": 1
},
"sr0": {
"holders": [],
"host": "",
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"model": "BD-RE BH10LS30",
"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": "HL-DT-ST",
"virtual": 1
}
},
"ansible_distribution": "Ubuntu",
"ansible_distribution_file_parsed": true,
"ansible_distribution_file_path": "/etc/os-release",
"ansible_distribution_file_variety": "Debian",
"ansible_distribution_major_version": "22",
"ansible_distribution_release": "jammy",
"ansible_distribution_version": "22.04",
"ansible_dns": {
"nameservers": [
"192.168.178.1"
],
"search": [
"."
]
},
"ansible_domain": "",
"ansible_effective_group_id": 0,
"ansible_effective_user_id": 0,
"ansible_env": {
"ANSIBLE_DEPRECATION_WARNINGS": "False",
"ANSIBLE_INVENTORY_UNPARSED_WARNING": "False",
"ANSIBLE_LOCALHOST_WARNING": "False",
"ANSIBLE_STDOUT_CALLBACK": "ansible.builtin.minimal",
"ASCIINEMA_REC": "1",
"DEBIAN_FRONTEND": "noninteractive",
"HOME": "/root",
"HOSTNAME": "2a45ed47c865",
"LANG": "en_US.UTF-8",
"LANGUAGE": "en_US:en",
"LC_ALL": "en_US.UTF-8",
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PWD": "/root",
"SHLVL": "1",
"TERM": "xterm",
"_": "/usr/bin/asciinema"
},
"ansible_fibre_channel_wwn": [],
"ansible_fips": false,
"ansible_form_factor": "Desktop",
"ansible_fqdn": "2a45ed47c865",
"ansible_hostname": "2a45ed47c865",
"ansible_hostnqn": "",
"ansible_is_chroot": false,
"ansible_iscsi_iqn": "",
"ansible_kernel": "6.7.7-arch1-1",
"ansible_kernel_version": "#1 SMP PREEMPT_DYNAMIC Fri, 01 Mar 2024 15:07:39 +0000",
"ansible_loadavg": {
"15m": 0.81689453125,
"1m": 1.3310546875,
"5m": 0.80322265625
},
"ansible_local": {},
"ansible_lsb": {
"codename": "jammy",
"description": "Ubuntu 22.04 LTS",
"id": "Ubuntu",
"major_release": "22",
"release": "22.04"
},
"ansible_lvm": "N/A",
"ansible_machine": "x86_64",
"ansible_memfree_mb": 8698,
"ansible_memory_mb": {
"nocache": {
"free": 12130,
"used": 3813
},
"real": {
"free": 8698,
"total": 15943,
"used": 7245
},
"swap": {
"cached": 0,
"free": 16383,
"total": 16383,
"used": 0
}
},
"ansible_memtotal_mb": 15943,
"ansible_mounts": [
{
"block_available": 137233593,
"block_size": 4096,
"block_total": 240306099,
"block_used": 103072506,
"device": "/dev/sdb1",
"fstype": "ext4",
"inode_available": 60006721,
"inode_total": 61054976,
"inode_used": 1048255,
"mount": "/tmp/output",
"options": "rw,relatime,data=ordered,bind",
"size_available": 562108796928,
"size_total": 984293781504,
"uuid": "N/A"
},
{
"block_available": 1717499,
"block_size": 4096,
"block_total": 28795744,
"block_used": 27078245,
"device": "/dev/sda1",
"fstype": "ext4",
"inode_available": 5061617,
"inode_total": 7331840,
"inode_used": 2270223,
"mount": "/etc/resolv.conf",
"options": "rw,noatime,discard,bind",
"size_available": 7034875904,
"size_total": 117947367424,
"uuid": "N/A"
},
{
"block_available": 1717499,
"block_size": 4096,
"block_total": 28795744,
"block_used": 27078245,
"device": "/dev/sda1",
"fstype": "ext4",
"inode_available": 5061617,
"inode_total": 7331840,
"inode_used": 2270223,
"mount": "/etc/hostname",
"options": "rw,noatime,discard,bind",
"size_available": 7034875904,
"size_total": 117947367424,
"uuid": "N/A"
},
{
"block_available": 1717499,
"block_size": 4096,
"block_total": 28795744,
"block_used": 27078245,
"device": "/dev/sda1",
"fstype": "ext4",
"inode_available": 5061617,
"inode_total": 7331840,
"inode_used": 2270223,
"mount": "/etc/hosts",
"options": "rw,noatime,discard,bind",
"size_available": 7034875904,
"size_total": 117947367424,
"uuid": "N/A"
}
],
"ansible_nodename": "2a45ed47c865",
"ansible_os_family": "Debian",
"ansible_pkg_mgr": "apt",
"ansible_proc_cmdline": {
"BOOT_IMAGE": "/boot/vmlinuz-linux",
"root": "UUID=a949b443-c5da-4a95-9f11-4ae49063d139",
"rw": true
},
"ansible_processor": [
"0",
"GenuineIntel",
"Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz",
"1",
"GenuineIntel",
"Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz",
"2",
"GenuineIntel",
"Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz",
"3",
"GenuineIntel",
"Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz"
],
"ansible_processor_cores": 4,
"ansible_processor_count": 1,
"ansible_processor_nproc": 4,
"ansible_processor_threads_per_core": 1,
"ansible_processor_vcpus": 4,
"ansible_product_name": "To Be Filled By O.E.M.",
"ansible_product_serial": "To Be Filled By O.E.M.",
"ansible_product_uuid": "03000200-0400-0500-0006-000700080009",
"ansible_product_version": "To Be Filled By O.E.M.",
"ansible_python": {
"executable": "/usr/bin/python3",
"has_sslcontext": true,
"type": "cpython",
"version": {
"major": 3,
"micro": 12,
"minor": 10,
"releaselevel": "final",
"serial": 0
},
"version_info": [
3,
10,
12,
"final",
0
]
},
"ansible_python_version": "3.10.12",
"ansible_real_group_id": 0,
"ansible_real_user_id": 0,
"ansible_selinux": {
"status": "disabled"
},
"ansible_selinux_python_present": true,
"ansible_service_mgr": "sysvinit",
"ansible_swapfree_mb": 16383,
"ansible_swaptotal_mb": 16383,
"ansible_system": "Linux",
"ansible_system_capabilities": "N/A",
"ansible_system_capabilities_enforced": "N/A",
"ansible_system_vendor": "To Be Filled By O.E.M.",
"ansible_uptime_seconds": 2136,
"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_tech_guest": [
"docker",
"container"
],
"ansible_virtualization_tech_host": [
"kvm",
"virtualbox"
],
"ansible_virtualization_type": "docker",
"gather_subset": [
"all"
],
"module_setup": true
},
"changed": false,
"deprecations": [],
"warnings": []
}
localhost | CHANGED | rc=0 >>
ansi2html.sh
casts
css
Dockerfile
index.html
js
playbook.yml
README.md
requirements.txt
run.sh
webfonts
localhost | SUCCESS => {
"changed": false,
"path": "/tmp/file",
"state": "absent"
}
--- before
+++ after: /tmp/file
@@ -0,0 +1,2 @@
+localhost
+2a45ed47c865
\ No newline at end of file
localhost | CHANGED => {
"changed": true,
"checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7",
"dest": "/tmp/file",
"gid": 0,
"group": "root",
"md5sum": "8bf7d228d286a5809b9284f81b6f2b88",
"mode": "0644",
"owner": "root",
"size": 22,
"src": "/root/.ansible/tmp/ansible-tmp-1709460803.5863845-1397-117391797828812/source",
"state": "file",
"uid": 0
}
localhost | SUCCESS => {
"changed": false,
"checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7",
"dest": "/tmp/file",
"gid": 0,
"group": "root",
"mode": "0644",
"owner": "root",
"path": "/tmp/file",
"size": 22,
"state": "file",
"uid": 0
}
--- before
+++ after
@@ -1,4 +1,4 @@
{
"path": "/tmp/file",
- "state": "file"
+ "state": "absent"
}
localhost | CHANGED => {
"changed": true,
"path": "/tmp/file",
"state": "absent"
}
Suggested packages:
lm-sensors lsof strace
The following NEW packages will be installed:
htop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
localhost | CHANGED => {
"cache_update_time": 1709459901,
"cache_updated": false,
"changed": true,
"stderr": "debconf: delaying package configuration, since apt-utils is not installed\n",
"stderr_lines": [
"debconf: delaying package configuration, since apt-utils is not installed"
],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.\nNeed to get 128 kB of archives.\nAfter this operation, 342 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]\nFetched 128 kB in 1s (216 kB/s)\nSelecting previously unselected package htop.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17239 files and directories currently installed.)\r\nPreparing to unpack .../htop_3.0.5-7build2_amd64.deb ...\r\nUnpacking htop (3.0.5-7build2) ...\r\nSetting up htop (3.0.5-7build2) ...\r\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"Suggested packages:",
" lm-sensors lsof strace",
"The following NEW packages will be installed:",
" htop",
"0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.",
"Need to get 128 kB of archives.",
"After this operation, 342 kB of additional disk space will be used.",
"Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]",
"Fetched 128 kB in 1s (216 kB/s)",
"Selecting previously unselected package htop.",
"(Reading database ... ",
"(Reading database ... 5%",
"(Reading database ... 10%",
"(Reading database ... 15%",
"(Reading database ... 20%",
"(Reading database ... 25%",
"(Reading database ... 30%",
"(Reading database ... 35%",
"(Reading database ... 40%",
"(Reading database ... 45%",
"(Reading database ... 50%",
"(Reading database ... 55%",
"(Reading database ... 60%",
"(Reading database ... 65%",
"(Reading database ... 70%",
"(Reading database ... 75%",
"(Reading database ... 80%",
"(Reading database ... 85%",
"(Reading database ... 90%",
"(Reading database ... 95%",
"(Reading database ... 100%",
"(Reading database ... 17239 files and directories currently installed.)",
"Preparing to unpack .../htop_3.0.5-7build2_amd64.deb ...",
"Unpacking htop (3.0.5-7build2) ...",
"Setting up htop (3.0.5-7build2) ..."
]
}
localhost | CHANGED | rc=0 >>
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libnl-3-200 libnl-genl-3-200
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
htop
0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.
After this operation, 342 kB disk space will be freed.
(Reading database ... 17253 files and directories currently installed.)
Removing htop (3.0.5-7build2) ...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
localhost | CHANGED | rc=0 >>
10:13:30 up 35 min, 0 users, load average: 1.87, 0.92, 0.86
localhost | SUCCESS => {
"result": {
"changed": true,
"cmd": "/usr/bin/uptime",
"delta": "0:00:00.003784",
"end": "2024-03-03 10:13:30.608559",
"failed": false,
"msg": "",
"rc": 0,
"start": "2024-03-03 10:13:30.604775",
"stderr": "",
"stderr_lines": [],
"stdout": " 10:13:30 up 35 min, 0 users, load average: 1.87, 0.92, 0.86",
"stdout_lines": [
" 10:13:30 up 35 min, 0 users, load average: 1.87, 0.92, 0.86"
]
}
}
localhost | SUCCESS => {
"msg": "System localhost has uuid 03000200-0400-0500-0006-000700080009"
}
localhost | FAILED! => {
"changed": false,
"msg": "The task failed but we ignore this"
}
localhost | SUCCESS => {
"changed": false,
"msg": "All assertions passed"
}
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
localhost | SUCCESS => {
"changed": false,
"delta": 1,
"echo": true,
"rc": 0,
"start": "2024-03-03 10:13:30.687610",
"stderr": "",
"stdout": "Paused for 1.0 seconds",
"stop": "2024-03-03 10:13:31.690902",
"user_input": ""
}
Description: oneline Ansible screen output
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
localhost | SUCCESS => {"ansible_facts": {"ansible_apparmor": {"status": "disabled"},"ansible_architecture": "x86_64","ansible_bios_date": "12/17/2014","ansible_bios_vendor": "American Megatrends Inc.","ansible_bios_version": "P1.50","ansible_board_asset_tag": "NA","ansible_board_name": "Z97 Extreme4","ansible_board_serial": "M80-4C017800723","ansible_board_vendor": "ASRock","ansible_board_version": "NA","ansible_chassis_asset_tag": "To Be Filled By O.E.M.","ansible_chassis_serial": "To Be Filled By O.E.M.","ansible_chassis_vendor": "To Be Filled By O.E.M.","ansible_chassis_version": "To Be Filled By O.E.M.","ansible_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-linux","root": "UUID=a949b443-c5da-4a95-9f11-4ae49063d139","rw": true},"ansible_date_time": {"date": "2024-03-03","day": "03","epoch": "1709460812","epoch_int": "1709460812","hour": "10","iso8601": "2024-03-03T10:13:32Z","iso8601_basic": "20240303T101332693938","iso8601_basic_short": "20240303T101332","iso8601_micro": "2024-03-03T10:13:32.693938Z","minute": "13","month": "03","second": "32","time": "10:13:32","tz": "UTC","tz_dst": "UTC","tz_offset": "+0000","weekday": "Sunday","weekday_number": "0","weeknumber": "09","year": "2024"},"ansible_device_links": {"ids": {},"labels": {},"masters": {},"uuids": {}},"ansible_devices": {"sda": {"holders": [],"host": "","links": {"ids": [],"labels": [],"masters": [],"uuids": []},"model": "Samsung SSD 840","partitions": {"sda1": {"holders": [],"links": {"ids": [],"labels": [],"masters": [],"uuids": []},"sectors": "234431343","sectorsize": 512,"size": "111.79 GB","start": "2048","uuid": null}},"removable": "0","rotational": "0","sas_address": null,"sas_device_handle": null,"scheduler_mode": "mq-deadline","sectors": "234433391","sectorsize": "512","size": "111.79 GB","support_discard": "512","vendor": "ATA","virtual": 1},"sdb": {"holders": [],"host": "","links": {"ids": [],"labels": [],"masters": [],"uuids": []},"model": "WDC WD10EZEX-19Z","partitions": {"sdb1": {"holders": [],"links": {"ids": [],"labels": [],"masters": [],"uuids": []},"sectors": "1953513472","sectorsize": 512,"size": "931.51 GB","start": "2048","uuid": null}},"removable": "0","rotational": "1","sas_address": null,"sas_device_handle": null,"scheduler_mode": "mq-deadline","sectors": "1953516911","sectorsize": "512","size": "931.51 GB","support_discard": "0","vendor": "ATA","virtual": 1},"sdc": {"holders": [],"host": "","links": {"ids": [],"labels": [],"masters": [],"uuids": []},"model": "WDC WD5000AAKS-0","partitions": {"sdc1": {"holders": [],"links": {"ids": [],"labels": [],"masters": [],"uuids": []},"sectors": "204800","sectorsize": 512,"size": "100.00 MB","start": "2048","uuid": null},"sdc2": {"holders": [],"links": {"ids": [],"labels": [],"masters": [],"uuids": []},"sectors": "976553984","sectorsize": 512,"size": "465.66 GB","start": "206848","uuid": null}},"removable": "0","rotational": "1","sas_address": null,"sas_device_handle": null,"scheduler_mode": "mq-deadline","sectors": "976764911","sectorsize": "512","size": "465.76 GB","support_discard": "0","vendor": "ATA","virtual": 1},"sr0": {"holders": [],"host": "","links": {"ids": [],"labels": [],"masters": [],"uuids": []},"model": "BD-RE BH10LS30","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": "HL-DT-ST","virtual": 1}},"ansible_distribution": "Ubuntu","ansible_distribution_file_parsed": true,"ansible_distribution_file_path": "/etc/os-release","ansible_distribution_file_variety": "Debian","ansible_distribution_major_version": "22","ansible_distribution_release": "jammy","ansible_distribution_version": "22.04","ansible_dns": {"nameservers": ["192.168.178.1"],"search": ["."]},"ansible_domain": "","ansible_effective_group_id": 0,"ansible_effective_user_id": 0,"ansible_env": {"ANSIBLE_DEPRECATION_WARNINGS": "False","ANSIBLE_INVENTORY_UNPARSED_WARNING": "False","ANSIBLE_LOCALHOST_WARNING": "False","ANSIBLE_STDOUT_CALLBACK": "ansible.builtin.oneline","ASCIINEMA_REC": "1","DEBIAN_FRONTEND": "noninteractive","HOME": "/root","HOSTNAME": "2a45ed47c865","LANG": "en_US.UTF-8","LANGUAGE": "en_US:en","LC_ALL": "en_US.UTF-8","PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","PWD": "/root","SHLVL": "1","TERM": "xterm","_": "/usr/bin/asciinema"},"ansible_fibre_channel_wwn": [],"ansible_fips": false,"ansible_form_factor": "Desktop","ansible_fqdn": "2a45ed47c865","ansible_hostname": "2a45ed47c865","ansible_hostnqn": "","ansible_is_chroot": false,"ansible_iscsi_iqn": "","ansible_kernel": "6.7.7-arch1-1","ansible_kernel_version": "#1 SMP PREEMPT_DYNAMIC Fri, 01 Mar 2024 15:07:39 +0000","ansible_loadavg": {"15m": 0.85595703125,"1m": 1.865234375,"5m": 0.9228515625},"ansible_local": {},"ansible_lsb": {"codename": "jammy","description": "Ubuntu 22.04 LTS","id": "Ubuntu","major_release": "22","release": "22.04"},"ansible_lvm": "N/A","ansible_machine": "x86_64","ansible_memfree_mb": 8583,"ansible_memory_mb": {"nocache": {"free": 12027,"used": 3916},"real": {"free": 8583,"total": 15943,"used": 7360},"swap": {"cached": 0,"free": 16383,"total": 16383,"used": 0}},"ansible_memtotal_mb": 15943,"ansible_mounts": [{"block_available": 137233550,"block_size": 4096,"block_total": 240306099,"block_used": 103072549,"device": "/dev/sdb1","fstype": "ext4","inode_available": 60006734,"inode_total": 61054976,"inode_used": 1048242,"mount": "/tmp/output","options": "rw,relatime,data=ordered,bind","size_available": 562108620800,"size_total": 984293781504,"uuid": "N/A"},{"block_available": 1717478,"block_size": 4096,"block_total": 28795744,"block_used": 27078266,"device": "/dev/sda1","fstype": "ext4","inode_available": 5061617,"inode_total": 7331840,"inode_used": 2270223,"mount": "/etc/resolv.conf","options": "rw,noatime,discard,bind","size_available": 7034789888,"size_total": 117947367424,"uuid": "N/A"},{"block_available": 1717478,"block_size": 4096,"block_total": 28795744,"block_used": 27078266,"device": "/dev/sda1","fstype": "ext4","inode_available": 5061617,"inode_total": 7331840,"inode_used": 2270223,"mount": "/etc/hostname","options": "rw,noatime,discard,bind","size_available": 7034789888,"size_total": 117947367424,"uuid": "N/A"},{"block_available": 1717478,"block_size": 4096,"block_total": 28795744,"block_used": 27078266,"device": "/dev/sda1","fstype": "ext4","inode_available": 5061617,"inode_total": 7331840,"inode_used": 2270223,"mount": "/etc/hosts","options": "rw,noatime,discard,bind","size_available": 7034789888,"size_total": 117947367424,"uuid": "N/A"}],"ansible_nodename": "2a45ed47c865","ansible_os_family": "Debian","ansible_pkg_mgr": "apt","ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-linux","root": "UUID=a949b443-c5da-4a95-9f11-4ae49063d139","rw": true},"ansible_processor": ["0","GenuineIntel","Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz","1","GenuineIntel","Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz","2","GenuineIntel","Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz","3","GenuineIntel","Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz"],"ansible_processor_cores": 4,"ansible_processor_count": 1,"ansible_processor_nproc": 4,"ansible_processor_threads_per_core": 1,"ansible_processor_vcpus": 4,"ansible_product_name": "To Be Filled By O.E.M.","ansible_product_serial": "To Be Filled By O.E.M.","ansible_product_uuid": "03000200-0400-0500-0006-000700080009","ansible_product_version": "To Be Filled By O.E.M.","ansible_python": {"executable": "/usr/bin/python3","has_sslcontext": true,"type": "cpython","version": {"major": 3,"micro": 12,"minor": 10,"releaselevel": "final","serial": 0},"version_info": [3,10,12,"final",0]},"ansible_python_version": "3.10.12","ansible_real_group_id": 0,"ansible_real_user_id": 0,"ansible_selinux": {"status": "disabled"},"ansible_selinux_python_present": true,"ansible_service_mgr": "sysvinit","ansible_swapfree_mb": 16383,"ansible_swaptotal_mb": 16383,"ansible_system": "Linux","ansible_system_capabilities": "N/A","ansible_system_capabilities_enforced": "N/A","ansible_system_vendor": "To Be Filled By O.E.M.","ansible_uptime_seconds": 2146,"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_tech_guest": ["docker","container"],"ansible_virtualization_tech_host": ["kvm","virtualbox"],"ansible_virtualization_type": "docker","gather_subset": ["all"],"module_setup": true},"changed": false,"deprecations": [],"warnings": []}
localhost | CHANGED | rc=0 | (stdout) ansi2html.sh\ncasts\ncss\nDockerfile\nindex.html\njs\nplaybook.yml\nREADME.md\nrequirements.txt\nrun.sh\nwebfonts
localhost | SUCCESS => {"changed": false,"path": "/tmp/file","state": "absent"}
localhost | CHANGED => {"changed": true,"checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7","dest": "/tmp/file","gid": 0,"group": "root","md5sum": "8bf7d228d286a5809b9284f81b6f2b88","mode": "0644","owner": "root","size": 22,"src": "/root/.ansible/tmp/ansible-tmp-1709460813.47068-1729-197768406914327/source","state": "file","uid": 0}
localhost | SUCCESS => {"changed": false,"checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7","dest": "/tmp/file","gid": 0,"group": "root","mode": "0644","owner": "root","path": "/tmp/file","size": 22,"state": "file","uid": 0}
localhost | CHANGED => {"changed": true,"path": "/tmp/file","state": "absent"}
localhost | CHANGED => {"cache_update_time": 1709459901,"cache_updated": false,"changed": true,"stderr": "debconf: delaying package configuration, since apt-utils is not installed\n","stderr_lines": ["debconf: delaying package configuration, since apt-utils is not installed"],"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.\nNeed to get 128 kB of archives.\nAfter this operation, 342 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]\nFetched 128 kB in 1s (213 kB/s)\nSelecting previously unselected package htop.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17239 files and directories currently installed.)\r\nPreparing to unpack .../htop_3.0.5-7build2_amd64.deb ...\r\nUnpacking htop (3.0.5-7build2) ...\r\nSetting up htop (3.0.5-7build2) ...\r\n","stdout_lines": ["Reading package lists...","Building dependency tree...","Reading state information...","Suggested packages:"," lm-sensors lsof strace","The following NEW packages will be installed:"," htop","0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.","Need to get 128 kB of archives.","After this operation, 342 kB of additional disk space will be used.","Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]","Fetched 128 kB in 1s (213 kB/s)","Selecting previously unselected package htop.","(Reading database ... ","(Reading database ... 5%","(Reading database ... 10%","(Reading database ... 15%","(Reading database ... 20%","(Reading database ... 25%","(Reading database ... 30%","(Reading database ... 35%","(Reading database ... 40%","(Reading database ... 45%","(Reading database ... 50%","(Reading database ... 55%","(Reading database ... 60%","(Reading database ... 65%","(Reading database ... 70%","(Reading database ... 75%","(Reading database ... 80%","(Reading database ... 85%","(Reading database ... 90%","(Reading database ... 95%","(Reading database ... 100%","(Reading database ... 17239 files and directories currently installed.)","Preparing to unpack .../htop_3.0.5-7build2_amd64.deb ...","Unpacking htop (3.0.5-7build2) ...","Setting up htop (3.0.5-7build2) ..."]}
localhost | CHANGED | rc=0 | (stdout) Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n libnl-3-200 libnl-genl-3-200\nUse 'apt autoremove' to remove them.\nThe following packages will be REMOVED:\n htop\n0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.\nAfter this operation, 342 kB disk space will be freed.\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17253 files and directories currently installed.)\r\nRemoving htop (3.0.5-7build2) ... (stderr) \nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.
localhost | CHANGED | rc=0 | (stdout) 10:13:40 up 35 min, 0 users, load average: 1.81, 0.94, 0.86
localhost | SUCCESS => { "changed": false, "result": { "changed": true, "cmd": "/usr/bin/uptime", "delta": "0:00:00.003857", "end": "2024-03-03 10:13:40.128339", "failed": false, "msg": "", "rc": 0, "start": "2024-03-03 10:13:40.124482", "stderr": "", "stderr_lines": [], "stdout": " 10:13:40 up 35 min, 0 users, load average: 1.81, 0.94, 0.86", "stdout_lines": [ " 10:13:40 up 35 min, 0 users, load average: 1.81, 0.94, 0.86" ] }}
localhost | SUCCESS => { "changed": false, "msg": "System localhost has uuid 03000200-0400-0500-0006-000700080009"}
localhost | FAILED! => {"changed": false,"msg": "The task failed but we ignore this"}
localhost | SUCCESS => { "changed": false, "msg": "All assertions passed"}
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
localhost | SUCCESS => {"changed": false,"delta": 1,"echo": true,"rc": 0,"start": "2024-03-03 10:13:40.204266","stderr": "","stdout": "Paused for 1.0 seconds","stop": "2024-03-03 10:13:41.206667","user_input": ""}
Description: Save host events to files
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
Description: Profiles system activity of tasks an...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
ERROR! No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.ansible.posix.plugins.callback.cgroup_perf_recap setting: control_group
Description: formatted stdout/stderr display
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
PLAY [localhost] *******************************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************************
ok: [localhost]
TASK [command module | -ls /root as parameter] *************************************************************************************************************************************************
changed: [localhost] => {
"changed": true,
"cmd": [
"ls",
"/root"
],
"delta": "0:00:00.002106",
"end": "2024-03-03 10:13:53.100841",
"rc": 0,
"start": "2024-03-03 10:13:53.098735"
}
STDOUT:
ansi2html.sh
casts
css
Dockerfile
index.html
js
playbook.yml
README.md
requirements.txt
run.sh
webfonts
TASK [file module | delete the file /tmp/file] *************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"path": "/tmp/file",
"state": "absent"
}
TASK [copy module | create the file /tmp/file] *************************************************************************************************************************************************
--- before
+++ after: /tmp/file
@@ -0,0 +1,2 @@
+localhost
+2a45ed47c865
\ No newline at end of file
changed: [localhost] => {
"changed": true,
"checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7",
"dest": "/tmp/file",
"gid": 0,
"group": "root",
"md5sum": "8bf7d228d286a5809b9284f81b6f2b88",
"mode": "0644",
"owner": "root",
"size": 22,
"src": "/root/.ansible/tmp/ansible-tmp-1709460833.3804543-2401-175622601945529/source",
"state": "file",
"uid": 0
}
TASK [copy module | change the file /tmp/file] *************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7",
"dest": "/tmp/file",
"gid": 0,
"group": "root",
"mode": "0644",
"owner": "root",
"path": "/tmp/file",
"size": 22,
"state": "file",
"uid": 0
}
TASK [file module | delete the file /tmp/file] *************************************************************************************************************************************************
--- before
+++ after
@@ -1,4 +1,4 @@
{
"path": "/tmp/file",
- "state": "file"
+ "state": "absent"
}
changed: [localhost] => {
"changed": true,
"path": "/tmp/file",
"state": "absent"
}
TASK [apt module | install htop] ***************************************************************************************************************************************************************
Suggested packages:
lm-sensors lsof strace
The following NEW packages will be installed:
htop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
changed: [localhost] => {
"cache_update_time": 1709459901,
"cache_updated": false,
"changed": true
}
STDOUT:
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
lm-sensors lsof strace
The following NEW packages will be installed:
htop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
Need to get 128 kB of archives.
After this operation, 342 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]
Fetched 128 kB in 0s (567 kB/s)
Selecting previously unselected package htop.
(Reading database ... 17239 files and directories currently installed.)
Preparing to unpack .../htop_3.0.5-7build2_amd64.deb ...
Unpacking htop (3.0.5-7build2) ...
Setting up htop (3.0.5-7build2) ...
STDERR:
debconf: delaying package configuration, since apt-utils is not installed
TASK [command module | remove htop to trigger warning] *****************************************************************************************************************************************
changed: [localhost] => {
"changed": true,
"cmd": [
"apt",
"remove",
"htop",
"--yes"
],
"delta": "0:00:01.358176",
"end": "2024-03-03 10:13:59.743972",
"rc": 0,
"start": "2024-03-03 10:13:58.385796"
}
STDOUT:
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libnl-3-200 libnl-genl-3-200
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
htop
0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.
After this operation, 342 kB disk space will be freed.
(Reading database ... 17253 files and directories currently installed.)
Removing htop (3.0.5-7build2) ...
STDERR:
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
TASK [shell module | register result variable] *************************************************************************************************************************************************
changed: [localhost] => {
"changed": true,
"cmd": "/usr/bin/uptime",
"delta": "0:00:00.003173",
"end": "2024-03-03 10:13:59.888849",
"rc": 0,
"start": "2024-03-03 10:13:59.885676"
}
STDOUT:
10:13:59 up 36 min, 0 users, load average: 2.04, 1.05, 0.90
TASK [debug module | print result variable] ****************************************************************************************************************************************************
ok: [localhost] => {
"result": {
"changed": true,
"cmd": "/usr/bin/uptime",
"delta": "0:00:00.003173",
"end": "2024-03-03 10:13:59.888849",
"failed": false,
"msg": "",
"rc": 0,
"start": "2024-03-03 10:13:59.885676",
"stderr": "",
"stderr_lines": [],
"stdout": " 10:13:59 up 36 min, 0 users, load average: 2.04, 1.05, 0.90",
"stdout_lines": [
" 10:13:59 up 36 min, 0 users, load average: 2.04, 1.05, 0.90"
]
}
}
TASK [debug module | print custom msg with variables] ******************************************************************************************************************************************
ok: [localhost] => {}
MSG:
System localhost has uuid 03000200-0400-0500-0006-000700080009
TASK [fail module | let play fail but ignore it] ***********************************************************************************************************************************************
fatal: [localhost]: FAILED! => {
"changed": false
}
MSG:
The task failed but we ignore this
...ignoring
TASK [assert] **********************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false
}
MSG:
All assertions passed
TASK [pause] ***********************************************************************************************************************************************************************************
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
ok: [localhost] => {
"changed": false,
"delta": 1,
"echo": true,
"rc": 0,
"start": "2024-03-03 10:13:59.967980",
"stop": "2024-03-03 10:14:00.970170",
"user_input": ""
}
STDOUT:
Paused for 1.0 seconds
PLAY RECAP *************************************************************************************************************************************************************************************
localhost : ok=14 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1
Description: Ansible screen output as JSON Ansible screen output as JSONL (line...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
{
"custom_stats": {},
"global_custom_stats": {},
"plays": [
{
"play": {
"duration": {
"end": "2024-03-03T10:14:10.317949Z",
"start": "2024-03-03T10:14:01.568422Z"
},
"id": "0242ac11-0002-ffe2-0d4a-000000000001",
"name": "localhost",
"path": "/root/playbook.yml:1"
},
"tasks": [
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"_ansible_verbose_override": true,
"action": "gather_facts",
"ansible_facts": {
"ansible_apparmor": {
"status": "disabled"
},
"ansible_architecture": "x86_64",
"ansible_bios_date": "12/17/2014",
"ansible_bios_vendor": "American Megatrends Inc.",
"ansible_bios_version": "P1.50",
"ansible_board_asset_tag": "NA",
"ansible_board_name": "Z97 Extreme4",
"ansible_board_serial": "M80-4C017800723",
"ansible_board_vendor": "ASRock",
"ansible_board_version": "NA",
"ansible_chassis_asset_tag": "To Be Filled By O.E.M.",
"ansible_chassis_serial": "To Be Filled By O.E.M.",
"ansible_chassis_vendor": "To Be Filled By O.E.M.",
"ansible_chassis_version": "To Be Filled By O.E.M.",
"ansible_cmdline": {
"BOOT_IMAGE": "/boot/vmlinuz-linux",
"root": "UUID=a949b443-c5da-4a95-9f11-4ae49063d139",
"rw": true
},
"ansible_date_time": {
"date": "2024-03-03",
"day": "03",
"epoch": "1709460842",
"epoch_int": "1709460842",
"hour": "10",
"iso8601": "2024-03-03T10:14:02Z",
"iso8601_basic": "20240303T101402229073",
"iso8601_basic_short": "20240303T101402",
"iso8601_micro": "2024-03-03T10:14:02.229073Z",
"minute": "14",
"month": "03",
"second": "02",
"time": "10:14:02",
"tz": "UTC",
"tz_dst": "UTC",
"tz_offset": "+0000",
"weekday": "Sunday",
"weekday_number": "0",
"weeknumber": "09",
"year": "2024"
},
"ansible_device_links": {
"ids": {},
"labels": {},
"masters": {},
"uuids": {}
},
"ansible_devices": {
"sda": {
"holders": [],
"host": "",
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"model": "Samsung SSD 840",
"partitions": {
"sda1": {
"holders": [],
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"sectors": "234431343",
"sectorsize": 512,
"size": "111.79 GB",
"start": "2048",
"uuid": null
}
},
"removable": "0",
"rotational": "0",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "mq-deadline",
"sectors": "234433391",
"sectorsize": "512",
"size": "111.79 GB",
"support_discard": "512",
"vendor": "ATA",
"virtual": 1
},
"sdb": {
"holders": [],
"host": "",
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"model": "WDC WD10EZEX-19Z",
"partitions": {
"sdb1": {
"holders": [],
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"sectors": "1953513472",
"sectorsize": 512,
"size": "931.51 GB",
"start": "2048",
"uuid": null
}
},
"removable": "0",
"rotational": "1",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "mq-deadline",
"sectors": "1953516911",
"sectorsize": "512",
"size": "931.51 GB",
"support_discard": "0",
"vendor": "ATA",
"virtual": 1
},
"sdc": {
"holders": [],
"host": "",
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"model": "WDC WD5000AAKS-0",
"partitions": {
"sdc1": {
"holders": [],
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"sectors": "204800",
"sectorsize": 512,
"size": "100.00 MB",
"start": "2048",
"uuid": null
},
"sdc2": {
"holders": [],
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"sectors": "976553984",
"sectorsize": 512,
"size": "465.66 GB",
"start": "206848",
"uuid": null
}
},
"removable": "0",
"rotational": "1",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "mq-deadline",
"sectors": "976764911",
"sectorsize": "512",
"size": "465.76 GB",
"support_discard": "0",
"vendor": "ATA",
"virtual": 1
},
"sr0": {
"holders": [],
"host": "",
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"model": "BD-RE BH10LS30",
"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": "HL-DT-ST",
"virtual": 1
}
},
"ansible_distribution": "Ubuntu",
"ansible_distribution_file_parsed": true,
"ansible_distribution_file_path": "/etc/os-release",
"ansible_distribution_file_variety": "Debian",
"ansible_distribution_major_version": "22",
"ansible_distribution_release": "jammy",
"ansible_distribution_version": "22.04",
"ansible_dns": {
"nameservers": [
"192.168.178.1"
],
"search": [
"."
]
},
"ansible_domain": "",
"ansible_effective_group_id": 0,
"ansible_effective_user_id": 0,
"ansible_env": {
"ANSIBLE_DEPRECATION_WARNINGS": "False",
"ANSIBLE_INVENTORY_UNPARSED_WARNING": "False",
"ANSIBLE_LOCALHOST_WARNING": "False",
"ANSIBLE_STDOUT_CALLBACK": "ansible.posix.json",
"ASCIINEMA_REC": "1",
"DEBIAN_FRONTEND": "noninteractive",
"HOME": "/root",
"HOSTNAME": "2a45ed47c865",
"LANG": "en_US.UTF-8",
"LANGUAGE": "en_US:en",
"LC_ALL": "en_US.UTF-8",
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PWD": "/root",
"SHLVL": "1",
"TERM": "xterm",
"_": "/usr/bin/asciinema"
},
"ansible_fibre_channel_wwn": [],
"ansible_fips": false,
"ansible_form_factor": "Desktop",
"ansible_fqdn": "2a45ed47c865",
"ansible_hostname": "2a45ed47c865",
"ansible_hostnqn": "",
"ansible_is_chroot": false,
"ansible_iscsi_iqn": "",
"ansible_kernel": "6.7.7-arch1-1",
"ansible_kernel_version": "#1 SMP PREEMPT_DYNAMIC Fri, 01 Mar 2024 15:07:39 +0000",
"ansible_loadavg": {
"15m": 0.89892578125,
"1m": 2.04443359375,
"5m": 1.04541015625
},
"ansible_local": {},
"ansible_lsb": {
"codename": "jammy",
"description": "Ubuntu 22.04 LTS",
"id": "Ubuntu",
"major_release": "22",
"release": "22.04"
},
"ansible_lvm": "N/A",
"ansible_machine": "x86_64",
"ansible_memfree_mb": 8509,
"ansible_memory_mb": {
"nocache": {
"free": 11960,
"used": 3983
},
"real": {
"free": 8509,
"total": 15943,
"used": 7434
},
"swap": {
"cached": 0,
"free": 16383,
"total": 16383,
"used": 0
}
},
"ansible_memtotal_mb": 15943,
"ansible_mounts": [
{
"block_available": 137233293,
"block_size": 4096,
"block_total": 240306099,
"block_used": 103072806,
"device": "/dev/sdb1",
"fstype": "ext4",
"inode_available": 60006711,
"inode_total": 61054976,
"inode_used": 1048265,
"mount": "/tmp/output",
"options": "rw,relatime,data=ordered,bind",
"size_available": 562107568128,
"size_total": 984293781504,
"uuid": "N/A"
},
{
"block_available": 1717460,
"block_size": 4096,
"block_total": 28795744,
"block_used": 27078284,
"device": "/dev/sda1",
"fstype": "ext4",
"inode_available": 5061615,
"inode_total": 7331840,
"inode_used": 2270225,
"mount": "/etc/resolv.conf",
"options": "rw,noatime,discard,bind",
"size_available": 7034716160,
"size_total": 117947367424,
"uuid": "N/A"
},
{
"block_available": 1717460,
"block_size": 4096,
"block_total": 28795744,
"block_used": 27078284,
"device": "/dev/sda1",
"fstype": "ext4",
"inode_available": 5061615,
"inode_total": 7331840,
"inode_used": 2270225,
"mount": "/etc/hostname",
"options": "rw,noatime,discard,bind",
"size_available": 7034716160,
"size_total": 117947367424,
"uuid": "N/A"
},
{
"block_available": 1717460,
"block_size": 4096,
"block_total": 28795744,
"block_used": 27078284,
"device": "/dev/sda1",
"fstype": "ext4",
"inode_available": 5061615,
"inode_total": 7331840,
"inode_used": 2270225,
"mount": "/etc/hosts",
"options": "rw,noatime,discard,bind",
"size_available": 7034716160,
"size_total": 117947367424,
"uuid": "N/A"
}
],
"ansible_nodename": "2a45ed47c865",
"ansible_os_family": "Debian",
"ansible_pkg_mgr": "apt",
"ansible_proc_cmdline": {
"BOOT_IMAGE": "/boot/vmlinuz-linux",
"root": "UUID=a949b443-c5da-4a95-9f11-4ae49063d139",
"rw": true
},
"ansible_processor": [
"0",
"GenuineIntel",
"Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz",
"1",
"GenuineIntel",
"Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz",
"2",
"GenuineIntel",
"Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz",
"3",
"GenuineIntel",
"Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz"
],
"ansible_processor_cores": 4,
"ansible_processor_count": 1,
"ansible_processor_nproc": 4,
"ansible_processor_threads_per_core": 1,
"ansible_processor_vcpus": 4,
"ansible_product_name": "To Be Filled By O.E.M.",
"ansible_product_serial": "To Be Filled By O.E.M.",
"ansible_product_uuid": "03000200-0400-0500-0006-000700080009",
"ansible_product_version": "To Be Filled By O.E.M.",
"ansible_python": {
"executable": "/usr/bin/python3",
"has_sslcontext": true,
"type": "cpython",
"version": {
"major": 3,
"micro": 12,
"minor": 10,
"releaselevel": "final",
"serial": 0
},
"version_info": [
3,
10,
12,
"final",
0
]
},
"ansible_python_version": "3.10.12",
"ansible_real_group_id": 0,
"ansible_real_user_id": 0,
"ansible_selinux": {
"status": "disabled"
},
"ansible_selinux_python_present": true,
"ansible_service_mgr": "sysvinit",
"ansible_swapfree_mb": 16383,
"ansible_swaptotal_mb": 16383,
"ansible_system": "Linux",
"ansible_system_capabilities": "N/A",
"ansible_system_capabilities_enforced": "N/A",
"ansible_system_vendor": "To Be Filled By O.E.M.",
"ansible_uptime_seconds": 2175,
"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_tech_guest": [
"container",
"docker"
],
"ansible_virtualization_tech_host": [
"kvm",
"virtualbox"
],
"ansible_virtualization_type": "docker",
"gather_subset": [
"all"
],
"module_setup": true
},
"changed": false,
"deprecations": [],
"warnings": []
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:02.258130Z",
"start": "2024-03-03T10:14:01.573840Z"
},
"id": "0242ac11-0002-ffe2-0d4a-000000000014",
"name": "Gathering Facts",
"path": "/root/playbook.yml:1"
}
},
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"action": "command",
"changed": true,
"cmd": [
"ls",
"/root"
],
"delta": "0:00:00.002419",
"end": "2024-03-03 10:14:02.511936",
"invocation": {
"module_args": {
"_raw_params": "ls /root",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"expand_argument_vars": true,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true
}
},
"msg": "",
"rc": 0,
"start": "2024-03-03 10:14:02.509517",
"stderr": "",
"stderr_lines": [],
"stdout": "ansi2html.sh\ncasts\ncss\nDockerfile\nindex.html\njs\nplaybook.yml\nREADME.md\nrequirements.txt\nrun.sh\nwebfonts",
"stdout_lines": [
"ansi2html.sh",
"casts",
"css",
"Dockerfile",
"index.html",
"js",
"playbook.yml",
"README.md",
"requirements.txt",
"run.sh",
"webfonts"
]
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:02.529357Z",
"start": "2024-03-03T10:14:02.267991Z"
},
"id": "0242ac11-0002-ffe2-0d4a-000000000003",
"name": "command module | -ls /root as parameter",
"path": "/root/playbook.yml:3"
}
},
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"action": "file",
"changed": false,
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": null,
"access_time": null,
"access_time_format": "%Y%m%d%H%M.%S",
"attributes": null,
"dest": "/tmp/file",
"follow": true,
"force": false,
"group": null,
"mode": null,
"modification_time": null,
"modification_time_format": "%Y%m%d%H%M.%S",
"owner": null,
"path": "/tmp/file",
"recurse": false,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "absent",
"unsafe_writes": false
}
},
"path": "/tmp/file",
"state": "absent"
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:02.786975Z",
"start": "2024-03-03T10:14:02.532466Z"
},
"id": "0242ac11-0002-ffe2-0d4a-000000000004",
"name": "file module | delete the file /tmp/file",
"path": "/root/playbook.yml:6"
}
},
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"action": "copy",
"changed": true,
"checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7",
"dest": "/tmp/file",
"diff": [
{
"after": "localhost\n2a45ed47c865",
"after_header": "/tmp/file",
"before": ""
}
],
"gid": 0,
"group": "root",
"invocation": {
"module_args": {
"_original_basename": "tmp18xhmh69",
"attributes": null,
"backup": false,
"checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7",
"content": null,
"dest": "/tmp/file",
"directory_mode": null,
"follow": false,
"force": true,
"group": null,
"local_follow": null,
"mode": null,
"owner": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": "/root/.ansible/tmp/ansible-tmp-1709460842.8004854-2733-218485844422094/source",
"unsafe_writes": false,
"validate": null
}
},
"md5sum": "8bf7d228d286a5809b9284f81b6f2b88",
"mode": "0644",
"owner": "root",
"size": 22,
"src": "/root/.ansible/tmp/ansible-tmp-1709460842.8004854-2733-218485844422094/source",
"state": "file",
"uid": 0
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:03.364133Z",
"start": "2024-03-03T10:14:02.790195Z"
},
"id": "0242ac11-0002-ffe2-0d4a-000000000005",
"name": "copy module | create the file /tmp/file",
"path": "/root/playbook.yml:11"
}
},
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"action": "copy",
"changed": false,
"checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7",
"dest": "/tmp/file",
"diff": {
"after": {
"path": "/tmp/file"
},
"before": {
"path": "/tmp/file"
}
},
"gid": 0,
"group": "root",
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": "tmpvagr_169",
"access_time": null,
"access_time_format": "%Y%m%d%H%M.%S",
"attributes": null,
"dest": "/tmp/file",
"follow": true,
"force": false,
"group": null,
"mode": null,
"modification_time": null,
"modification_time_format": "%Y%m%d%H%M.%S",
"owner": null,
"path": "/tmp/file",
"recurse": false,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "file",
"unsafe_writes": false
}
},
"mode": "0644",
"owner": "root",
"path": "/tmp/file",
"size": 22,
"state": "file",
"uid": 0
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:03.654984Z",
"start": "2024-03-03T10:14:03.367557Z"
},
"id": "0242ac11-0002-ffe2-0d4a-000000000006",
"name": "copy module | change the file /tmp/file",
"path": "/root/playbook.yml:16"
}
},
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"action": "file",
"changed": true,
"diff": {
"after": {
"path": "/tmp/file",
"state": "absent"
},
"before": {
"path": "/tmp/file",
"state": "file"
}
},
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": null,
"access_time": null,
"access_time_format": "%Y%m%d%H%M.%S",
"attributes": null,
"dest": "/tmp/file",
"follow": true,
"force": false,
"group": null,
"mode": null,
"modification_time": null,
"modification_time_format": "%Y%m%d%H%M.%S",
"owner": null,
"path": "/tmp/file",
"recurse": false,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "absent",
"unsafe_writes": false
}
},
"path": "/tmp/file",
"state": "absent"
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:03.811877Z",
"start": "2024-03-03T10:14:03.657971Z"
},
"id": "0242ac11-0002-ffe2-0d4a-000000000007",
"name": "file module | delete the file /tmp/file",
"path": "/root/playbook.yml:21"
}
},
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"action": "apt",
"cache_update_time": 1709459901,
"cache_updated": false,
"changed": true,
"diff": {
"prepared": "Suggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded."
},
"invocation": {
"module_args": {
"allow_change_held_packages": false,
"allow_downgrade": false,
"allow_unauthenticated": false,
"autoclean": false,
"autoremove": false,
"cache_valid_time": 0,
"clean": false,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"fail_on_autoremove": false,
"force": false,
"force_apt_get": false,
"install_recommends": null,
"lock_timeout": 60,
"name": "htop",
"only_upgrade": false,
"package": [
"htop"
],
"policy_rc_d": null,
"purge": false,
"state": "present",
"update_cache": null,
"update_cache_retries": 5,
"update_cache_retry_max_delay": 12,
"upgrade": null
}
},
"stderr": "debconf: delaying package configuration, since apt-utils is not installed\n",
"stderr_lines": [
"debconf: delaying package configuration, since apt-utils is not installed"
],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.\nNeed to get 128 kB of archives.\nAfter this operation, 342 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]\nFetched 128 kB in 0s (662 kB/s)\nSelecting previously unselected package htop.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17239 files and directories currently installed.)\r\nPreparing to unpack .../htop_3.0.5-7build2_amd64.deb ...\r\nUnpacking htop (3.0.5-7build2) ...\r\nSetting up htop (3.0.5-7build2) ...\r\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"Suggested packages:",
" lm-sensors lsof strace",
"The following NEW packages will be installed:",
" htop",
"0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.",
"Need to get 128 kB of archives.",
"After this operation, 342 kB of additional disk space will be used.",
"Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]",
"Fetched 128 kB in 0s (662 kB/s)",
"Selecting previously unselected package htop.",
"(Reading database ... ",
"(Reading database ... 5%",
"(Reading database ... 10%",
"(Reading database ... 15%",
"(Reading database ... 20%",
"(Reading database ... 25%",
"(Reading database ... 30%",
"(Reading database ... 35%",
"(Reading database ... 40%",
"(Reading database ... 45%",
"(Reading database ... 50%",
"(Reading database ... 55%",
"(Reading database ... 60%",
"(Reading database ... 65%",
"(Reading database ... 70%",
"(Reading database ... 75%",
"(Reading database ... 80%",
"(Reading database ... 85%",
"(Reading database ... 90%",
"(Reading database ... 95%",
"(Reading database ... 100%",
"(Reading database ... 17239 files and directories currently installed.)",
"Preparing to unpack .../htop_3.0.5-7build2_amd64.deb ...",
"Unpacking htop (3.0.5-7build2) ...",
"Setting up htop (3.0.5-7build2) ..."
]
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:07.610841Z",
"start": "2024-03-03T10:14:03.814834Z"
},
"id": "0242ac11-0002-ffe2-0d4a-000000000008",
"name": "apt module | install htop",
"path": "/root/playbook.yml:26"
}
},
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"action": "command",
"changed": true,
"cmd": [
"apt",
"remove",
"htop",
"--yes"
],
"delta": "0:00:01.361131",
"end": "2024-03-03 10:14:09.101811",
"invocation": {
"module_args": {
"_raw_params": "apt remove htop --yes",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"expand_argument_vars": true,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true
}
},
"msg": "",
"rc": 0,
"start": "2024-03-03 10:14:07.740680",
"stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.",
"stderr_lines": [
"",
"WARNING: apt does not have a stable CLI interface. Use with caution in scripts."
],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n libnl-3-200 libnl-genl-3-200\nUse 'apt autoremove' to remove them.\nThe following packages will be REMOVED:\n htop\n0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.\nAfter this operation, 342 kB disk space will be freed.\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17253 files and directories currently installed.)\r\nRemoving htop (3.0.5-7build2) ...",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"The following packages were automatically installed and are no longer required:",
" libnl-3-200 libnl-genl-3-200",
"Use 'apt autoremove' to remove them.",
"The following packages will be REMOVED:",
" htop",
"0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.",
"After this operation, 342 kB disk space will be freed.",
"(Reading database ... ",
"(Reading database ... 5%",
"(Reading database ... 10%",
"(Reading database ... 15%",
"(Reading database ... 20%",
"(Reading database ... 25%",
"(Reading database ... 30%",
"(Reading database ... 35%",
"(Reading database ... 40%",
"(Reading database ... 45%",
"(Reading database ... 50%",
"(Reading database ... 55%",
"(Reading database ... 60%",
"(Reading database ... 65%",
"(Reading database ... 70%",
"(Reading database ... 75%",
"(Reading database ... 80%",
"(Reading database ... 85%",
"(Reading database ... 90%",
"(Reading database ... 95%",
"(Reading database ... 100%",
"(Reading database ... 17253 files and directories currently installed.)",
"Removing htop (3.0.5-7build2) ..."
]
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:09.116296Z",
"start": "2024-03-03T10:14:07.613880Z"
},
"id": "0242ac11-0002-ffe2-0d4a-000000000009",
"name": "command module | remove htop to trigger warning",
"path": "/root/playbook.yml:31"
}
},
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"action": "shell",
"changed": true,
"cmd": "/usr/bin/uptime",
"delta": "0:00:00.003063",
"end": "2024-03-03 10:14:09.240100",
"invocation": {
"module_args": {
"_raw_params": "/usr/bin/uptime",
"_uses_shell": true,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"expand_argument_vars": true,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true
}
},
"msg": "",
"rc": 0,
"start": "2024-03-03 10:14:09.237037",
"stderr": "",
"stderr_lines": [],
"stdout": " 10:14:09 up 36 min, 0 users, load average: 1.88, 1.04, 0.90",
"stdout_lines": [
" 10:14:09 up 36 min, 0 users, load average: 1.88, 1.04, 0.90"
]
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:09.254316Z",
"start": "2024-03-03T10:14:09.119299Z"
},
"id": "0242ac11-0002-ffe2-0d4a-00000000000a",
"name": "shell module | register result variable",
"path": "/root/playbook.yml:34"
}
},
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"_ansible_verbose_always": true,
"action": "debug",
"changed": false,
"result": {
"changed": true,
"cmd": "/usr/bin/uptime",
"delta": "0:00:00.003063",
"end": "2024-03-03 10:14:09.240100",
"failed": false,
"msg": "",
"rc": 0,
"start": "2024-03-03 10:14:09.237037",
"stderr": "",
"stderr_lines": [],
"stdout": " 10:14:09 up 36 min, 0 users, load average: 1.88, 1.04, 0.90",
"stdout_lines": [
" 10:14:09 up 36 min, 0 users, load average: 1.88, 1.04, 0.90"
]
}
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:09.267959Z",
"start": "2024-03-03T10:14:09.257351Z"
},
"id": "0242ac11-0002-ffe2-0d4a-00000000000b",
"name": "debug module | print result variable",
"path": "/root/playbook.yml:38"
}
},
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"_ansible_verbose_always": true,
"action": "debug",
"changed": false,
"msg": "System localhost has uuid 03000200-0400-0500-0006-000700080009"
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:09.280136Z",
"start": "2024-03-03T10:14:09.270513Z"
},
"id": "0242ac11-0002-ffe2-0d4a-00000000000c",
"name": "debug module | print custom msg with variables",
"path": "/root/playbook.yml:42"
}
},
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"action": "fail",
"changed": false,
"failed": true,
"msg": "The task failed but we ignore this"
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:09.290471Z",
"start": "2024-03-03T10:14:09.283167Z"
},
"id": "0242ac11-0002-ffe2-0d4a-00000000000d",
"name": "fail module | let play fail but ignore it",
"path": "/root/playbook.yml:46"
}
},
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"_ansible_verbose_always": true,
"action": "assert",
"changed": false,
"msg": "All assertions passed"
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:09.304334Z",
"start": "2024-03-03T10:14:09.293361Z"
},
"id": "0242ac11-0002-ffe2-0d4a-00000000000e",
"name": "assert",
"path": "/root/playbook.yml:51"
}
},
{
"hosts": {
"localhost": {
"_ansible_no_log": false,
"action": "pause",
"changed": false,
"delta": 1,
"echo": true,
"rc": 0,
"start": "2024-03-03 10:14:09.314661",
"stderr": "",
"stdout": "Paused for 1.0 seconds",
"stop": "2024-03-03 10:14:10.316627",
"user_input": ""
}
},
"task": {
"duration": {
"end": "2024-03-03T10:14:10.317949Z",
"start": "2024-03-03T10:14:09.307908Z"
},
"id": "0242ac11-0002-ffe2-0d4a-00000000000f",
"name": "pause",
"path": "/root/playbook.yml:53"
}
}
]
}
],
"stats": {
"localhost": {
"changed": 6,
"failures": 0,
"ignored": 1,
"ok": 14,
"rescued": 0,
"skipped": 0,
"unreachable": 0
}
}
}
Description: Ansible screen output as JSONL (line...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
{"_event":"v2_playbook_on_play_start","_timestamp":"2024-03-03T10:14:10.889001Z","play":{"duration":{"start":"2024-03-03T10:14:10.888992Z"},"id":"0242ac11-0002-cdea-a4a7-000000000001","name":"localhost","path":"/root/playbook.yml:1"},"tasks":[]}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:10.894277Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:10.894269Z"},"id":"0242ac11-0002-cdea-a4a7-000000000014","name":"Gathering Facts","path":"/root/playbook.yml:1"}}
{"_event":"v2_runner_on_ok","_timestamp":"2024-03-03T10:14:11.555332Z","hosts":{"localhost":{"_ansible_no_log":false,"_ansible_verbose_override":true,"action":"gather_facts","ansible_facts":{"ansible_apparmor":{"status":"disabled"},"ansible_architecture":"x86_64","ansible_bios_date":"12/17/2014","ansible_bios_vendor":"American Megatrends Inc.","ansible_bios_version":"P1.50","ansible_board_asset_tag":"NA","ansible_board_name":"Z97 Extreme4","ansible_board_serial":"M80-4C017800723","ansible_board_vendor":"ASRock","ansible_board_version":"NA","ansible_chassis_asset_tag":"To Be Filled By O.E.M.","ansible_chassis_serial":"To Be Filled By O.E.M.","ansible_chassis_vendor":"To Be Filled By O.E.M.","ansible_chassis_version":"To Be Filled By O.E.M.","ansible_cmdline":{"BOOT_IMAGE":"/boot/vmlinuz-linux","root":"UUID=a949b443-c5da-4a95-9f11-4ae49063d139","rw":true},"ansible_date_time":{"date":"2024-03-03","day":"03","epoch":"1709460851","epoch_int":"1709460851","hour":"10","iso8601":"2024-03-03T10:14:11Z","iso8601_basic":"20240303T101411525033","iso8601_basic_short":"20240303T101411","iso8601_micro":"2024-03-03T10:14:11.525033Z","minute":"14","month":"03","second":"11","time":"10:14:11","tz":"UTC","tz_dst":"UTC","tz_offset":"+0000","weekday":"Sunday","weekday_number":"0","weeknumber":"09","year":"2024"},"ansible_device_links":{"ids":{},"labels":{},"masters":{},"uuids":{}},"ansible_devices":{"sda":{"holders":[],"host":"","links":{"ids":[],"labels":[],"masters":[],"uuids":[]},"model":"Samsung SSD 840","partitions":{"sda1":{"holders":[],"links":{"ids":[],"labels":[],"masters":[],"uuids":[]},"sectors":"234431343","sectorsize":512,"size":"111.79 GB","start":"2048","uuid":null}},"removable":"0","rotational":"0","sas_address":null,"sas_device_handle":null,"scheduler_mode":"mq-deadline","sectors":"234433391","sectorsize":"512","size":"111.79 GB","support_discard":"512","vendor":"ATA","virtual":1},"sdb":{"holders":[],"host":"","links":{"ids":[],"labels":[],"masters":[],"uuids":[]},"model":"WDC WD10EZEX-19Z","partitions":{"sdb1":{"holders":[],"links":{"ids":[],"labels":[],"masters":[],"uuids":[]},"sectors":"1953513472","sectorsize":512,"size":"931.51 GB","start":"2048","uuid":null}},"removable":"0","rotational":"1","sas_address":null,"sas_device_handle":null,"scheduler_mode":"mq-deadline","sectors":"1953516911","sectorsize":"512","size":"931.51 GB","support_discard":"0","vendor":"ATA","virtual":1},"sdc":{"holders":[],"host":"","links":{"ids":[],"labels":[],"masters":[],"uuids":[]},"model":"WDC WD5000AAKS-0","partitions":{"sdc1":{"holders":[],"links":{"ids":[],"labels":[],"masters":[],"uuids":[]},"sectors":"204800","sectorsize":512,"size":"100.00 MB","start":"2048","uuid":null},"sdc2":{"holders":[],"links":{"ids":[],"labels":[],"masters":[],"uuids":[]},"sectors":"976553984","sectorsize":512,"size":"465.66 GB","start":"206848","uuid":null}},"removable":"0","rotational":"1","sas_address":null,"sas_device_handle":null,"scheduler_mode":"mq-deadline","sectors":"976764911","sectorsize":"512","size":"465.76 GB","support_discard":"0","vendor":"ATA","virtual":1},"sr0":{"holders":[],"host":"","links":{"ids":[],"labels":[],"masters":[],"uuids":[]},"model":"BD-RE BH10LS30","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":"HL-DT-ST","virtual":1}},"ansible_distribution":"Ubuntu","ansible_distribution_file_parsed":true,"ansible_distribution_file_path":"/etc/os-release","ansible_distribution_file_variety":"Debian","ansible_distribution_major_version":"22","ansible_distribution_release":"jammy","ansible_distribution_version":"22.04","ansible_dns":{"nameservers":["192.168.178.1"],"search":["."]},"ansible_domain":"","ansible_effective_group_id":0,"ansible_effective_user_id":0,"ansible_env":{"ANSIBLE_DEPRECATION_WARNINGS":"False","ANSIBLE_INVENTORY_UNPARSED_WARNING":"False","ANSIBLE_LOCALHOST_WARNING":"False","ANSIBLE_STDOUT_CALLBACK":"ansible.posix.jsonl","ASCIINEMA_REC":"1","DEBIAN_FRONTEND":"noninteractive","HOME":"/root","HOSTNAME":"2a45ed47c865","LANG":"en_US.UTF-8","LANGUAGE":"en_US:en","LC_ALL":"en_US.UTF-8","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","PWD":"/root","SHLVL":"1","TERM":"xterm","_":"/usr/bin/asciinema"},"ansible_fibre_channel_wwn":[],"ansible_fips":false,"ansible_form_factor":"Desktop","ansible_fqdn":"2a45ed47c865","ansible_hostname":"2a45ed47c865","ansible_hostnqn":"","ansible_is_chroot":false,"ansible_iscsi_iqn":"","ansible_kernel":"6.7.7-arch1-1","ansible_kernel_version":"#1 SMP PREEMPT_DYNAMIC Fri, 01 Mar 2024 15:07:39 +0000","ansible_loadavg":{"15m":0.90087890625,"1m":1.88330078125,"5m":1.04345703125},"ansible_local":{},"ansible_lsb":{"codename":"jammy","description":"Ubuntu 22.04 LTS","id":"Ubuntu","major_release":"22","release":"22.04"},"ansible_lvm":"N/A","ansible_machine":"x86_64","ansible_memfree_mb":8381,"ansible_memory_mb":{"nocache":{"free":11840,"used":4103},"real":{"free":8381,"total":15943,"used":7562},"swap":{"cached":0,"free":16383,"total":16383,"used":0}},"ansible_memtotal_mb":15943,"ansible_mounts":[{"block_available":137233136,"block_size":4096,"block_total":240306099,"block_used":103072963,"device":"/dev/sdb1","fstype":"ext4","inode_available":60006701,"inode_total":61054976,"inode_used":1048275,"mount":"/tmp/output","options":"rw,relatime,data=ordered,bind","size_available":562106925056,"size_total":984293781504,"uuid":"N/A"},{"block_available":1717424,"block_size":4096,"block_total":28795744,"block_used":27078320,"device":"/dev/sda1","fstype":"ext4","inode_available":5061615,"inode_total":7331840,"inode_used":2270225,"mount":"/etc/resolv.conf","options":"rw,noatime,discard,bind","size_available":7034568704,"size_total":117947367424,"uuid":"N/A"},{"block_available":1717424,"block_size":4096,"block_total":28795744,"block_used":27078320,"device":"/dev/sda1","fstype":"ext4","inode_available":5061615,"inode_total":7331840,"inode_used":2270225,"mount":"/etc/hostname","options":"rw,noatime,discard,bind","size_available":7034568704,"size_total":117947367424,"uuid":"N/A"},{"block_available":1717424,"block_size":4096,"block_total":28795744,"block_used":27078320,"device":"/dev/sda1","fstype":"ext4","inode_available":5061615,"inode_total":7331840,"inode_used":2270225,"mount":"/etc/hosts","options":"rw,noatime,discard,bind","size_available":7034568704,"size_total":117947367424,"uuid":"N/A"}],"ansible_nodename":"2a45ed47c865","ansible_os_family":"Debian","ansible_pkg_mgr":"apt","ansible_proc_cmdline":{"BOOT_IMAGE":"/boot/vmlinuz-linux","root":"UUID=a949b443-c5da-4a95-9f11-4ae49063d139","rw":true},"ansible_processor":["0","GenuineIntel","Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz","1","GenuineIntel","Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz","2","GenuineIntel","Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz","3","GenuineIntel","Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz"],"ansible_processor_cores":4,"ansible_processor_count":1,"ansible_processor_nproc":4,"ansible_processor_threads_per_core":1,"ansible_processor_vcpus":4,"ansible_product_name":"To Be Filled By O.E.M.","ansible_product_serial":"To Be Filled By O.E.M.","ansible_product_uuid":"03000200-0400-0500-0006-000700080009","ansible_product_version":"To Be Filled By O.E.M.","ansible_python":{"executable":"/usr/bin/python3","has_sslcontext":true,"type":"cpython","version":{"major":3,"micro":12,"minor":10,"releaselevel":"final","serial":0},"version_info":[3,10,12,"final",0]},"ansible_python_version":"3.10.12","ansible_real_group_id":0,"ansible_real_user_id":0,"ansible_selinux":{"status":"disabled"},"ansible_selinux_python_present":true,"ansible_service_mgr":"sysvinit","ansible_swapfree_mb":16383,"ansible_swaptotal_mb":16383,"ansible_system":"Linux","ansible_system_capabilities":"N/A","ansible_system_capabilities_enforced":"N/A","ansible_system_vendor":"To Be Filled By O.E.M.","ansible_uptime_seconds":2185,"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_tech_guest":["docker","container"],"ansible_virtualization_tech_host":["virtualbox","kvm"],"ansible_virtualization_type":"docker","gather_subset":["all"],"module_setup":true},"changed":false,"deprecations":[],"warnings":[]}},"task":{"duration":{"end":"2024-03-03T10:14:11.555294Z","start":"2024-03-03T10:14:10.894269Z"},"id":"0242ac11-0002-cdea-a4a7-000000000014","name":"Gathering Facts","path":"/root/playbook.yml:1"}}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:11.564060Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:11.564049Z"},"id":"0242ac11-0002-cdea-a4a7-000000000003","name":"command module | -ls /root as parameter","path":"/root/playbook.yml:3"}}
{"_event":"v2_runner_on_ok","_timestamp":"2024-03-03T10:14:11.795806Z","hosts":{"localhost":{"_ansible_no_log":false,"action":"command","changed":true,"cmd":["ls","/root"],"delta":"0:00:00.002276","end":"2024-03-03 10:14:11.781311","invocation":{"module_args":{"_raw_params":"ls /root","_uses_shell":false,"argv":null,"chdir":null,"creates":null,"executable":null,"expand_argument_vars":true,"removes":null,"stdin":null,"stdin_add_newline":true,"strip_empty_ends":true}},"msg":"","rc":0,"start":"2024-03-03 10:14:11.779035","stderr":"","stderr_lines":[],"stdout":"ansi2html.sh\ncasts\ncss\nDockerfile\nindex.html\njs\nplaybook.yml\nREADME.md\nrequirements.txt\nrun.sh\nwebfonts","stdout_lines":["ansi2html.sh","casts","css","Dockerfile","index.html","js","playbook.yml","README.md","requirements.txt","run.sh","webfonts"]}},"task":{"duration":{"end":"2024-03-03T10:14:11.795744Z","start":"2024-03-03T10:14:11.564049Z"},"id":"0242ac11-0002-cdea-a4a7-000000000003","name":"command module | -ls /root as parameter","path":"/root/playbook.yml:3"}}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:11.799094Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:11.799083Z"},"id":"0242ac11-0002-cdea-a4a7-000000000004","name":"file module | delete the file /tmp/file","path":"/root/playbook.yml:6"}}
{"_event":"v2_runner_on_ok","_timestamp":"2024-03-03T10:14:12.046316Z","hosts":{"localhost":{"_ansible_no_log":false,"action":"file","changed":false,"invocation":{"module_args":{"_diff_peek":null,"_original_basename":null,"access_time":null,"access_time_format":"%Y%m%d%H%M.%S","attributes":null,"dest":"/tmp/file","follow":true,"force":false,"group":null,"mode":null,"modification_time":null,"modification_time_format":"%Y%m%d%H%M.%S","owner":null,"path":"/tmp/file","recurse":false,"selevel":null,"serole":null,"setype":null,"seuser":null,"src":null,"state":"absent","unsafe_writes":false}},"path":"/tmp/file","state":"absent"}},"task":{"duration":{"end":"2024-03-03T10:14:12.046260Z","start":"2024-03-03T10:14:11.799083Z"},"id":"0242ac11-0002-cdea-a4a7-000000000004","name":"file module | delete the file /tmp/file","path":"/root/playbook.yml:6"}}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:12.049964Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:12.049953Z"},"id":"0242ac11-0002-cdea-a4a7-000000000005","name":"copy module | create the file /tmp/file","path":"/root/playbook.yml:11"}}
{"_event":"v2_runner_on_ok","_timestamp":"2024-03-03T10:14:12.595821Z","hosts":{"localhost":{"_ansible_no_log":false,"action":"copy","changed":true,"checksum":"7041de6402ae22a711c7feeb189f4c5c575756e7","dest":"/tmp/file","diff":[{"after":"localhost\n2a45ed47c865","after_header":"/tmp/file","before":""}],"gid":0,"group":"root","invocation":{"module_args":{"_original_basename":"tmpm8ue2l8l","attributes":null,"backup":false,"checksum":"7041de6402ae22a711c7feeb189f4c5c575756e7","content":null,"dest":"/tmp/file","directory_mode":null,"follow":false,"force":true,"group":null,"local_follow":null,"mode":null,"owner":null,"remote_src":null,"selevel":null,"serole":null,"setype":null,"seuser":null,"src":"/root/.ansible/tmp/ansible-tmp-1709460852.0611918-3065-79406831874285/source","unsafe_writes":false,"validate":null}},"md5sum":"8bf7d228d286a5809b9284f81b6f2b88","mode":"0644","owner":"root","size":22,"src":"/root/.ansible/tmp/ansible-tmp-1709460852.0611918-3065-79406831874285/source","state":"file","uid":0}},"task":{"duration":{"end":"2024-03-03T10:14:12.595733Z","start":"2024-03-03T10:14:12.049953Z"},"id":"0242ac11-0002-cdea-a4a7-000000000005","name":"copy module | create the file /tmp/file","path":"/root/playbook.yml:11"}}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:12.598771Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:12.598760Z"},"id":"0242ac11-0002-cdea-a4a7-000000000006","name":"copy module | change the file /tmp/file","path":"/root/playbook.yml:16"}}
{"_event":"v2_runner_on_ok","_timestamp":"2024-03-03T10:14:12.876555Z","hosts":{"localhost":{"_ansible_no_log":false,"action":"copy","changed":false,"checksum":"7041de6402ae22a711c7feeb189f4c5c575756e7","dest":"/tmp/file","diff":{"after":{"path":"/tmp/file"},"before":{"path":"/tmp/file"}},"gid":0,"group":"root","invocation":{"module_args":{"_diff_peek":null,"_original_basename":"tmp7ufqtucn","access_time":null,"access_time_format":"%Y%m%d%H%M.%S","attributes":null,"dest":"/tmp/file","follow":true,"force":false,"group":null,"mode":null,"modification_time":null,"modification_time_format":"%Y%m%d%H%M.%S","owner":null,"path":"/tmp/file","recurse":false,"selevel":null,"serole":null,"setype":null,"seuser":null,"src":null,"state":"file","unsafe_writes":false}},"mode":"0644","owner":"root","path":"/tmp/file","size":22,"state":"file","uid":0}},"task":{"duration":{"end":"2024-03-03T10:14:12.876501Z","start":"2024-03-03T10:14:12.598760Z"},"id":"0242ac11-0002-cdea-a4a7-000000000006","name":"copy module | change the file /tmp/file","path":"/root/playbook.yml:16"}}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:12.880177Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:12.880165Z"},"id":"0242ac11-0002-cdea-a4a7-000000000007","name":"file module | delete the file /tmp/file","path":"/root/playbook.yml:21"}}
{"_event":"v2_runner_on_ok","_timestamp":"2024-03-03T10:14:13.022960Z","hosts":{"localhost":{"_ansible_no_log":false,"action":"file","changed":true,"diff":{"after":{"path":"/tmp/file","state":"absent"},"before":{"path":"/tmp/file","state":"file"}},"invocation":{"module_args":{"_diff_peek":null,"_original_basename":null,"access_time":null,"access_time_format":"%Y%m%d%H%M.%S","attributes":null,"dest":"/tmp/file","follow":true,"force":false,"group":null,"mode":null,"modification_time":null,"modification_time_format":"%Y%m%d%H%M.%S","owner":null,"path":"/tmp/file","recurse":false,"selevel":null,"serole":null,"setype":null,"seuser":null,"src":null,"state":"absent","unsafe_writes":false}},"path":"/tmp/file","state":"absent"}},"task":{"duration":{"end":"2024-03-03T10:14:13.022904Z","start":"2024-03-03T10:14:12.880165Z"},"id":"0242ac11-0002-cdea-a4a7-000000000007","name":"file module | delete the file /tmp/file","path":"/root/playbook.yml:21"}}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:13.026385Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:13.026375Z"},"id":"0242ac11-0002-cdea-a4a7-000000000008","name":"apt module | install htop","path":"/root/playbook.yml:26"}}
{"_event":"v2_runner_on_ok","_timestamp":"2024-03-03T10:14:16.683559Z","hosts":{"localhost":{"_ansible_no_log":false,"action":"apt","cache_update_time":1709459901,"cache_updated":false,"changed":true,"diff":{"prepared":"Suggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded."},"invocation":{"module_args":{"allow_change_held_packages":false,"allow_downgrade":false,"allow_unauthenticated":false,"autoclean":false,"autoremove":false,"cache_valid_time":0,"clean":false,"deb":null,"default_release":null,"dpkg_options":"force-confdef,force-confold","fail_on_autoremove":false,"force":false,"force_apt_get":false,"install_recommends":null,"lock_timeout":60,"name":"htop","only_upgrade":false,"package":["htop"],"policy_rc_d":null,"purge":false,"state":"present","update_cache":null,"update_cache_retries":5,"update_cache_retry_max_delay":12,"upgrade":null}},"stderr":"debconf: delaying package configuration, since apt-utils is not installed\n","stderr_lines":["debconf: delaying package configuration, since apt-utils is not installed"],"stdout":"Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.\nNeed to get 128 kB of archives.\nAfter this operation, 342 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]\nFetched 128 kB in 0s (598 kB/s)\nSelecting previously unselected package htop.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17239 files and directories currently installed.)\r\nPreparing to unpack .../htop_3.0.5-7build2_amd64.deb ...\r\nUnpacking htop (3.0.5-7build2) ...\r\nSetting up htop (3.0.5-7build2) ...\r\n","stdout_lines":["Reading package lists...","Building dependency tree...","Reading state information...","Suggested packages:"," lm-sensors lsof strace","The following NEW packages will be installed:"," htop","0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.","Need to get 128 kB of archives.","After this operation, 342 kB of additional disk space will be used.","Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]","Fetched 128 kB in 0s (598 kB/s)","Selecting previously unselected package htop.","(Reading database ... ","(Reading database ... 5%","(Reading database ... 10%","(Reading database ... 15%","(Reading database ... 20%","(Reading database ... 25%","(Reading database ... 30%","(Reading database ... 35%","(Reading database ... 40%","(Reading database ... 45%","(Reading database ... 50%","(Reading database ... 55%","(Reading database ... 60%","(Reading database ... 65%","(Reading database ... 70%","(Reading database ... 75%","(Reading database ... 80%","(Reading database ... 85%","(Reading database ... 90%","(Reading database ... 95%","(Reading database ... 100%","(Reading database ... 17239 files and directories currently installed.)","Preparing to unpack .../htop_3.0.5-7build2_amd64.deb ...","Unpacking htop (3.0.5-7build2) ...","Setting up htop (3.0.5-7build2) ..."]}},"task":{"duration":{"end":"2024-03-03T10:14:16.683506Z","start":"2024-03-03T10:14:13.026375Z"},"id":"0242ac11-0002-cdea-a4a7-000000000008","name":"apt module | install htop","path":"/root/playbook.yml:26"}}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:16.686834Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:16.686822Z"},"id":"0242ac11-0002-cdea-a4a7-000000000009","name":"command module | remove htop to trigger warning","path":"/root/playbook.yml:31"}}
{"_event":"v2_runner_on_ok","_timestamp":"2024-03-03T10:14:18.170053Z","hosts":{"localhost":{"_ansible_no_log":false,"action":"command","changed":true,"cmd":["apt","remove","htop","--yes"],"delta":"0:00:01.350306","end":"2024-03-03 10:14:18.155390","invocation":{"module_args":{"_raw_params":"apt remove htop --yes","_uses_shell":false,"argv":null,"chdir":null,"creates":null,"executable":null,"expand_argument_vars":true,"removes":null,"stdin":null,"stdin_add_newline":true,"strip_empty_ends":true}},"msg":"","rc":0,"start":"2024-03-03 10:14:16.805084","stderr":"\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.","stderr_lines":["","WARNING: apt does not have a stable CLI interface. Use with caution in scripts."],"stdout":"Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n libnl-3-200 libnl-genl-3-200\nUse 'apt autoremove' to remove them.\nThe following packages will be REMOVED:\n htop\n0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.\nAfter this operation, 342 kB disk space will be freed.\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17253 files and directories currently installed.)\r\nRemoving htop (3.0.5-7build2) ...","stdout_lines":["Reading package lists...","Building dependency tree...","Reading state information...","The following packages were automatically installed and are no longer required:"," libnl-3-200 libnl-genl-3-200","Use 'apt autoremove' to remove them.","The following packages will be REMOVED:"," htop","0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.","After this operation, 342 kB disk space will be freed.","(Reading database ... ","(Reading database ... 5%","(Reading database ... 10%","(Reading database ... 15%","(Reading database ... 20%","(Reading database ... 25%","(Reading database ... 30%","(Reading database ... 35%","(Reading database ... 40%","(Reading database ... 45%","(Reading database ... 50%","(Reading database ... 55%","(Reading database ... 60%","(Reading database ... 65%","(Reading database ... 70%","(Reading database ... 75%","(Reading database ... 80%","(Reading database ... 85%","(Reading database ... 90%","(Reading database ... 95%","(Reading database ... 100%","(Reading database ... 17253 files and directories currently installed.)","Removing htop (3.0.5-7build2) ..."]}},"task":{"duration":{"end":"2024-03-03T10:14:18.169999Z","start":"2024-03-03T10:14:16.686822Z"},"id":"0242ac11-0002-cdea-a4a7-000000000009","name":"command module | remove htop to trigger warning","path":"/root/playbook.yml:31"}}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:18.173520Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:18.173509Z"},"id":"0242ac11-0002-cdea-a4a7-00000000000a","name":"shell module | register result variable","path":"/root/playbook.yml:34"}}
{"_event":"v2_runner_on_ok","_timestamp":"2024-03-03T10:14:18.310259Z","hosts":{"localhost":{"_ansible_no_log":false,"action":"shell","changed":true,"cmd":"/usr/bin/uptime","delta":"0:00:00.003083","end":"2024-03-03 10:14:18.295962","invocation":{"module_args":{"_raw_params":"/usr/bin/uptime","_uses_shell":true,"argv":null,"chdir":null,"creates":null,"executable":null,"expand_argument_vars":true,"removes":null,"stdin":null,"stdin_add_newline":true,"strip_empty_ends":true}},"msg":"","rc":0,"start":"2024-03-03 10:14:18.292879","stderr":"","stderr_lines":[],"stdout":" 10:14:18 up 36 min, 0 users, load average: 1.75, 1.04, 0.90","stdout_lines":[" 10:14:18 up 36 min, 0 users, load average: 1.75, 1.04, 0.90"]}},"task":{"duration":{"end":"2024-03-03T10:14:18.310206Z","start":"2024-03-03T10:14:18.173509Z"},"id":"0242ac11-0002-cdea-a4a7-00000000000a","name":"shell module | register result variable","path":"/root/playbook.yml:34"}}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:18.313874Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:18.313864Z"},"id":"0242ac11-0002-cdea-a4a7-00000000000b","name":"debug module | print result variable","path":"/root/playbook.yml:38"}}
{"_event":"v2_runner_on_ok","_timestamp":"2024-03-03T10:14:18.324806Z","hosts":{"localhost":{"_ansible_no_log":false,"_ansible_verbose_always":true,"action":"debug","changed":false,"result":{"changed":true,"cmd":"/usr/bin/uptime","delta":"0:00:00.003083","end":"2024-03-03 10:14:18.295962","failed":false,"msg":"","rc":0,"start":"2024-03-03 10:14:18.292879","stderr":"","stderr_lines":[],"stdout":" 10:14:18 up 36 min, 0 users, load average: 1.75, 1.04, 0.90","stdout_lines":[" 10:14:18 up 36 min, 0 users, load average: 1.75, 1.04, 0.90"]}}},"task":{"duration":{"end":"2024-03-03T10:14:18.324751Z","start":"2024-03-03T10:14:18.313864Z"},"id":"0242ac11-0002-cdea-a4a7-00000000000b","name":"debug module | print result variable","path":"/root/playbook.yml:38"}}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:18.327893Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:18.327874Z"},"id":"0242ac11-0002-cdea-a4a7-00000000000c","name":"debug module | print custom msg with variables","path":"/root/playbook.yml:42"}}
{"_event":"v2_runner_on_ok","_timestamp":"2024-03-03T10:14:18.337986Z","hosts":{"localhost":{"_ansible_no_log":false,"_ansible_verbose_always":true,"action":"debug","changed":false,"msg":"System localhost has uuid 03000200-0400-0500-0006-000700080009"}},"task":{"duration":{"end":"2024-03-03T10:14:18.337930Z","start":"2024-03-03T10:14:18.327874Z"},"id":"0242ac11-0002-cdea-a4a7-00000000000c","name":"debug module | print custom msg with variables","path":"/root/playbook.yml:42"}}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:18.341310Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:18.341302Z"},"id":"0242ac11-0002-cdea-a4a7-00000000000d","name":"fail module | let play fail but ignore it","path":"/root/playbook.yml:46"}}
{"_event":"v2_runner_on_failed","_timestamp":"2024-03-03T10:14:18.349100Z","hosts":{"localhost":{"_ansible_no_log":false,"action":"fail","changed":false,"failed":true,"msg":"The task failed but we ignore this"}},"task":{"duration":{"end":"2024-03-03T10:14:18.349040Z","start":"2024-03-03T10:14:18.341302Z"},"id":"0242ac11-0002-cdea-a4a7-00000000000d","name":"fail module | let play fail but ignore it","path":"/root/playbook.yml:46"}}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:18.352246Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:18.352237Z"},"id":"0242ac11-0002-cdea-a4a7-00000000000e","name":"assert","path":"/root/playbook.yml:51"}}
{"_event":"v2_runner_on_ok","_timestamp":"2024-03-03T10:14:18.362974Z","hosts":{"localhost":{"_ansible_no_log":false,"_ansible_verbose_always":true,"action":"assert","changed":false,"msg":"All assertions passed"}},"task":{"duration":{"end":"2024-03-03T10:14:18.362936Z","start":"2024-03-03T10:14:18.352237Z"},"id":"0242ac11-0002-cdea-a4a7-00000000000e","name":"assert","path":"/root/playbook.yml:51"}}
{"_event":"v2_playbook_on_task_start","_timestamp":"2024-03-03T10:14:18.366368Z","hosts":{},"task":{"duration":{"start":"2024-03-03T10:14:18.366360Z"},"id":"0242ac11-0002-cdea-a4a7-00000000000f","name":"pause","path":"/root/playbook.yml:53"}}
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
{"_event":"v2_runner_on_ok","_timestamp":"2024-03-03T10:14:19.376855Z","hosts":{"localhost":{"_ansible_no_log":false,"action":"pause","changed":false,"delta":1,"echo":true,"rc":0,"start":"2024-03-03 10:14:18.372918","stderr":"","stdout":"Paused for 1.0 seconds","stop":"2024-03-03 10:14:19.375026","user_input":""}},"task":{"duration":{"end":"2024-03-03T10:14:19.376810Z","start":"2024-03-03T10:14:18.366360Z"},"id":"0242ac11-0002-cdea-a4a7-00000000000f","name":"pause","path":"/root/playbook.yml:53"}}
{"_event":"v2_playbook_on_stats","_timestamp":"2024-03-03T10:14:19.386402Z","custom_stats":{},"global_custom_stats":{},"stats":{"localhost":{"changed":6,"failures":0,"ignored":1,"ok":14,"rescued":0,"skipped":0,"unreachable":0}}}
Description: adds timing information to roles
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
Sunday 03 March 2024 10:14:19 +0000 (0:00:00.015) 0:00:00.015 **********
Sunday 03 March 2024 10:14:20 +0000 (0:00:00.662) 0:00:00.677 **********
Sunday 03 March 2024 10:14:20 +0000 (0:00:00.237) 0:00:00.914 **********
Sunday 03 March 2024 10:14:21 +0000 (0:00:00.244) 0:00:01.159 **********
Sunday 03 March 2024 10:14:21 +0000 (0:00:00.560) 0:00:01.719 **********
Sunday 03 March 2024 10:14:21 +0000 (0:00:00.268) 0:00:01.988 **********
Sunday 03 March 2024 10:14:22 +0000 (0:00:00.144) 0:00:02.132 **********
Sunday 03 March 2024 10:14:25 +0000 (0:00:03.541) 0:00:05.674 **********
Sunday 03 March 2024 10:14:27 +0000 (0:00:01.467) 0:00:07.141 **********
Sunday 03 March 2024 10:14:27 +0000 (0:00:00.139) 0:00:07.280 **********
Sunday 03 March 2024 10:14:27 +0000 (0:00:00.013) 0:00:07.294 **********
Sunday 03 March 2024 10:14:27 +0000 (0:00:00.013) 0:00:07.308 **********
Sunday 03 March 2024 10:14:27 +0000 (0:00:00.011) 0:00:07.319 **********
Sunday 03 March 2024 10:14:27 +0000 (0:00:00.013) 0:00:07.332 **********
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
Sunday 03 March 2024 10:14:28 +0000 (0:00:01.018) 0:00:08.351 **********
===============================================================================
apt --------------------------------------------------------------------- 3.54s
command ----------------------------------------------------------------- 1.70s
pause ------------------------------------------------------------------- 1.02s
copy -------------------------------------------------------------------- 0.83s
gather_facts ------------------------------------------------------------ 0.66s
file -------------------------------------------------------------------- 0.39s
shell ------------------------------------------------------------------- 0.14s
debug ------------------------------------------------------------------- 0.03s
assert ------------------------------------------------------------------ 0.01s
fail -------------------------------------------------------------------- 0.01s
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
total ------------------------------------------------------------------- 8.34s
Description: adds time information to tasks
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
Sunday 03 March 2024 10:14:28 +0000 (0:00:00.015) 0:00:00.015 **********
Sunday 03 March 2024 10:14:29 +0000 (0:00:00.652) 0:00:00.668 **********
Sunday 03 March 2024 10:14:29 +0000 (0:00:00.233) 0:00:00.901 **********
Sunday 03 March 2024 10:14:29 +0000 (0:00:00.240) 0:00:01.141 **********
Sunday 03 March 2024 10:14:30 +0000 (0:00:00.549) 0:00:01.691 **********
Sunday 03 March 2024 10:14:30 +0000 (0:00:00.262) 0:00:01.954 **********
Sunday 03 March 2024 10:14:30 +0000 (0:00:00.143) 0:00:02.097 **********
Sunday 03 March 2024 10:14:34 +0000 (0:00:03.517) 0:00:05.615 **********
Sunday 03 March 2024 10:14:35 +0000 (0:00:01.439) 0:00:07.055 **********
Sunday 03 March 2024 10:14:36 +0000 (0:00:00.137) 0:00:07.193 **********
Sunday 03 March 2024 10:14:36 +0000 (0:00:00.013) 0:00:07.206 **********
Sunday 03 March 2024 10:14:36 +0000 (0:00:00.013) 0:00:07.219 **********
Sunday 03 March 2024 10:14:36 +0000 (0:00:00.010) 0:00:07.230 **********
Sunday 03 March 2024 10:14:36 +0000 (0:00:00.013) 0:00:07.244 **********
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
Sunday 03 March 2024 10:14:37 +0000 (0:00:01.019) 0:00:08.263 **********
===============================================================================
apt module | install htop --------------------------------------------------------------------------------------------------------------------------------------------------------------- 3.52s
command module | remove htop to trigger warning ----------------------------------------------------------------------------------------------------------------------------------------- 1.44s
pause ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.02s
Gathering Facts ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.65s
copy module | create the file /tmp/file ------------------------------------------------------------------------------------------------------------------------------------------------- 0.55s
copy module | change the file /tmp/file ------------------------------------------------------------------------------------------------------------------------------------------------- 0.26s
file module | delete the file /tmp/file ------------------------------------------------------------------------------------------------------------------------------------------------- 0.24s
command module | -ls /root as parameter ------------------------------------------------------------------------------------------------------------------------------------------------- 0.23s
file module | delete the file /tmp/file ------------------------------------------------------------------------------------------------------------------------------------------------- 0.14s
shell module | register result variable ------------------------------------------------------------------------------------------------------------------------------------------------- 0.14s
debug module | print result variable ---------------------------------------------------------------------------------------------------------------------------------------------------- 0.01s
assert ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.01s
debug module | print custom msg with variables ------------------------------------------------------------------------------------------------------------------------------------------ 0.01s
fail module | let play fail but ignore it ----------------------------------------------------------------------------------------------------------------------------------------------- 0.01s
Description: Ansible screen output that ignores s...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
PLAY [localhost] *******************************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************************
ok: [localhost]
TASK [command module | -ls /root as parameter] *************************************************************************************************************************************************
changed: [localhost] => {"changed": true, "cmd": ["ls", "/root"], "delta": "0:00:00.002156", "end": "2024-03-03 10:14:38.500454", "msg": "", "rc": 0, "start": "2024-03-03 10:14:38.498298", "stderr": "", "stderr_lines": [], "stdout": "ansi2html.sh\ncasts\ncss\nDockerfile\nindex.html\njs\nplaybook.yml\nREADME.md\nrequirements.txt\nrun.sh\nwebfonts", "stdout_lines": ["ansi2html.sh", "casts", "css", "Dockerfile", "index.html", "js", "playbook.yml", "README.md", "requirements.txt", "run.sh", "webfonts"]}
TASK [file module | delete the file /tmp/file] *************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "path": "/tmp/file", "state": "absent"}
TASK [copy module | create the file /tmp/file] *************************************************************************************************************************************************
--- before
+++ after: /tmp/file
@@ -0,0 +1,2 @@
+localhost
+2a45ed47c865
\ No newline at end of file
changed: [localhost] => {"changed": true, "checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7", "dest": "/tmp/file", "gid": 0, "group": "root", "md5sum": "8bf7d228d286a5809b9284f81b6f2b88", "mode": "0644", "owner": "root", "size": 22, "src": "/root/.ansible/tmp/ansible-tmp-1709460878.7760053-4061-113541120463616/source", "state": "file", "uid": 0}
TASK [copy module | change the file /tmp/file] *************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7", "dest": "/tmp/file", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/tmp/file", "size": 22, "state": "file", "uid": 0}
TASK [file module | delete the file /tmp/file] *************************************************************************************************************************************************
--- before
+++ after
@@ -1,4 +1,4 @@
{
"path": "/tmp/file",
- "state": "file"
+ "state": "absent"
}
changed: [localhost] => {"changed": true, "path": "/tmp/file", "state": "absent"}
TASK [apt module | install htop] ***************************************************************************************************************************************************************
Suggested packages:
lm-sensors lsof strace
The following NEW packages will be installed:
htop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
changed: [localhost] => {"cache_update_time": 1709459901, "cache_updated": false, "changed": true, "stderr": "debconf: delaying package configuration, since apt-utils is not installed\n", "stderr_lines": ["debconf: delaying package configuration, since apt-utils is not installed"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.\nNeed to get 128 kB of archives.\nAfter this operation, 342 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]\nFetched 128 kB in 0s (622 kB/s)\nSelecting previously unselected package htop.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17239 files and directories currently installed.)\r\nPreparing to unpack .../htop_3.0.5-7build2_amd64.deb ...\r\nUnpacking htop (3.0.5-7build2) ...\r\nSetting up htop (3.0.5-7build2) ...\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Suggested packages:", " lm-sensors lsof strace", "The following NEW packages will be installed:", " htop", "0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.", "Need to get 128 kB of archives.", "After this operation, 342 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]", "Fetched 128 kB in 0s (622 kB/s)", "Selecting previously unselected package htop.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 17239 files and directories currently installed.)", "Preparing to unpack .../htop_3.0.5-7build2_amd64.deb ...", "Unpacking htop (3.0.5-7build2) ...", "Setting up htop (3.0.5-7build2) ..."]}
TASK [command module | remove htop to trigger warning] *****************************************************************************************************************************************
changed: [localhost] => {"changed": true, "cmd": ["apt", "remove", "htop", "--yes"], "delta": "0:00:01.281651", "end": "2024-03-03 10:14:44.683252", "msg": "", "rc": 0, "start": "2024-03-03 10:14:43.401601", "stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.", "stderr_lines": ["", "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n libnl-3-200 libnl-genl-3-200\nUse 'apt autoremove' to remove them.\nThe following packages will be REMOVED:\n htop\n0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.\nAfter this operation, 342 kB disk space will be freed.\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17253 files and directories currently installed.)\r\nRemoving htop (3.0.5-7build2) ...", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following packages were automatically installed and are no longer required:", " libnl-3-200 libnl-genl-3-200", "Use 'apt autoremove' to remove them.", "The following packages will be REMOVED:", " htop", "0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.", "After this operation, 342 kB disk space will be freed.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 17253 files and directories currently installed.)", "Removing htop (3.0.5-7build2) ..."]}
TASK [shell module | register result variable] *************************************************************************************************************************************************
changed: [localhost] => {"changed": true, "cmd": "/usr/bin/uptime", "delta": "0:00:00.003020", "end": "2024-03-03 10:14:44.823567", "msg": "", "rc": 0, "start": "2024-03-03 10:14:44.820547", "stderr": "", "stderr_lines": [], "stdout": " 10:14:44 up 36 min, 0 users, load average: 1.43, 1.02, 0.90", "stdout_lines": [" 10:14:44 up 36 min, 0 users, load average: 1.43, 1.02, 0.90"]}
TASK [debug module | print result variable] ****************************************************************************************************************************************************
ok: [localhost] => {
"result": {
"changed": true,
"cmd": "/usr/bin/uptime",
"delta": "0:00:00.003020",
"end": "2024-03-03 10:14:44.823567",
"failed": false,
"msg": "",
"rc": 0,
"start": "2024-03-03 10:14:44.820547",
"stderr": "",
"stderr_lines": [],
"stdout": " 10:14:44 up 36 min, 0 users, load average: 1.43, 1.02, 0.90",
"stdout_lines": [
" 10:14:44 up 36 min, 0 users, load average: 1.43, 1.02, 0.90"
]
}
}
TASK [debug module | print custom msg with variables] ******************************************************************************************************************************************
ok: [localhost] => {
"msg": "System localhost has uuid 03000200-0400-0500-0006-000700080009"
}
TASK [fail module | let play fail but ignore it] ***********************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "The task failed but we ignore this"}
...ignoring
TASK [assert] **********************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [pause] ***********************************************************************************************************************************************************************************
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
ok: [localhost] => {"changed": false, "delta": 1, "echo": true, "rc": 0, "start": "2024-03-03 10:14:44.901821", "stderr": "", "stdout": "Paused for 1.0 seconds", "stop": "2024-03-03 10:14:45.904685", "user_input": ""}
PLAY RECAP *************************************************************************************************************************************************************************************
localhost : ok=14 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1
Description: Adds time to play stats
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
Playbook run took 0 days, 0 hours, 0 minutes, 8 seconds
Description: Profiles maximum memory usage of tas...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
ERROR! No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.cgroup_memory_recap setting: max_mem_file
Description: demo callback that adds play/task co...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
--- play: None task: None ---
--- ARGS
0: <ansible.playbook.Playbook object at 0x77678ee36b30>
--- KWARGS
--- play: localhost task: None ---
--- ARGS
0: localhost
--- KWARGS
--- play: localhost task: TASK: Gathering Facts ---
--- ARGS
0: TASK: Gathering Facts
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: Gathering Facts ---
--- ARGS
0: localhost
1: TASK: Gathering Facts
--- KWARGS
--- play: localhost task: TASK: Gathering Facts ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e6c78e0>
--- KWARGS
--- play: localhost task: TASK: command module | -ls /root as parameter ---
--- ARGS
0: TASK: command module | -ls /root as parameter
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: command module | -ls /root as parameter ---
--- ARGS
0: localhost
1: TASK: command module | -ls /root as parameter
--- KWARGS
--- play: localhost task: TASK: command module | -ls /root as parameter ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e6ac8e0>
--- KWARGS
--- play: localhost task: TASK: file module | delete the file /tmp/file ---
--- ARGS
0: TASK: file module | delete the file /tmp/file
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: file module | delete the file /tmp/file ---
--- ARGS
0: localhost
1: TASK: file module | delete the file /tmp/file
--- KWARGS
--- play: localhost task: TASK: file module | delete the file /tmp/file ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d44f0>
--- KWARGS
--- play: localhost task: TASK: copy module | create the file /tmp/file ---
--- ARGS
0: TASK: copy module | create the file /tmp/file
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: copy module | create the file /tmp/file ---
--- ARGS
0: localhost
1: TASK: copy module | create the file /tmp/file
--- KWARGS
--- play: localhost task: TASK: copy module | create the file /tmp/file ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d4c70>
--- KWARGS
--- play: localhost task: TASK: copy module | create the file /tmp/file ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d45e0>
--- KWARGS
--- play: localhost task: TASK: copy module | change the file /tmp/file ---
--- ARGS
0: TASK: copy module | change the file /tmp/file
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: copy module | change the file /tmp/file ---
--- ARGS
0: localhost
1: TASK: copy module | change the file /tmp/file
--- KWARGS
--- play: localhost task: TASK: copy module | change the file /tmp/file ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d4af0>
--- KWARGS
--- play: localhost task: TASK: copy module | change the file /tmp/file ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d4dc0>
--- KWARGS
--- play: localhost task: TASK: file module | delete the file /tmp/file ---
--- ARGS
0: TASK: file module | delete the file /tmp/file
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: file module | delete the file /tmp/file ---
--- ARGS
0: localhost
1: TASK: file module | delete the file /tmp/file
--- KWARGS
--- play: localhost task: TASK: file module | delete the file /tmp/file ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d4580>
--- KWARGS
--- play: localhost task: TASK: file module | delete the file /tmp/file ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d40a0>
--- KWARGS
--- play: localhost task: TASK: apt module | install htop ---
--- ARGS
0: TASK: apt module | install htop
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: apt module | install htop ---
--- ARGS
0: localhost
1: TASK: apt module | install htop
--- KWARGS
--- play: localhost task: TASK: apt module | install htop ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d4e80>
--- KWARGS
--- play: localhost task: TASK: apt module | install htop ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d4580>
--- KWARGS
--- play: localhost task: TASK: command module | remove htop to trigger warning ---
--- ARGS
0: TASK: command module | remove htop to trigger warning
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: command module | remove htop to trigger warning ---
--- ARGS
0: localhost
1: TASK: command module | remove htop to trigger warning
--- KWARGS
--- play: localhost task: TASK: command module | remove htop to trigger warning ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d40a0>
--- KWARGS
--- play: localhost task: TASK: shell module | register result variable ---
--- ARGS
0: TASK: shell module | register result variable
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: shell module | register result variable ---
--- ARGS
0: localhost
1: TASK: shell module | register result variable
--- KWARGS
--- play: localhost task: TASK: shell module | register result variable ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d5000>
--- KWARGS
--- play: localhost task: TASK: debug module | print result variable ---
--- ARGS
0: TASK: debug module | print result variable
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: debug module | print result variable ---
--- ARGS
0: localhost
1: TASK: debug module | print result variable
--- KWARGS
--- play: localhost task: TASK: debug module | print result variable ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d49a0>
--- KWARGS
--- play: localhost task: TASK: debug module | print custom msg with variables ---
--- ARGS
0: TASK: debug module | print custom msg with variables
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: debug module | print custom msg with variables ---
--- ARGS
0: localhost
1: TASK: debug module | print custom msg with variables
--- KWARGS
--- play: localhost task: TASK: debug module | print custom msg with variables ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d54b0>
--- KWARGS
--- play: localhost task: TASK: fail module | let play fail but ignore it ---
--- ARGS
0: TASK: fail module | let play fail but ignore it
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: fail module | let play fail but ignore it ---
--- ARGS
0: localhost
1: TASK: fail module | let play fail but ignore it
--- KWARGS
--- play: localhost task: TASK: fail module | let play fail but ignore it ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d4b50>
--- KWARGS
ignore_errors: True
--- play: localhost task: TASK: assert ---
--- ARGS
0: TASK: assert
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: assert ---
--- ARGS
0: localhost
1: TASK: assert
--- KWARGS
--- play: localhost task: TASK: assert ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d5690>
--- KWARGS
--- play: localhost task: TASK: pause ---
--- ARGS
0: TASK: pause
--- KWARGS
is_conditional: False
--- play: localhost task: TASK: pause ---
--- ARGS
0: localhost
1: TASK: pause
--- KWARGS
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
--- play: localhost task: TASK: pause ---
--- ARGS
0: <ansible.executor.task_result.TaskResult object at 0x77678e5d5cc0>
--- KWARGS
--- play: localhost task: TASK: pause ---
--- ARGS
0: <ansible.executor.stats.AggregateStats object at 0x77678e787280>
--- KWARGS
Description: adds counters to the output items (t...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
PLAY [localhost] *******************************************************************************************************************************************************************************
TASK 1/13 [Gathering Facts] ********************************************************************************************************************************************************************
ok: 1/1 [localhost]
TASK 2/13 [command module | -ls /root as parameter] ********************************************************************************************************************************************
changed: 1/1 [localhost] => {"changed": true, "cmd": ["ls", "/root"], "delta": "0:00:00.002345", "end": "2024-03-03 10:15:05.771165", "msg": "", "rc": 0, "start": "2024-03-03 10:15:05.768820", "stderr": "", "stderr_lines": [], "stdout": "ansi2html.sh\ncasts\ncss\nDockerfile\nindex.html\njs\nplaybook.yml\nREADME.md\nrequirements.txt\nrun.sh\nwebfonts", "stdout_lines": ["ansi2html.sh", "casts", "css", "Dockerfile", "index.html", "js", "playbook.yml", "README.md", "requirements.txt", "run.sh", "webfonts"]}
TASK 3/13 [file module | delete the file /tmp/file] ********************************************************************************************************************************************
ok: 1/1 [localhost] => {"changed": false, "path": "/tmp/file", "state": "absent"}
TASK 4/13 [copy module | create the file /tmp/file] ********************************************************************************************************************************************
changed: 1/1 [localhost] => {"changed": true, "checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7", "dest": "/tmp/file", "gid": 0, "group": "root", "md5sum": "8bf7d228d286a5809b9284f81b6f2b88", "mode": "0644", "owner": "root", "size": 22, "src": "/root/.ansible/tmp/ansible-tmp-1709460906.0394602-5065-145720924051491/source", "state": "file", "uid": 0}
TASK 5/13 [copy module | change the file /tmp/file] ********************************************************************************************************************************************
ok: 1/1 [localhost] => {"changed": false, "checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7", "dest": "/tmp/file", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/tmp/file", "size": 22, "state": "file", "uid": 0}
TASK 6/13 [file module | delete the file /tmp/file] ********************************************************************************************************************************************
changed: 1/1 [localhost] => {"changed": true, "path": "/tmp/file", "state": "absent"}
TASK 7/13 [apt module | install htop] **********************************************************************************************************************************************************
changed: 1/1 [localhost] => {"cache_update_time": 1709459901, "cache_updated": false, "changed": true, "stderr": "debconf: delaying package configuration, since apt-utils is not installed\n", "stderr_lines": ["debconf: delaying package configuration, since apt-utils is not installed"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.\nNeed to get 128 kB of archives.\nAfter this operation, 342 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]\nFetched 128 kB in 0s (655 kB/s)\nSelecting previously unselected package htop.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17239 files and directories currently installed.)\r\nPreparing to unpack .../htop_3.0.5-7build2_amd64.deb ...\r\nUnpacking htop (3.0.5-7build2) ...\r\nSetting up htop (3.0.5-7build2) ...\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Suggested packages:", " lm-sensors lsof strace", "The following NEW packages will be installed:", " htop", "0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.", "Need to get 128 kB of archives.", "After this operation, 342 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]", "Fetched 128 kB in 0s (655 kB/s)", "Selecting previously unselected package htop.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 17239 files and directories currently installed.)", "Preparing to unpack .../htop_3.0.5-7build2_amd64.deb ...", "Unpacking htop (3.0.5-7build2) ...", "Setting up htop (3.0.5-7build2) ..."]}
TASK 8/13 [command module | remove htop to trigger warning] ************************************************************************************************************************************
changed: 1/1 [localhost] => {"changed": true, "cmd": ["apt", "remove", "htop", "--yes"], "delta": "0:00:01.430534", "end": "2024-03-03 10:15:12.155213", "msg": "", "rc": 0, "start": "2024-03-03 10:15:10.724679", "stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.", "stderr_lines": ["", "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n libnl-3-200 libnl-genl-3-200\nUse 'apt autoremove' to remove them.\nThe following packages will be REMOVED:\n htop\n0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.\nAfter this operation, 342 kB disk space will be freed.\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17253 files and directories currently installed.)\r\nRemoving htop (3.0.5-7build2) ...", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following packages were automatically installed and are no longer required:", " libnl-3-200 libnl-genl-3-200", "Use 'apt autoremove' to remove them.", "The following packages will be REMOVED:", " htop", "0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.", "After this operation, 342 kB disk space will be freed.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 17253 files and directories currently installed.)", "Removing htop (3.0.5-7build2) ..."]}
TASK 9/13 [shell module | register result variable] ********************************************************************************************************************************************
changed: 1/1 [localhost] => {"changed": true, "cmd": "/usr/bin/uptime", "delta": "0:00:00.003302", "end": "2024-03-03 10:15:12.306356", "msg": "", "rc": 0, "start": "2024-03-03 10:15:12.303054", "stderr": "", "stderr_lines": [], "stdout": " 10:15:12 up 37 min, 0 users, load average: 1.28, 1.02, 0.91", "stdout_lines": [" 10:15:12 up 37 min, 0 users, load average: 1.28, 1.02, 0.91"]}
TASK 10/13 [debug module | print result variable] **********************************************************************************************************************************************
ok: 1/1 [localhost] => {
"result": {
"changed": true,
"cmd": "/usr/bin/uptime",
"delta": "0:00:00.003302",
"end": "2024-03-03 10:15:12.306356",
"failed": false,
"msg": "",
"rc": 0,
"start": "2024-03-03 10:15:12.303054",
"stderr": "",
"stderr_lines": [],
"stdout": " 10:15:12 up 37 min, 0 users, load average: 1.28, 1.02, 0.91",
"stdout_lines": [
" 10:15:12 up 37 min, 0 users, load average: 1.28, 1.02, 0.91"
]
}
}
TASK 11/13 [debug module | print custom msg with variables] ************************************************************************************************************************************
ok: 1/1 [localhost] => {
"msg": "System localhost has uuid 03000200-0400-0500-0006-000700080009"
}
TASK 12/13 [fail module | let play fail but ignore it] *****************************************************************************************************************************************
fatal: 1/1 [localhost]: FAILED! => {"changed": false, "msg": "The task failed but we ignore this"}
...ignoring
TASK 13/13 [assert] ****************************************************************************************************************************************************************************
ok: 1/1 [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK 14/13 [pause] *****************************************************************************************************************************************************************************
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
ok: 1/1 [localhost] => {"changed": false, "delta": 1, "echo": true, "rc": 0, "start": "2024-03-03 10:15:12.391998", "stderr": "", "stdout": "Paused for 1.0 seconds", "stop": "2024-03-03 10:15:13.394224", "user_input": ""}
PLAY RECAP *************************************************************************************************************************************************************************************
localhost : ok=14 changed=6 unreachable=0 failed=0 rescued=0 ignored=1
Description: The default ansible callback without...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
PLAY [localhost] *******************************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************************
ok: [localhost]
TASK [command module | -ls /root as parameter] *************************************************************************************************************************************************
changed: [localhost] => {"changed": true, "cmd": ["ls", "/root"], "delta": "0:00:00.002306", "end": "2024-03-03 10:15:15.043969", "msg": "", "rc": 0, "start": "2024-03-03 10:15:15.041663", "stderr": "", "stderr_lines": [], "stdout": "ansi2html.sh\ncasts\ncss\nDockerfile\nindex.html\njs\nplaybook.yml\nREADME.md\nrequirements.txt\nrun.sh\nwebfonts", "stdout_lines": ["ansi2html.sh", "casts", "css", "Dockerfile", "index.html", "js", "playbook.yml", "README.md", "requirements.txt", "run.sh", "webfonts"]}
TASK [file module | delete the file /tmp/file] *************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "path": "/tmp/file", "state": "absent"}
TASK [copy module | create the file /tmp/file] *************************************************************************************************************************************************
changed: [localhost] => {"changed": true, "checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7", "dest": "/tmp/file", "gid": 0, "group": "root", "md5sum": "8bf7d228d286a5809b9284f81b6f2b88", "mode": "0644", "owner": "root", "size": 22, "src": "/root/.ansible/tmp/ansible-tmp-1709460915.3576446-5397-186595274884311/source", "state": "file", "uid": 0}
TASK [copy module | change the file /tmp/file] *************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7", "dest": "/tmp/file", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/tmp/file", "size": 22, "state": "file", "uid": 0}
TASK [file module | delete the file /tmp/file] *************************************************************************************************************************************************
changed: [localhost] => {"changed": true, "path": "/tmp/file", "state": "absent"}
TASK [apt module | install htop] ***************************************************************************************************************************************************************
changed: [localhost] => {"cache_update_time": 1709459901, "cache_updated": false, "changed": true, "stderr": "debconf: delaying package configuration, since apt-utils is not installed\n", "stderr_lines": ["debconf: delaying package configuration, since apt-utils is not installed"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.\nNeed to get 128 kB of archives.\nAfter this operation, 342 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]\nFetched 128 kB in 0s (667 kB/s)\nSelecting previously unselected package htop.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17239 files and directories currently installed.)\r\nPreparing to unpack .../htop_3.0.5-7build2_amd64.deb ...\r\nUnpacking htop (3.0.5-7build2) ...\r\nSetting up htop (3.0.5-7build2) ...\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Suggested packages:", " lm-sensors lsof strace", "The following NEW packages will be installed:", " htop", "0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.", "Need to get 128 kB of archives.", "After this operation, 342 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]", "Fetched 128 kB in 0s (667 kB/s)", "Selecting previously unselected package htop.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 17239 files and directories currently installed.)", "Preparing to unpack .../htop_3.0.5-7build2_amd64.deb ...", "Unpacking htop (3.0.5-7build2) ...", "Setting up htop (3.0.5-7build2) ..."]}
TASK [command module | remove htop to trigger warning] *****************************************************************************************************************************************
changed: [localhost] => {"changed": true, "cmd": ["apt", "remove", "htop", "--yes"], "delta": "0:00:01.465076", "end": "2024-03-03 10:15:21.801995", "msg": "", "rc": 0, "start": "2024-03-03 10:15:20.336919", "stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.", "stderr_lines": ["", "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n libnl-3-200 libnl-genl-3-200\nUse 'apt autoremove' to remove them.\nThe following packages will be REMOVED:\n htop\n0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.\nAfter this operation, 342 kB disk space will be freed.\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17253 files and directories currently installed.)\r\nRemoving htop (3.0.5-7build2) ...", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following packages were automatically installed and are no longer required:", " libnl-3-200 libnl-genl-3-200", "Use 'apt autoremove' to remove them.", "The following packages will be REMOVED:", " htop", "0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.", "After this operation, 342 kB disk space will be freed.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 17253 files and directories currently installed.)", "Removing htop (3.0.5-7build2) ..."]}
TASK [shell module | register result variable] *************************************************************************************************************************************************
changed: [localhost] => {"changed": true, "cmd": "/usr/bin/uptime", "delta": "0:00:00.002997", "end": "2024-03-03 10:15:21.950788", "msg": "", "rc": 0, "start": "2024-03-03 10:15:21.947791", "stderr": "", "stderr_lines": [], "stdout": " 10:15:21 up 37 min, 0 users, load average: 1.16, 1.00, 0.90", "stdout_lines": [" 10:15:21 up 37 min, 0 users, load average: 1.16, 1.00, 0.90"]}
TASK [debug module | print result variable] ****************************************************************************************************************************************************
ok: [localhost] => {
"result": {
"changed": true,
"cmd": "/usr/bin/uptime",
"delta": "0:00:00.002997",
"end": "2024-03-03 10:15:21.950788",
"failed": false,
"msg": "",
"rc": 0,
"start": "2024-03-03 10:15:21.947791",
"stderr": "",
"stderr_lines": [],
"stdout": " 10:15:21 up 37 min, 0 users, load average: 1.16, 1.00, 0.90",
"stdout_lines": [
" 10:15:21 up 37 min, 0 users, load average: 1.16, 1.00, 0.90"
]
}
}
TASK [debug module | print custom msg with variables] ******************************************************************************************************************************************
ok: [localhost] => {
"msg": "System localhost has uuid 03000200-0400-0500-0006-000700080009"
}
TASK [fail module | let play fail but ignore it] ***********************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "The task failed but we ignore this"}
...ignoring
TASK [assert] **********************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [pause] ***********************************************************************************************************************************************************************************
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
ok: [localhost] => {"changed": false, "delta": 1, "echo": true, "rc": 0, "start": "2024-03-03 10:15:22.031754", "stderr": "", "stdout": "Paused for 1.0 seconds", "stop": "2024-03-03 10:15:23.034268", "user_input": ""}
PLAY RECAP *************************************************************************************************************************************************************************************
localhost : ok=14 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1
Description: minimal stdout output
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
PLAY 1: LOCALHOST
task 1.task 1: localhosttask 2.task 2: localhosttask 2: command module | -ls /root as parameter
changed: localhost: {"changed": true, "cmd": ["ls", "/root"], "rc": 0, "stdout": "ansi2html.sh\ncasts\ncss\nDockerfile\nindex.html\njs\nplaybook.yml\nREADME.md\nrequirements.txt\nrun.sh\nwebfonts"}
task 3.task 3: localhosttask 4.
TASK [copy module | create the file /tmp/file] *************************************************************************************************************************************************
--- before
+++ after: /tmp/file
@@ -0,0 +1,2 @@
+localhost
+2a45ed47c865
\ No newline at end of file
task 4: localhosttask 4: copy module | create the file /tmp/file
changed: localhost: {"changed": true, "checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7", "dest": "/tmp/file", "gid": 0, "group": "root", "md5sum": "8bf7d228d286a5809b9284f81b6f2b88", "mode": "0644", "owner": "root", "size": 22, "src": "/root/.ansible/tmp/ansible-tmp-1709460924.8637679-5729-237652203494171/source", "state": "file", "uid": 0}
task 5.task 5: localhosttask 6.
TASK [file module | delete the file /tmp/file] *************************************************************************************************************************************************
--- before
+++ after
@@ -1,4 +1,4 @@
{
"path": "/tmp/file",
- "state": "file"
+ "state": "absent"
}
task 6: localhosttask 6: file module | delete the file /tmp/file
changed: localhost: {"changed": true, "path": "/tmp/file", "state": "absent"}
task 7.
TASK [apt module | install htop] ***************************************************************************************************************************************************************
Suggested packages:
lm-sensors lsof strace
The following NEW packages will be installed:
htop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
task 7: localhosttask 7: apt module | install htop
changed: localhost: {"cache_update_time": 1709459901, "cache_updated": false, "changed": true, "stderr": "debconf: delaying package configuration, since apt-utils is not installed\n", "stderr_lines": ["debconf: delaying package configuration, since apt-utils is not installed"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.\nNeed to get 128 kB of archives.\nAfter this operation, 342 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]\nFetched 128 kB in 0s (669 kB/s)\nSelecting previously unselected package htop.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17239 files and directories currently installed.)\r\nPreparing to unpack .../htop_3.0.5-7build2_amd64.deb ...\r\nUnpacking htop (3.0.5-7build2) ...\r\nSetting up htop (3.0.5-7build2) ...\r\n"}
task 8.task 8: localhosttask 8: command module | remove htop to trigger warning
changed: localhost: {"changed": true, "cmd": ["apt", "remove", "htop", "--yes"], "rc": 0, "stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.", "stderr_lines": ["", "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n libnl-3-200 libnl-genl-3-200\nUse 'apt autoremove' to remove them.\nThe following packages will be REMOVED:\n htop\n0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.\nAfter this operation, 342 kB disk space will be freed.\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17253 files and directories currently installed.)\r\nRemoving htop (3.0.5-7build2) ..."}
task 9.task 9: localhosttask 9: shell module | register result variable
changed: localhost: {"changed": true, "cmd": "/usr/bin/uptime", "rc": 0, "stdout": " 10:15:31 up 37 min, 0 users, load average: 1.06, 0.98, 0.90"}
task 10.task 10: localhosttask 11.task 11: localhosttask 12.task 12: localhosttask 13.task 13: localhosttask 14.Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
task 14: localhostSUMMARY
localhost : ok=14 changed=6 unreachable=0 failed=0 rescued=0 ignored=1
Description: Customize the output
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
PLAY [localhost] *******************************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************************
ok: [localhost]
TASK [command module | -ls /root as parameter] *************************************************************************************************************************************************
changed: [localhost] => {"changed": true, "cmd": ["ls", "/root"], "delta": "0:00:00.002213", "end": "2024-03-03 10:15:33.881848", "msg": "", "rc": 0, "start": "2024-03-03 10:15:33.879635", "stderr": "", "stderr_lines": [], "stdout": "ansi2html.sh\ncasts\ncss\nDockerfile\nindex.html\njs\nplaybook.yml\nREADME.md\nrequirements.txt\nrun.sh\nwebfonts", "stdout_lines": ["ansi2html.sh", "casts", "css", "Dockerfile", "index.html", "js", "playbook.yml", "README.md", "requirements.txt", "run.sh", "webfonts"]}
TASK [file module | delete the file /tmp/file] *************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "path": "/tmp/file", "state": "absent"}
TASK [copy module | create the file /tmp/file] *************************************************************************************************************************************************
--- before
+++ after: /tmp/file
@@ -0,0 +1,2 @@
+localhost
+2a45ed47c865
\ No newline at end of file
changed: [localhost] => {"changed": true, "checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7", "dest": "/tmp/file", "gid": 0, "group": "root", "md5sum": "8bf7d228d286a5809b9284f81b6f2b88", "mode": "0644", "owner": "root", "size": 22, "src": "/root/.ansible/tmp/ansible-tmp-1709460934.1592987-6061-281474088350030/source", "state": "file", "uid": 0}
TASK [copy module | change the file /tmp/file] *************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7", "dest": "/tmp/file", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/tmp/file", "size": 22, "state": "file", "uid": 0}
TASK [file module | delete the file /tmp/file] *************************************************************************************************************************************************
--- before
+++ after
@@ -1,4 +1,4 @@
{
"path": "/tmp/file",
- "state": "file"
+ "state": "absent"
}
changed: [localhost] => {"changed": true, "path": "/tmp/file", "state": "absent"}
TASK [apt module | install htop] ***************************************************************************************************************************************************************
Suggested packages:
lm-sensors lsof strace
The following NEW packages will be installed:
htop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
changed: [localhost] => {"cache_update_time": 1709459901, "cache_updated": false, "changed": true, "stderr": "debconf: delaying package configuration, since apt-utils is not installed\n", "stderr_lines": ["debconf: delaying package configuration, since apt-utils is not installed"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.\nNeed to get 128 kB of archives.\nAfter this operation, 342 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]\nFetched 128 kB in 0s (608 kB/s)\nSelecting previously unselected package htop.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17239 files and directories currently installed.)\r\nPreparing to unpack .../htop_3.0.5-7build2_amd64.deb ...\r\nUnpacking htop (3.0.5-7build2) ...\r\nSetting up htop (3.0.5-7build2) ...\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Suggested packages:", " lm-sensors lsof strace", "The following NEW packages will be installed:", " htop", "0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.", "Need to get 128 kB of archives.", "After this operation, 342 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]", "Fetched 128 kB in 0s (608 kB/s)", "Selecting previously unselected package htop.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 17239 files and directories currently installed.)", "Preparing to unpack .../htop_3.0.5-7build2_amd64.deb ...", "Unpacking htop (3.0.5-7build2) ...", "Setting up htop (3.0.5-7build2) ..."]}
TASK [command module | remove htop to trigger warning] *****************************************************************************************************************************************
changed: [localhost] => {"changed": true, "cmd": ["apt", "remove", "htop", "--yes"], "delta": "0:00:01.400864", "end": "2024-03-03 10:15:40.511780", "msg": "", "rc": 0, "start": "2024-03-03 10:15:39.110916", "stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.", "stderr_lines": ["", "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n libnl-3-200 libnl-genl-3-200\nUse 'apt autoremove' to remove them.\nThe following packages will be REMOVED:\n htop\n0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.\nAfter this operation, 342 kB disk space will be freed.\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17253 files and directories currently installed.)\r\nRemoving htop (3.0.5-7build2) ...", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following packages were automatically installed and are no longer required:", " libnl-3-200 libnl-genl-3-200", "Use 'apt autoremove' to remove them.", "The following packages will be REMOVED:", " htop", "0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.", "After this operation, 342 kB disk space will be freed.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 17253 files and directories currently installed.)", "Removing htop (3.0.5-7build2) ..."]}
TASK [shell module | register result variable] *************************************************************************************************************************************************
changed: [localhost] => {"changed": true, "cmd": "/usr/bin/uptime", "delta": "0:00:00.003433", "end": "2024-03-03 10:15:40.663276", "msg": "", "rc": 0, "start": "2024-03-03 10:15:40.659843", "stderr": "", "stderr_lines": [], "stdout": " 10:15:40 up 37 min, 0 users, load average: 1.05, 0.98, 0.90", "stdout_lines": [" 10:15:40 up 37 min, 0 users, load average: 1.05, 0.98, 0.90"]}
TASK [debug module | print result variable] ****************************************************************************************************************************************************
ok: [localhost] => {
"result": {
"changed": true,
"cmd": "/usr/bin/uptime",
"delta": "0:00:00.003433",
"end": "2024-03-03 10:15:40.663276",
"failed": false,
"msg": "",
"rc": 0,
"start": "2024-03-03 10:15:40.659843",
"stderr": "",
"stderr_lines": [],
"stdout": " 10:15:40 up 37 min, 0 users, load average: 1.05, 0.98, 0.90",
"stdout_lines": [
" 10:15:40 up 37 min, 0 users, load average: 1.05, 0.98, 0.90"
]
}
}
TASK [debug module | print custom msg with variables] ******************************************************************************************************************************************
ok: [localhost] => {
"msg": "System localhost has uuid 03000200-0400-0500-0006-000700080009"
}
TASK [fail module | let play fail but ignore it] ***********************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "The task failed but we ignore this"}
...ignoring
TASK [assert] **********************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [pause] ***********************************************************************************************************************************************************************************
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
ok: [localhost] => {"changed": false, "delta": 1, "echo": true, "rc": 0, "start": "2024-03-03 10:15:40.779642", "stderr": "", "stdout": "Paused for 1.0 seconds", "stop": "2024-03-03 10:15:41.782848", "user_input": ""}
PLAY RECAP *************************************************************************************************************************************************************************************
localhost : ok=14 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1
Description: Create distributed traces for each A...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
ERROR! The `elastic-apm` must be installed to use this plugin
Description: post task events to hipchat
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
[WARNING]: The `prettytable` python module is not installed. Disabling the HipChat callback plugin.
ERROR! No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.hipchat setting: token
Description: post task events to a jabber server
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
[WARNING]: The required python xmpp library (xmpppy) is not installed. pip install git+https://github.com/ArchipelProject/xmpppy
[WARNING]: Jabber CallBack wants the JABBER_SERV, JABBER_USER, JABBER_PASS and JABBER_TO environment variables
ERROR! No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.jabber setting: server
Description: Posts task results to Azure Log Anal...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
ERROR! No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.loganalytics setting: workspace_id
Description: Sends playbook logs to LogDNA
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
ERROR! No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.logdna setting: conf_key
Description: Sends events to Logentries
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
[WARNING]: The `certifi` python module is not installed. Disabling the Logentries callback plugin.
ERROR! No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.logentries setting: token
Description: write playbook output to log file
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
Description: Sends events to Logstash
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
[WARNING]: The required python-logstash/python3-logstash is not installed. pip install python-logstash for Python 2pip install python3-logstash for Python 3
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
Description: Sends failure events via email
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
ERROR! No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.mail setting: sender
Description: Post task results to a Nagios server...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
ERROR! No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.nrdp setting: url
Description: Don't display stuff to screen
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
Description: Create distributed traces with OpenT...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
ERROR! The `opentelemetry-api`, `opentelemetry-exporter-otlp` or `opentelemetry-sdk` must be installed to use this plugin
Description: notify using software speech synthes...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
[WARNING]: Unable to find either 'say' or 'espeak' executable, plugin say.py disabled
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
Description: only print certain tasks
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
...........
# fail module | let play fail but ignore it ****************************************************************************
* localhost - FAILED!!! -- The task failed but we ignore this --------------
.Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
.
# STATS ****************************************************************************************************************
localhost : ok=14 changed=6 failed=0 unreachable=0 rescued=0 ignored=1
Description: Sends play events to a Slack channel
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
[WARNING]: The `prettytable` python module is not installed. Disabling the Slack callback plugin.
ERROR! No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.slack setting: webhook_url
Description: Sends task result events to Splunk H...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
[WARNING]: Splunk HTTP collector source URL was not provided. The Splunk HTTP collector source URL can be provided using the `SPLUNK_URL` environment variable or in the ansible.cfg file.
[WARNING]: Splunk HTTP collector requires an authenticationtoken. The Splunk HTTP collector authentication token can be provided using the `SPLUNK_AUTHTOKEN` environment variable or in the
ansible.cfg file.
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
Description: Sends task result events to Sumologi...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
[WARNING]: Sumologic HTTP collector source URL was not provided. The Sumologic HTTP collector source URL can be provided using the `SUMOLOGIC_URL` environment variable or in the ansible.cfg
file.
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
Description: sends JSON events to syslog
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
Description: condensed Ansible output
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
Executing playbook playbook.yml
- localhost on hosts: localhost -
Gathering Facts...
localhost ok
command module | -ls /root as parameter...
localhost done: {
"changed": true,
"cmd": [
"ls",
"/root"
],
"delta": "0:00:00.002733",
"end": "2024-03-03 10:17:06.848118",
"msg": "",
"rc": 0,
"start": "2024-03-03 10:17:06.845385",
"stderr": "",
"stderr_lines": [],
"stdout": "ansi2html.sh\ncasts\ncss\nDockerfile\nindex.html\njs\nplaybook.yml\nREADME.md\nrequirements.txt\nrun.sh\nwebfonts",
"stdout_lines": [
"ansi2html.sh",
"casts",
"css",
"Dockerfile",
"index.html",
"js",
"playbook.yml",
"README.md",
"requirements.txt",
"run.sh",
"webfonts"
]
}
file module | delete the file /tmp/file...
localhost ok: {
"changed": false,
"path": "/tmp/file",
"state": "absent"
}
copy module | create the file /tmp/file...
--- before
+++ after: /tmp/file
@@ -0,0 +1,2 @@
+localhost
+2a45ed47c865
\ No newline at end of file
localhost done: {
"changed": true,
"checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7",
"dest": "/tmp/file",
"gid": 0,
"group": "root",
"md5sum": "8bf7d228d286a5809b9284f81b6f2b88",
"mode": "0644",
"owner": "root",
"size": 22,
"src": "/root/.ansible/tmp/ansible-tmp-1709461027.1323705-9129-42092933506438/source",
"state": "file",
"uid": 0
}
copy module | change the file /tmp/file...
localhost ok: {
"changed": false,
"checksum": "7041de6402ae22a711c7feeb189f4c5c575756e7",
"dest": "/tmp/file",
"gid": 0,
"group": "root",
"mode": "0644",
"owner": "root",
"path": "/tmp/file",
"size": 22,
"state": "file",
"uid": 0
}
file module | delete the file /tmp/file...
--- before
+++ after
@@ -1,4 +1,4 @@
{
"path": "/tmp/file",
- "state": "file"
+ "state": "absent"
}
localhost done: {
"changed": true,
"path": "/tmp/file",
"state": "absent"
}
apt module | install htop...
Suggested packages:
lm-sensors lsof strace
The following NEW packages will be installed:
htop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
localhost done: {
"cache_update_time": 1709459901,
"cache_updated": false,
"changed": true,
"stderr": "debconf: delaying package configuration, since apt-utils is not installed\n",
"stderr_lines": [
"debconf: delaying package configuration, since apt-utils is not installed"
],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.\nNeed to get 128 kB of archives.\nAfter this operation, 342 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]\nFetched 128 kB in 1s (223 kB/s)\nSelecting previously unselected package htop.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17239 files and directories currently installed.)\r\nPreparing to unpack .../htop_3.0.5-7build2_amd64.deb ...\r\nUnpacking htop (3.0.5-7build2) ...\r\nSetting up htop (3.0.5-7build2) ...\r\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"Suggested packages:",
" lm-sensors lsof strace",
"The following NEW packages will be installed:",
" htop",
"0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.",
"Need to get 128 kB of archives.",
"After this operation, 342 kB of additional disk space will be used.",
"Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]",
"Fetched 128 kB in 1s (223 kB/s)",
"Selecting previously unselected package htop.",
"(Reading database ... ",
"(Reading database ... 5%",
"(Reading database ... 10%",
"(Reading database ... 15%",
"(Reading database ... 20%",
"(Reading database ... 25%",
"(Reading database ... 30%",
"(Reading database ... 35%",
"(Reading database ... 40%",
"(Reading database ... 45%",
"(Reading database ... 50%",
"(Reading database ... 55%",
"(Reading database ... 60%",
"(Reading database ... 65%",
"(Reading database ... 70%",
"(Reading database ... 75%",
"(Reading database ... 80%",
"(Reading database ... 85%",
"(Reading database ... 90%",
"(Reading database ... 95%",
"(Reading database ... 100%",
"(Reading database ... 17239 files and directories currently installed.)",
"Preparing to unpack .../htop_3.0.5-7build2_amd64.deb ...",
"Unpacking htop (3.0.5-7build2) ...",
"Setting up htop (3.0.5-7build2) ..."
]
}
command module | remove htop to trigger warning...
localhost done: {
"changed": true,
"cmd": [
"apt",
"remove",
"htop",
"--yes"
],
"delta": "0:00:01.458689",
"end": "2024-03-03 10:17:13.837847",
"msg": "",
"rc": 0,
"start": "2024-03-03 10:17:12.379158",
"stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.",
"stderr_lines": [
"",
"WARNING: apt does not have a stable CLI interface. Use with caution in scripts."
],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n libnl-3-200 libnl-genl-3-200\nUse 'apt autoremove' to remove them.\nThe following packages will be REMOVED:\n htop\n0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.\nAfter this operation, 342 kB disk space will be freed.\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17253 files and directories currently installed.)\r\nRemoving htop (3.0.5-7build2) ...",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"The following packages were automatically installed and are no longer required:",
" libnl-3-200 libnl-genl-3-200",
"Use 'apt autoremove' to remove them.",
"The following packages will be REMOVED:",
" htop",
"0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.",
"After this operation, 342 kB disk space will be freed.",
"(Reading database ... ",
"(Reading database ... 5%",
"(Reading database ... 10%",
"(Reading database ... 15%",
"(Reading database ... 20%",
"(Reading database ... 25%",
"(Reading database ... 30%",
"(Reading database ... 35%",
"(Reading database ... 40%",
"(Reading database ... 45%",
"(Reading database ... 50%",
"(Reading database ... 55%",
"(Reading database ... 60%",
"(Reading database ... 65%",
"(Reading database ... 70%",
"(Reading database ... 75%",
"(Reading database ... 80%",
"(Reading database ... 85%",
"(Reading database ... 90%",
"(Reading database ... 95%",
"(Reading database ... 100%",
"(Reading database ... 17253 files and directories currently installed.)",
"Removing htop (3.0.5-7build2) ..."
]
}
shell module | register result variable...
localhost done: {
"changed": true,
"cmd": "/usr/bin/uptime",
"delta": "0:00:00.003356",
"end": "2024-03-03 10:17:13.986825",
"msg": "",
"rc": 0,
"start": "2024-03-03 10:17:13.983469",
"stderr": "",
"stderr_lines": [],
"stdout": " 10:17:13 up 39 min, 0 users, load average: 2.24, 1.40, 1.06",
"stdout_lines": [
" 10:17:13 up 39 min, 0 users, load average: 2.24, 1.40, 1.06"
]
}
debug module | print result variable...
localhost ok: {
"changed": false,
"result": {
"changed": true,
"cmd": "/usr/bin/uptime",
"delta": "0:00:00.003356",
"end": "2024-03-03 10:17:13.986825",
"failed": false,
"msg": "",
"rc": 0,
"start": "2024-03-03 10:17:13.983469",
"stderr": "",
"stderr_lines": [],
"stdout": " 10:17:13 up 39 min, 0 users, load average: 2.24, 1.40, 1.06",
"stdout_lines": [
" 10:17:13 up 39 min, 0 users, load average: 2.24, 1.40, 1.06"
]
}
}
debug module | print custom msg with variables...
localhost ok: {
"changed": false,
"msg": "System localhost has uuid 03000200-0400-0500-0006-000700080009"
}
fail module | let play fail but ignore it...
localhost failed: {
"changed": false,
"msg": "The task failed but we ignore this"
}
assert...
localhost ok: {
"changed": false,
"msg": "All assertions passed"
}
pause...
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
localhost ok: {
"changed": false,
"delta": 1,
"echo": true,
"rc": 0,
"start": "2024-03-03 10:17:14.070125",
"stderr": "",
"stdout": "Paused for 1.0 seconds",
"stop": "2024-03-03 10:17:15.071983",
"user_input": ""
}
- Play recap -
localhost : ok=14 changed=6 unreachable=0 failed=0 rescued=0 ignored=1
Description: YAML-ized Ansible screen output
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
PLAY [localhost] *******************************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************************
ok: [localhost]
TASK [command module | -ls /root as parameter] *************************************************************************************************************************************************
changed: [localhost] => changed=true
cmd:
- ls
- /root
delta: '0:00:00.002346'
end: '2024-03-03 10:17:16.637459'
msg: ''
rc: 0
start: '2024-03-03 10:17:16.635113'
stderr: ''
stderr_lines: <omitted>
stdout: |-
ansi2html.sh
casts
css
Dockerfile
index.html
js
playbook.yml
README.md
requirements.txt
run.sh
webfonts
stdout_lines: <omitted>
TASK [file module | delete the file /tmp/file] *************************************************************************************************************************************************
ok: [localhost] => changed=false
path: /tmp/file
state: absent
TASK [copy module | create the file /tmp/file] *************************************************************************************************************************************************
--- before
+++ after: /tmp/file
@@ -0,0 +1,2 @@
+localhost
+2a45ed47c865
\ No newline at end of file
changed: [localhost] => changed=true
checksum: 7041de6402ae22a711c7feeb189f4c5c575756e7
dest: /tmp/file
gid: 0
group: root
md5sum: 8bf7d228d286a5809b9284f81b6f2b88
mode: '0644'
owner: root
size: 22
src: /root/.ansible/tmp/ansible-tmp-1709461036.923177-9461-214784356325930/source
state: file
uid: 0
TASK [copy module | change the file /tmp/file] *************************************************************************************************************************************************
ok: [localhost] => changed=false
checksum: 7041de6402ae22a711c7feeb189f4c5c575756e7
dest: /tmp/file
gid: 0
group: root
mode: '0644'
owner: root
path: /tmp/file
size: 22
state: file
uid: 0
TASK [file module | delete the file /tmp/file] *************************************************************************************************************************************************
--- before
+++ after
@@ -1,2 +1,2 @@
path: /tmp/file
-state: file
+state: absent
changed: [localhost] => changed=true
path: /tmp/file
state: absent
TASK [apt module | install htop] ***************************************************************************************************************************************************************
Suggested packages:
lm-sensors lsof strace
The following NEW packages will be installed:
htop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
changed: [localhost] => changed=true
cache_update_time: 1709459901
cache_updated: false
stderr: |-
debconf: delaying package configuration, since apt-utils is not installed
stderr_lines: <omitted>
stdout: |-
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
lm-sensors lsof strace
The following NEW packages will be installed:
htop
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
Need to get 128 kB of archives.
After this operation, 342 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]
Fetched 128 kB in 1s (217 kB/s)
Selecting previously unselected package htop.
(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 17239 files and directories currently installed.)
Preparing to unpack .../htop_3.0.5-7build2_amd64.deb ...
Unpacking htop (3.0.5-7build2) ...
Setting up htop (3.0.5-7build2) ...
stdout_lines: <omitted>
TASK [command module | remove htop to trigger warning] *****************************************************************************************************************************************
changed: [localhost] => changed=true
cmd:
- apt
- remove
- htop
- --yes
delta: '0:00:01.385017'
end: '2024-03-03 10:17:23.571453'
msg: ''
rc: 0
start: '2024-03-03 10:17:22.186436'
stderr: |2-
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
stderr_lines: <omitted>
stdout: |-
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libnl-3-200 libnl-genl-3-200
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
htop
0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.
After this operation, 342 kB disk space will be freed.
(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 17253 files and directories currently installed.)
Removing htop (3.0.5-7build2) ...
stdout_lines: <omitted>
TASK [shell module | register result variable] *************************************************************************************************************************************************
changed: [localhost] => changed=true
cmd: /usr/bin/uptime
delta: '0:00:00.003002'
end: '2024-03-03 10:17:23.720229'
msg: ''
rc: 0
start: '2024-03-03 10:17:23.717227'
stderr: ''
stderr_lines: <omitted>
stdout: ' 10:17:23 up 39 min, 0 users, load average: 2.12, 1.40, 1.06'
stdout_lines: <omitted>
TASK [debug module | print result variable] ****************************************************************************************************************************************************
ok: [localhost] =>
result:
changed: true
cmd: /usr/bin/uptime
delta: '0:00:00.003002'
end: '2024-03-03 10:17:23.720229'
failed: false
msg: ''
rc: 0
start: '2024-03-03 10:17:23.717227'
stderr: ''
stderr_lines: []
stdout: ' 10:17:23 up 39 min, 0 users, load average: 2.12, 1.40, 1.06'
stdout_lines:
- ' 10:17:23 up 39 min, 0 users, load average: 2.12, 1.40, 1.06'
TASK [debug module | print custom msg with variables] ******************************************************************************************************************************************
ok: [localhost] =>
msg: System localhost has uuid 03000200-0400-0500-0006-000700080009
TASK [fail module | let play fail but ignore it] ***********************************************************************************************************************************************
fatal: [localhost]: FAILED! => changed=false
msg: The task failed but we ignore this
...ignoring
TASK [assert] **********************************************************************************************************************************************************************************
ok: [localhost] => changed=false
msg: All assertions passed
TASK [pause] ***********************************************************************************************************************************************************************************
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
ok: [localhost] => changed=false
delta: 1
echo: true
rc: 0
start: '2024-03-03 10:17:23.802224'
stderr: ''
stdout: Paused for 1.0 seconds
stop: '2024-03-03 10:17:24.805533'
user_input: ''
PLAY RECAP *************************************************************************************************************************************************************************************
localhost : ok=14 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1
Description: send ansible events as annotations o...
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
ERROR! No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.grafana.plugins.callback.grafana_annotations setting: grafana_url
Description: Output the log of ansible
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
OK: localhost {'ansible_facts': {'ansible_distribution': 'Ubuntu', 'ansible_distribution_release': 'jammy', 'ansible_distribution_version': '22.04', 'ansible_distribution_major_version': '22', 'ansible_distribution_file_path': '/etc/os-release', 'ansible_distribution_file_variety': 'Debian', 'ansible_distribution_file_parsed': True, 'ansible_os_family': 'Debian', 'ansible_is_chroot': False, 'ansible_date_time': {'year': '2024', 'month': '03', 'weekday': 'Sunday', 'weekday_number': '0', 'weeknumber': '09', 'day': '03', 'hour': '10', 'minute': '17', 'second': '26', 'epoch': '1709461046', 'epoch_int': '1709461046', 'date': '2024-03-03', 'time': '10:17:26', 'iso8601_micro': '2024-03-03T10:17:26.353528Z', 'iso8601': '2024-03-03T10:17:26Z', 'iso8601_basic': '20240303T101726353528', 'iso8601_basic_short': '20240303T101726', 'tz': 'UTC', 'tz_dst': 'UTC', 'tz_offset': '+0000'}, '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_virtualization_type': 'docker', 'ansible_virtualization_role': 'guest', 'ansible_virtualization_tech_guest': ['docker', 'container'], 'ansible_virtualization_tech_host': ['kvm', 'virtualbox'], 'ansible_loadavg': {'1m': 2.11962890625, '5m': 1.40234375, '15m': 1.06201171875}, 'ansible_system': 'Linux', 'ansible_kernel': '6.7.7-arch1-1', 'ansible_kernel_version': '#1 SMP PREEMPT_DYNAMIC Fri, 01 Mar 2024 15:07:39 +0000', 'ansible_machine': 'x86_64', 'ansible_python_version': '3.10.12', 'ansible_fqdn': '2a45ed47c865', 'ansible_hostname': '2a45ed47c865', 'ansible_nodename': '2a45ed47c865', 'ansible_domain': '', 'ansible_userspace_bits': '64', 'ansible_architecture': 'x86_64', 'ansible_userspace_architecture': 'x86_64', 'ansible_pkg_mgr': 'apt', 'ansible_processor': ['0', 'GenuineIntel', 'Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz', '1', 'GenuineIntel', 'Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz', '2', 'GenuineIntel', 'Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz', '3', 'GenuineIntel', 'Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz'], 'ansible_processor_count': 1, 'ansible_processor_cores': 4, 'ansible_processor_threads_per_core': 1, 'ansible_processor_vcpus': 4, 'ansible_processor_nproc': 4, 'ansible_memtotal_mb': 15943, 'ansible_memfree_mb': 8195, 'ansible_swaptotal_mb': 16383, 'ansible_swapfree_mb': 16383, 'ansible_memory_mb': {'real': {'total': 15943, 'used': 7748, 'free': 8195}, 'nocache': {'free': 11704, 'used': 4239}, 'swap': {'total': 16383, 'free': 16383, 'used': 0, 'cached': 0}}, 'ansible_bios_date': '12/17/2014', 'ansible_bios_vendor': 'American Megatrends Inc.', 'ansible_bios_version': 'P1.50', 'ansible_board_asset_tag': 'NA', 'ansible_board_name': 'Z97 Extreme4', 'ansible_board_serial': 'M80-4C017800723', 'ansible_board_vendor': 'ASRock', 'ansible_board_version': 'NA', 'ansible_chassis_asset_tag': 'To Be Filled By O.E.M.', 'ansible_chassis_serial': 'To Be Filled By O.E.M.', 'ansible_chassis_vendor': 'To Be Filled By O.E.M.', 'ansible_chassis_version': 'To Be Filled By O.E.M.', 'ansible_form_factor': 'Desktop', 'ansible_product_name': 'To Be Filled By O.E.M.', 'ansible_product_serial': 'To Be Filled By O.E.M.', 'ansible_product_uuid': '03000200-0400-0500-0006-000700080009', 'ansible_product_version': 'To Be Filled By O.E.M.', 'ansible_system_vendor': 'To Be Filled By O.E.M.', 'ansible_devices': {'sdb': {'virtual': 1, 'links': {'ids': [], 'uuids': [], 'labels': [], 'masters': []}, 'vendor': 'ATA', 'model': 'WDC WD10EZEX-19Z', 'sas_address': None, 'sas_device_handle': None, 'removable': '0', 'support_discard': '0', 'partitions': {'sdb1': {'links': {'ids': [], 'uuids': [], 'labels': [], 'masters': []}, 'start': '2048', 'sectors': '1953513472', 'sectorsize': 512, 'size': '931.51 GB', 'uuid': None, 'holders': []}}, 'rotational': '1', 'scheduler_mode': 'mq-deadline', 'sectors': '1953516911', 'sectorsize': '512', 'size': '931.51 GB', 'host': '', 'holders': []}, 'sr0': {'virtual': 1, 'links': {'ids': [], 'uuids': [], 'labels': [], 'masters': []}, 'vendor': 'HL-DT-ST', 'model': 'BD-RE BH10LS30', 'sas_address': None, 'sas_device_handle': None, 'removable': '1', 'support_discard': '0', 'partitions': {}, 'rotational': '1', 'scheduler_mode': 'mq-deadline', 'sectors': '2097151', 'sectorsize': '512', 'size': '1024.00 MB', 'host': '', 'holders': []}, 'sdc': {'virtual': 1, 'links': {'ids': [], 'uuids': [], 'labels': [], 'masters': []}, 'vendor': 'ATA', 'model': 'WDC WD5000AAKS-0', 'sas_address': None, 'sas_device_handle': None, 'removable': '0', 'support_discard': '0', 'partitions': {'sdc2': {'links': {'ids': [], 'uuids': [], 'labels': [], 'masters': []}, 'start': '206848', 'sectors': '976553984', 'sectorsize': 512, 'size': '465.66 GB', 'uuid': None, 'holders': []}, 'sdc1': {'links': {'ids': [], 'uuids': [], 'labels': [], 'masters': []}, 'start': '2048', 'sectors': '204800', 'sectorsize': 512, 'size': '100.00 MB', 'uuid': None, 'holders': []}}, 'rotational': '1', 'scheduler_mode': 'mq-deadline', 'sectors': '976764911', 'sectorsize': '512', 'size': '465.76 GB', 'host': '', 'holders': []}, 'sda': {'virtual': 1, 'links': {'ids': [], 'uuids': [], 'labels': [], 'masters': []}, 'vendor': 'ATA', 'model': 'Samsung SSD 840', 'sas_address': None, 'sas_device_handle': None, 'removable': '0', 'support_discard': '512', 'partitions': {'sda1': {'links': {'ids': [], 'uuids': [], 'labels': [], 'masters': []}, 'start': '2048', 'sectors': '234431343', 'sectorsize': 512, 'size': '111.79 GB', 'uuid': None, 'holders': []}}, 'rotational': '0', 'scheduler_mode': 'mq-deadline', 'sectors': '234433391', 'sectorsize': '512', 'size': '111.79 GB', 'host': '', 'holders': []}}, 'ansible_device_links': {'ids': {}, 'uuids': {}, 'labels': {}, 'masters': {}}, 'ansible_uptime_seconds': 2380, 'ansible_lvm': 'N/A', 'ansible_mounts': [{'mount': '/tmp/output', 'device': '/dev/sdb1', 'fstype': 'ext4', 'options': 'rw,relatime,data=ordered,bind', 'size_total': 984293781504, 'size_available': 562115162112, 'block_size': 4096, 'block_total': 240306099, 'block_available': 137235147, 'block_used': 103070952, 'inode_total': 61054976, 'inode_available': 60007100, 'inode_used': 1047876, 'uuid': 'N/A'}, {'mount': '/etc/resolv.conf', 'device': '/dev/sda1', 'fstype': 'ext4', 'options': 'rw,noatime,discard,bind', 'size_total': 117947367424, 'size_available': 7034187776, 'block_size': 4096, 'block_total': 28795744, 'block_available': 1717331, 'block_used': 27078413, 'inode_total': 7331840, 'inode_available': 5061612, 'inode_used': 2270228, 'uuid': 'N/A'}, {'mount': '/etc/hostname', 'device': '/dev/sda1', 'fstype': 'ext4', 'options': 'rw,noatime,discard,bind', 'size_total': 117947367424, 'size_available': 7034187776, 'block_size': 4096, 'block_total': 28795744, 'block_available': 1717331, 'block_used': 27078413, 'inode_total': 7331840, 'inode_available': 5061612, 'inode_used': 2270228, 'uuid': 'N/A'}, {'mount': '/etc/hosts', 'device': '/dev/sda1', 'fstype': 'ext4', 'options': 'rw,noatime,discard,bind', 'size_total': 117947367424, 'size_available': 7034187776, 'block_size': 4096, 'block_total': 28795744, 'block_available': 1717331, 'block_used': 27078413, 'inode_total': 7331840, 'inode_available': 5061612, 'inode_used': 2270228, 'uuid': 'N/A'}], 'ansible_fips': False, 'ansible_cmdline': {'BOOT_IMAGE': '/boot/vmlinuz-linux', 'root': 'UUID=a949b443-c5da-4a95-9f11-4ae49063d139', 'rw': True}, 'ansible_proc_cmdline': {'BOOT_IMAGE': '/boot/vmlinuz-linux', 'root': 'UUID=a949b443-c5da-4a95-9f11-4ae49063d139', 'rw': True}, 'ansible_lsb': {'id': 'Ubuntu', 'release': '22.04', 'codename': 'jammy', 'description': 'Ubuntu 22.04 LTS', 'major_release': '22'}, 'ansible_service_mgr': 'sysvinit', 'ansible_system_capabilities_enforced': 'N/A', 'ansible_system_capabilities': 'N/A', 'ansible_dns': {'nameservers': ['192.168.178.1'], 'search': ['.']}, 'ansible_iscsi_iqn': '', 'ansible_env': {'LANGUAGE': 'en_US:en', 'HOSTNAME': '2a45ed47c865', 'SHLVL': '1', 'HOME': '/root', 'ANSIBLE_STDOUT_CALLBACK': 'ovirt.ovirt.stdout', 'ANSIBLE_DEPRECATION_WARNINGS': 'False', 'ASCIINEMA_REC': '1', '_': '/usr/bin/asciinema', 'TERM': 'xterm', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'LANG': 'en_US.UTF-8', 'DEBIAN_FRONTEND': 'noninteractive', 'ANSIBLE_LOCALHOST_WARNING': 'False', 'ANSIBLE_INVENTORY_UNPARSED_WARNING': 'False', 'PWD': '/root', 'LC_ALL': 'en_US.UTF-8'}, 'ansible_python': {'version': {'major': 3, 'minor': 10, 'micro': 12, 'releaselevel': 'final', 'serial': 0}, 'version_info': [3, 10, 12, 'final', 0], 'executable': '/usr/bin/python3', 'has_sslcontext': True, 'type': 'cpython'}, 'ansible_hostnqn': '', 'ansible_local': {}, 'ansible_fibre_channel_wwn': [], 'ansible_selinux_python_present': True, 'ansible_selinux': {'status': 'disabled'}, 'ansible_apparmor': {'status': 'disabled'}, 'gather_subset': ['all'], 'module_setup': True}, 'warnings': [], 'deprecations': [], '_ansible_verbose_override': True, '_ansible_no_log': False, 'changed': False}
OK: localhost {'changed': True, 'stdout': 'ansi2html.sh\ncasts\ncss\nDockerfile\nindex.html\njs\nplaybook.yml\nREADME.md\nrequirements.txt\nrun.sh\nwebfonts', 'stderr': '', 'rc': 0, 'cmd': ['ls', '/root'], 'start': '2024-03-03 10:17:26.826465', 'end': '2024-03-03 10:17:26.828663', 'delta': '0:00:00.002198', 'msg': '', 'invocation': {'module_args': {'_raw_params': 'ls /root', '_uses_shell': False, 'expand_argument_vars': True, 'stdin_add_newline': True, 'strip_empty_ends': True, 'argv': None, 'chdir': None, 'executable': None, 'creates': None, 'removes': None, 'stdin': None}}, 'stdout_lines': ['ansi2html.sh', 'casts', 'css', 'Dockerfile', 'index.html', 'js', 'playbook.yml', 'README.md', 'requirements.txt', 'run.sh', 'webfonts'], 'stderr_lines': [], '_ansible_no_log': False}
OK: localhost {'path': '/tmp/file', 'changed': False, 'state': 'absent', 'invocation': {'module_args': {'dest': '/tmp/file', 'state': 'absent', 'path': '/tmp/file', 'recurse': False, 'force': False, 'follow': True, 'modification_time_format': '%Y%m%d%H%M.%S', 'access_time_format': '%Y%m%d%H%M.%S', 'unsafe_writes': False, '_original_basename': None, '_diff_peek': None, 'src': None, 'modification_time': None, 'access_time': None, 'mode': None, 'owner': None, 'group': None, 'seuser': None, 'serole': None, 'selevel': None, 'setype': None, 'attributes': None}}, '_ansible_no_log': False}
OK: localhost {'diff': [{'before': '', 'after_header': '/tmp/file', 'after': 'localhost\n2a45ed47c865'}], 'dest': '/tmp/file', 'src': '/root/.ansible/tmp/ansible-tmp-1709461047.099086-9801-61827134970143/source', 'md5sum': '8bf7d228d286a5809b9284f81b6f2b88', 'checksum': '7041de6402ae22a711c7feeb189f4c5c575756e7', 'changed': True, 'uid': 0, 'gid': 0, 'owner': 'root', 'group': 'root', 'mode': '0644', 'state': 'file', 'size': 22, 'invocation': {'module_args': {'dest': '/tmp/file', 'src': '/root/.ansible/tmp/ansible-tmp-1709461047.099086-9801-61827134970143/source', '_original_basename': 'tmp4_eiubzn', 'follow': False, 'checksum': '7041de6402ae22a711c7feeb189f4c5c575756e7', 'backup': False, 'force': True, 'unsafe_writes': False, 'content': None, 'validate': None, 'directory_mode': None, 'remote_src': None, 'local_follow': None, 'mode': None, 'owner': None, 'group': None, 'seuser': None, 'serole': None, 'selevel': None, 'setype': None, 'attributes': None}}, '_ansible_no_log': False}
OK: localhost {'diff': {'before': {'path': '/tmp/file'}, 'after': {'path': '/tmp/file'}}, 'path': '/tmp/file', 'changed': False, 'uid': 0, 'gid': 0, 'owner': 'root', 'group': 'root', 'mode': '0644', 'state': 'file', 'size': 22, 'invocation': {'module_args': {'dest': '/tmp/file', '_original_basename': 'tmplph1yxpp', 'recurse': False, 'state': 'file', 'path': '/tmp/file', 'force': False, 'follow': True, 'modification_time_format': '%Y%m%d%H%M.%S', 'access_time_format': '%Y%m%d%H%M.%S', 'unsafe_writes': False, '_diff_peek': None, 'src': None, 'modification_time': None, 'access_time': None, 'mode': None, 'owner': None, 'group': None, 'seuser': None, 'serole': None, 'selevel': None, 'setype': None, 'attributes': None}}, 'checksum': '7041de6402ae22a711c7feeb189f4c5c575756e7', 'dest': '/tmp/file', '_ansible_no_log': False}
OK: localhost {'path': '/tmp/file', 'changed': True, 'diff': {'before': {'path': '/tmp/file', 'state': 'file'}, 'after': {'path': '/tmp/file', 'state': 'absent'}}, 'state': 'absent', 'invocation': {'module_args': {'dest': '/tmp/file', 'state': 'absent', 'path': '/tmp/file', 'recurse': False, 'force': False, 'follow': True, 'modification_time_format': '%Y%m%d%H%M.%S', 'access_time_format': '%Y%m%d%H%M.%S', 'unsafe_writes': False, '_original_basename': None, '_diff_peek': None, 'src': None, 'modification_time': None, 'access_time': None, 'mode': None, 'owner': None, 'group': None, 'seuser': None, 'serole': None, 'selevel': None, 'setype': None, 'attributes': None}}, '_ansible_no_log': False}
OK: localhost {'changed': True, 'stdout': 'Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.\nNeed to get 128 kB of archives.\nAfter this operation, 342 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]\nFetched 128 kB in 1s (219 kB/s)\nSelecting previously unselected package htop.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17239 files and directories currently installed.)\r\nPreparing to unpack .../htop_3.0.5-7build2_amd64.deb ...\r\nUnpacking htop (3.0.5-7build2) ...\r\nSetting up htop (3.0.5-7build2) ...\r\n', 'stderr': 'debconf: delaying package configuration, since apt-utils is not installed\n', 'diff': {'prepared': 'Suggested packages:\n lm-sensors lsof strace\nThe following NEW packages will be installed:\n htop\n0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.'}, 'cache_updated': False, 'cache_update_time': 1709459901, 'invocation': {'module_args': {'name': 'htop', 'state': 'present', 'package': ['htop'], 'update_cache_retries': 5, 'update_cache_retry_max_delay': 12, 'cache_valid_time': 0, 'purge': False, 'force': False, 'upgrade': None, 'dpkg_options': 'force-confdef,force-confold', 'autoremove': False, 'autoclean': False, 'fail_on_autoremove': False, 'only_upgrade': False, 'force_apt_get': False, 'clean': False, 'allow_unauthenticated': False, 'allow_downgrade': False, 'allow_change_held_packages': False, 'lock_timeout': 60, 'update_cache': None, 'deb': None, 'default_release': None, 'install_recommends': None, 'policy_rc_d': None}}, 'stdout_lines': ['Reading package lists...', 'Building dependency tree...', 'Reading state information...', 'Suggested packages:', ' lm-sensors lsof strace', 'The following NEW packages will be installed:', ' htop', '0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.', 'Need to get 128 kB of archives.', 'After this operation, 342 kB of additional disk space will be used.', 'Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 htop amd64 3.0.5-7build2 [128 kB]', 'Fetched 128 kB in 1s (219 kB/s)', 'Selecting previously unselected package htop.', '(Reading database ... ', '(Reading database ... 5%', '(Reading database ... 10%', '(Reading database ... 15%', '(Reading database ... 20%', '(Reading database ... 25%', '(Reading database ... 30%', '(Reading database ... 35%', '(Reading database ... 40%', '(Reading database ... 45%', '(Reading database ... 50%', '(Reading database ... 55%', '(Reading database ... 60%', '(Reading database ... 65%', '(Reading database ... 70%', '(Reading database ... 75%', '(Reading database ... 80%', '(Reading database ... 85%', '(Reading database ... 90%', '(Reading database ... 95%', '(Reading database ... 100%', '(Reading database ... 17239 files and directories currently installed.)', 'Preparing to unpack .../htop_3.0.5-7build2_amd64.deb ...', 'Unpacking htop (3.0.5-7build2) ...', 'Setting up htop (3.0.5-7build2) ...'], 'stderr_lines': ['debconf: delaying package configuration, since apt-utils is not installed'], '_ansible_no_log': False}
OK: localhost {'changed': True, 'stdout': "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n libnl-3-200 libnl-genl-3-200\nUse 'apt autoremove' to remove them.\nThe following packages will be REMOVED:\n htop\n0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.\nAfter this operation, 342 kB disk space will be freed.\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 17253 files and directories currently installed.)\r\nRemoving htop (3.0.5-7build2) ...", 'stderr': '\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.', 'rc': 0, 'cmd': ['apt', 'remove', 'htop', '--yes'], 'start': '2024-03-03 10:17:32.196739', 'end': '2024-03-03 10:17:33.553205', 'delta': '0:00:01.356466', 'msg': '', 'invocation': {'module_args': {'_raw_params': 'apt remove htop --yes', '_uses_shell': False, 'expand_argument_vars': True, 'stdin_add_newline': True, 'strip_empty_ends': True, 'argv': None, 'chdir': None, 'executable': None, 'creates': None, 'removes': None, 'stdin': None}}, 'stdout_lines': ['Reading package lists...', 'Building dependency tree...', 'Reading state information...', 'The following packages were automatically installed and are no longer required:', ' libnl-3-200 libnl-genl-3-200', "Use 'apt autoremove' to remove them.", 'The following packages will be REMOVED:', ' htop', '0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.', 'After this operation, 342 kB disk space will be freed.', '(Reading database ... ', '(Reading database ... 5%', '(Reading database ... 10%', '(Reading database ... 15%', '(Reading database ... 20%', '(Reading database ... 25%', '(Reading database ... 30%', '(Reading database ... 35%', '(Reading database ... 40%', '(Reading database ... 45%', '(Reading database ... 50%', '(Reading database ... 55%', '(Reading database ... 60%', '(Reading database ... 65%', '(Reading database ... 70%', '(Reading database ... 75%', '(Reading database ... 80%', '(Reading database ... 85%', '(Reading database ... 90%', '(Reading database ... 95%', '(Reading database ... 100%', '(Reading database ... 17253 files and directories currently installed.)', 'Removing htop (3.0.5-7build2) ...'], 'stderr_lines': ['', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.'], '_ansible_no_log': False}
OK: localhost {'changed': True, 'stdout': ' 10:17:33 up 39 min, 0 users, load average: 1.95, 1.39, 1.06', 'stderr': '', 'rc': 0, 'cmd': '/usr/bin/uptime', 'start': '2024-03-03 10:17:33.690511', 'end': '2024-03-03 10:17:33.693560', 'delta': '0:00:00.003049', 'msg': '', 'invocation': {'module_args': {'_raw_params': '/usr/bin/uptime', '_uses_shell': True, 'expand_argument_vars': True, 'stdin_add_newline': True, 'strip_empty_ends': True, 'argv': None, 'chdir': None, 'executable': None, 'creates': None, 'removes': None, 'stdin': None}}, 'stdout_lines': [' 10:17:33 up 39 min, 0 users, load average: 1.95, 1.39, 1.06'], 'stderr_lines': [], '_ansible_no_log': False}
OK: localhost {'result': {'changed': True, 'stdout': ' 10:17:33 up 39 min, 0 users, load average: 1.95, 1.39, 1.06', 'stderr': '', 'rc': 0, 'cmd': '/usr/bin/uptime', 'start': '2024-03-03 10:17:33.690511', 'end': '2024-03-03 10:17:33.693560', 'delta': '0:00:00.003049', 'msg': '', 'stdout_lines': [' 10:17:33 up 39 min, 0 users, load average: 1.95, 1.39, 1.06'], 'stderr_lines': [], 'failed': False}, '_ansible_verbose_always': True, '_ansible_no_log': False, 'changed': False}
OK: localhost {'msg': 'System localhost has uuid 03000200-0400-0500-0006-000700080009', '_ansible_verbose_always': True, '_ansible_no_log': False, 'changed': False}
FAILED: localhost {'msg': 'The task failed but we ignore this', '_ansible_no_log': False, 'changed': False}
OK: localhost {'_ansible_verbose_always': True, 'changed': False, 'msg': 'All assertions passed', '_ansible_no_log': False}
Pausing for 1 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
[pause]
waiting for one second:
OK: localhost {'changed': False, 'rc': 0, 'stderr': '', 'stdout': 'Paused for 1.0 seconds', 'start': '2024-03-03 10:17:33.769162', 'stop': '2024-03-03 10:17:34.772395', 'delta': 1, 'echo': True, 'user_input': '', '_ansible_no_log': False}
Description: Sends events to Foreman
No config file found; using defaults
[WARNING]: Unable to parse /root/hosts as an inventory source
ERROR! No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.theforeman.foreman.plugins.callback.foreman setting: url
Contact: github <at> gumpri <dot> ch