You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| .. | ||
| env/example | 3 years ago | |
| roles | 3 years ago | |
| .gitignore | 3 years ago | |
| README.md | 3 years ago | |
| site.yml | 3 years ago | |
| tools-development.yml | 3 years ago | |
| update-software.yml | 3 years ago | |
README.md
MyJekyllBlog Ansible Tools
MyJekyllBlog uses Ansible for system configuration, installation, and maintenance.
You can find an example inventory file in env/example/inventory.yml. Secrets are kept secure by using ansible vault on the env/example/vault.yml file.
There are ansible roles in the roles/ directory. Roles named with -profile- are specific to a given machine type. Roles named with -role- are intended to be included from other roles. Roles named with -overlay- or -task- are intended to be run against an already-configured instance in a stand-alone playbook to accomplish a specific configuration or task.
Cheat Sheet
If your environment is named stage:
# Initial encryption of the vault file with our secrets.
ansible-vault encrypt --vault-password-file .vault_password env/stage/vault.yml
# Editing it once it has been encrypted.
ansible-vault edit --vault-password-file .vault_password env/stage/vault.yml
# Running the playbook to ensure everything is setup:
ansible-playbook -i env/stage/inventory.yml --vault-password-file .vault_password -e @env/stage/vault.yml site.yml
# Updateing MJB Software & Restarting mjb.panel, mjb.worker, and mjb.certbot
ansible-playbook -i env/stage/inventory.yml --vault-password-file .vault_password -e @env/stage/vault.yml update-software.yml