From f359c7ae0e83a93a7f0aa063f93ecac995f2ce7a Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Fri, 25 Oct 2024 21:35:23 +0800 Subject: [PATCH] vault backup: 2024-10-25 21:35:23 Affected files: docs/Command Snippets/Ansible Snippets.md docs/Command Snippets/Docker - Miscellaneous.md --- docs/Command Snippets/Ansible Snippets.md | 14 +++++++------- docs/Command Snippets/Docker - Miscellaneous.md | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/Command Snippets/Ansible Snippets.md b/docs/Command Snippets/Ansible Snippets.md index e47f2bb..bc238bb 100644 --- a/docs/Command Snippets/Ansible Snippets.md +++ b/docs/Command Snippets/Ansible Snippets.md @@ -1,19 +1,19 @@ -WSL Fix for world-writable directories +- WSL Fix for world-writable directories ```bash export ANSIBLE_CONFIG=./ansible.cfg ``` -Ping +- Ping ```bash ansible all -m ping ``` -Gather facts +- Gather facts ```bash ansible all -m gather_facts # Limit to one device ansible all -m gather_facts --limit ADDRESS ``` -Elevate command to root user +- Elevate command to root user ```bash # This will fail without sudo ansible all -m apt -a update_cache=true @@ -22,15 +22,15 @@ ansible all -m apt -a update_cache=true # Equivalent to sudo apt-update ansible all -m apt -a update_cache=true --become --ask-become-me-pass ``` -Install packages +- Install packages ```bash ansible all -m apt -a name=vim --become --ask-become-pass ``` -Install/Update Package (multiple arguments) +- Install/Update Package (multiple arguments) ```bash ansible all -m apt -a "name=vim state=latest" --become --ask-become-pass ``` -`sudo apt update` equivalent +- `sudo apt update` equivalent ```bash ansible all -m apt -a "name=apt state=latest" --become --ask-become-pass ``` \ No newline at end of file diff --git a/docs/Command Snippets/Docker - Miscellaneous.md b/docs/Command Snippets/Docker - Miscellaneous.md index f5be435..028c2f3 100644 --- a/docs/Command Snippets/Docker - Miscellaneous.md +++ b/docs/Command Snippets/Docker - Miscellaneous.md @@ -1,4 +1,4 @@ -Create CIFS/Samba Volume +- Create CIFS/Samba Volume ```bash docker volume create \ --driver local \ @@ -7,4 +7,4 @@ docker volume create \ --opt o=username=USERNAME,password=PASSWORD \ --name VOLUME_NAME ``` -Native CIFS credentials file is not supported with Docker CIFS volumes \ No newline at end of file +*Native CIFS credentials file is not supported with Docker CIFS volumes* \ No newline at end of file