diff options
author | Jasper Ras <jras@hostnet.nl> | 2024-11-23 17:08:31 +0100 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2024-11-23 17:08:31 +0100 |
commit | c5e7a50f1dbf3b541ae5547c50d2ec5707a45ca9 (patch) | |
tree | d60c74cacfaf13f123a0946768133619d11494b0 /0 inbox/Updates ansible ad-hoc.md | |
parent | 496c0c2a44ed21bbfb49f4c6e59c1a749c8b7aea (diff) |
move stuff from buffer to inbox
Diffstat (limited to '0 inbox/Updates ansible ad-hoc.md')
-rw-r--r-- | 0 inbox/Updates ansible ad-hoc.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/0 inbox/Updates ansible ad-hoc.md b/0 inbox/Updates ansible ad-hoc.md new file mode 100644 index 0000000..2b8514c --- /dev/null +++ b/0 inbox/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 +``` |