Skip to content

Instantly share code, notes, and snippets.

@candoom
Last active March 14, 2022 16:11
Show Gist options
  • Save candoom/72159b63d2c3c53c83fd6a3a32fa03d2 to your computer and use it in GitHub Desktop.
Save candoom/72159b63d2c3c53c83fd6a3a32fa03d2 to your computer and use it in GitHub Desktop.
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