Using ansible we can perform ad-hoc commands, useful for a one-off thing that won't require writing a full playbook. Some examples include: update apt cache: ``` ansible -m ansible.builtin.apt -a "update_cache=true cache_valid_time=3600" ``` update packages: ``` ansible -m ansible.builtin.apt -a "name=* state=latest" ``` run puppet: ``` ansible -a "/opt/puppetlabs/bin/puppet agent --test" ``` reboot: ``` ansible -m ansible.builtin.reboot -f 1 ``` [[ansible]] #ansible