diff --git a/docs/Command Snippets/Ansible Snippets.md b/docs/Command Snippets/Ansible Snippets.md index bc238bb..626dec1 100644 --- a/docs/Command Snippets/Ansible Snippets.md +++ b/docs/Command Snippets/Ansible Snippets.md @@ -33,4 +33,8 @@ ansible all -m apt -a "name=vim state=latest" --become --ask-become-pass - `sudo apt update` equivalent ```bash ansible all -m apt -a "name=apt state=latest" --become --ask-become-pass -``` \ No newline at end of file +``` +- Specify `username` and `password` credentials when running a playbook +```bash +ansible-playbook playbook.yml -u root -k +``` diff --git a/docs/Command Snippets/Bash Commands.md b/docs/Command Snippets/Bash Commands.md index 81557aa..39dc783 100644 --- a/docs/Command Snippets/Bash Commands.md +++ b/docs/Command Snippets/Bash Commands.md @@ -20,3 +20,7 @@ borg extract --strip-components 3 /mnt/backups/$DEVICE/$BACKUP_NAME::$SNAPSHOT_N # Extract latest snapshot borg extract --strip-components 3 /mnt/backups/$DEVICE/$BACKUP_NAME::$(borg list /mnt/backups/$BACKUP_NAME --last 1 --short) ``` +- Set date/time +```bash +sudo date --set="2024-10-02 01:12:00" +``` \ No newline at end of file