diff options
Diffstat (limited to 'buffer/Updates ansible ad-hoc.md')
-rw-r--r-- | buffer/Updates ansible ad-hoc.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/buffer/Updates ansible ad-hoc.md b/buffer/Updates ansible ad-hoc.md new file mode 100644 index 0000000..2b8514c --- /dev/null +++ b/buffer/Updates ansible ad-hoc.md @@ -0,0 +1,19 @@ +update apt cache: +``` +ansible <pattern> -m ansible.builtin.apt -a "update_cache=true cache_valid_time=3600" +``` + +update packages: +``` +ansible <pattern> -m ansible.builtin.apt -a "name=* state=latest" +``` + +run puppet: +``` +ansible <pattern> -a "/opt/puppetlabs/bin/puppet agent --test" +``` + +reboot: +``` +ansible <pattern> -m ansible.builtin.reboot -f 1 +``` |