Last active
December 23, 2020 08:55
-
-
Save sysadm/95b14b1ca367aedd0ab64248449da266 to your computer and use it in GitHub Desktop.
Ansible homework 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@as:/etc/ansible# ansible all -i inventory.yml -m apt -a "name=nano update_cache=yes state=latest" | |
95.217.219.211 | CHANGED => { | |
"ansible_facts": { | |
"discovered_interpreter_python": "/usr/bin/python3" | |
}, | |
"cache_update_time": 1608713148, | |
"cache_updated": false, | |
"changed": true, | |
"stderr": "", | |
"stderr_lines": [], | |
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n hunspell\nThe following NEW packages will be installed:\n nano\n0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded.\nNeed to get 269 kB of archives.\nAfter this operation, 868 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu focal/main amd64 nano amd64 4.8-1ubuntu1 [269 kB]\nFetched 269 kB in 0s (1030 kB/s)\nSelecting previously unselected package nano.\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 ... 41896 files and directories currently installed.)\r\nPreparing to unpack .../nano_4.8-1ubuntu1_amd64.deb ...\r\nUnpacking nano (4.8-1ubuntu1) ...\r\nSetting up nano (4.8-1ubuntu1) ...\r\nupdate-alternatives: using /bin/nano to provide /usr/bin/editor (editor) in auto mode\r\nupdate-alternatives: using /bin/nano to provide /usr/bin/pico (pico) in auto mode\r\nProcessing triggers for man-db (2.9.1-1) ...\r\nProcessing triggers for install-info (6.7.0.dfsg.2-5) ...\r\n", | |
"stdout_lines": [ | |
"Reading package lists...", | |
"Building dependency tree...", | |
"Reading state information...", | |
"Suggested packages:", | |
" hunspell", | |
"The following NEW packages will be installed:", | |
" nano", | |
"0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded.", | |
"Need to get 269 kB of archives.", | |
"After this operation, 868 kB of additional disk space will be used.", | |
"Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 nano amd64 4.8-1ubuntu1 [269 kB]", | |
"Fetched 269 kB in 0s (1030 kB/s)", | |
"Selecting previously unselected package nano.", | |
"(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 ... 41896 files and directories currently installed.)", | |
"Preparing to unpack .../nano_4.8-1ubuntu1_amd64.deb ...", | |
"Unpacking nano (4.8-1ubuntu1) ...", | |
"Setting up nano (4.8-1ubuntu1) ...", | |
"update-alternatives: using /bin/nano to provide /usr/bin/editor (editor) in auto mode", | |
"update-alternatives: using /bin/nano to provide /usr/bin/pico (pico) in auto mode", | |
"Processing triggers for man-db (2.9.1-1) ...", | |
"Processing triggers for install-info (6.7.0.dfsg.2-5) ..." | |
] | |
} | |
root@as:/etc/ansible# ansible all -i inventory.yml -m apt -a "name=nano update_cache=yes state=latest" | |
95.217.219.211 | SUCCESS => { | |
"ansible_facts": { | |
"discovered_interpreter_python": "/usr/bin/python3" | |
}, | |
"cache_update_time": 1608713148, | |
"cache_updated": false, | |
"changed": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment