Last active
March 14, 2022 16:11
-
-
Save candoom/72159b63d2c3c53c83fd6a3a32fa03d2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
ansible -i [inventory] -m shell -a 'fdisk -l' --become -K -l [host|group] all | |
### APT | |
## Update all packages | |
$ ansible -m apt -a 'upgrade=yes update_cache=yes cache_valid_time=86400 force_apt_get=yes' --become -K -l [host|group] all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment