diff options
author | Jasper Ras <jras@hostnet.nl> | 2024-08-21 16:22:08 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2024-08-21 16:22:08 +0200 |
commit | f3711a93832df46dc245075df08b9ebfc05266e9 (patch) | |
tree | 167c4c4a9bedd6b94392b20eb6e68bc38656d456 /Buffer/Updates ansible ad-hoc.md | |
parent | 26b2ee8fe95026e84bd1721910d575db72cc1b3f (diff) |
forgot to commit for a while
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 +``` |