Install: Ansible Vault
Ansible Vault is a feature of Ansible that allows users to encrypt data with AES 256 cipher. This allows us to secure sensitive data, such as passwords and keys, and have Ansible decrypt them automatically when they are needed.
We will use this to encrypt accounts.yml, where all the account info is stored.
Note: For more information on Ansible Vault, checkout the Ansible Vault Primer.
Note: This is only needed for new installs as Cloudbox installer will set this as well.
export EDITOR=nano
-
First we need to create a password file (the filename and location is up to you). In this example, we will save the password to
~/.ansible_vault
.nano ~/.ansible_vault
-
Type in your password:
yourpassword
-
When done editing, save the file: Ctrl + X Y Enter.
We will now need to add the location of the password file into ansible.cfg
, in the format of:
-
Edit
ansible.cfg
:nano ~/cloudbox/ansible.cfg
-
Add the following line (replace
~/.ansible_vault
with your password filename and location):vault_password_file = ~/.ansible_vault
-
It should now look like this:
[defaults] inventory = inventories/local callback_whitelist = profile_tasks command_warnings = False retry_files_enabled = False hash_behaviour = merge vault_password_file = ~/.ansible_vault
-
When done editing, save the file: Ctrl + X Y Enter.
-
Run the following command:
ansible-vault encrypt ~/cloudbox/accounts.yml
-
You will get the following output:
Encryption successful
- Overview
- Presumptions
- Server
- Domain Name
- Cloudflare
- Cloud Storage
- Plex / Emby - Account
- Usenet vs. BitTorrent
Cloudbox
- Overview
- Dependencies (Choose only one of these)
- Settings
- Preinstall (Choose only one of these)
- SSH
- Ansible Vault
- Rclone
- Cloudbox (Choose only one of these)
- Application Setup
- Next Steps
Feederbox (do this first)
- Overview
- Dependencies
- Settings
- Preinstall
- SSH
- Ansible Vault
- Rclone
- Feederbox (Choose only one of these)
- Application Setup
- Next Steps
Mediabox
- Overview
- Dependencies
- Settings
- Preinstall
- SSH
- Ansible Vault
- Rclone
- Mediabox (Choose only one of these)
- Application Setup
- Next Steps
- Cloudplow (Media Uploader)
- cb utility script (Develop branch only}
- Updating Cloudbox (Choose only one of these)
- Updating Cloudbox Apps
- Removing Cloudbox Apps
- Resetting Cloudbox Apps
- Migrating Cloudbox
- Settings Updater
- Ansible Vault Primer
- Plex Access Token
- Plex Autoscan Extras
- Pushover
- Google Drive API Client ID and Client Secret
- Useful Docker Commands
- Add Your Own Docker Container into Cloudbox
- Revoking SSL Certificates
- Feeder Mount
- Adding a Subdomain
- HTTP Auth Support
- Emby
- Nextcloud
- Resilio Sync
- Plex DupeFinder
- Heimdall
- NZBHydra v1
- Plex Requests
- Sickbeard MP4 Automator
- SABnzbd
- Traktarr
See Community Wiki.