Execute a command with administrative privileges

ansible

  • Manage groups of computers remotely over SSH. (use the `/etc/ansible/hosts` file to add new groups/hosts).
    Some subcommands such as `ansible galaxy` have their own usage documentation.
    More information: <https://www.ansible.com/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

ansible {{group}} --become --ask-become-pass -m command -a '{{my_command}}'

click the source code to copy install ansible on any operating system with command-not-found.com