diff options
Diffstat (limited to '3 resources/ansible/ad-hoc-commands.md')
-rw-r--r-- | 3 resources/ansible/ad-hoc-commands.md | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/3 resources/ansible/ad-hoc-commands.md b/3 resources/ansible/ad-hoc-commands.md deleted file mode 100644 index eda1265..0000000 --- a/3 resources/ansible/ad-hoc-commands.md +++ /dev/null @@ -1,25 +0,0 @@ -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 <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 -``` - -[[ansible]] -#ansible
\ No newline at end of file |