diff --git a/knowledge base/ansible.md b/knowledge base/ansible.md index 7915e05..a6471e2 100644 --- a/knowledge base/ansible.md +++ b/knowledge base/ansible.md @@ -45,7 +45,7 @@ ansible-playbook path/to/playbook.yml -i hosts.list ansible-playbook path/to/playbook.yml -i host1,host2,hostn, -l hosts,list ansible-playbook path/to/playbook.yml -i host1,host2,other, -l hosts-pattern -# Show what changes (with details) a play whould apply to the local machine. +# Show what changes (with details) a play would apply to the local machine. ansible-playbook path/to/playbook.yml -i localhost, -c local -vvC # Only execute tasks with specific tags. @@ -173,7 +173,7 @@ Return a boolean result. - variable1 - variableN -# Iterate thrugh nested loops. +# Iterate through nested loops. - vars: middles: - 'middle1' @@ -325,7 +325,7 @@ Add the `check_mode: false` pair to the task: Add the `check_mode: true` pair to the task: ```yaml -- name: This task will always run under checkmode and not change the system +- name: This task will always run under check mode and not change the system check_mode: true ansible.builtin.lineinfile: line: "important file" diff --git a/knowledge base/dd.md b/knowledge base/dd.md index 30e97da..da448f8 100644 --- a/knowledge base/dd.md +++ b/knowledge base/dd.md @@ -32,5 +32,5 @@ dd if=path/to/file.img of=/dev/drive_device status=progress - [cheat.sh] - + [cheat.sh]: https://cheat.sh/dd diff --git a/knowledge base/mktemp.md b/knowledge base/mktemp.md index 2e2ebc3..5c3b42c 100644 --- a/knowledge base/mktemp.md +++ b/knowledge base/mktemp.md @@ -13,7 +13,7 @@ mktemp -d # create an empty temporary file or directory with a random templated name # the Xs must be put at the end of the filename -# the Xs specifies the templated parts and lenght in the file name +# the Xs specifies the templated parts and length in the file name mktemp /tmp/filenameXXX mktemp -d /tmp/dirname.XXX