fix: consistency in task commands

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2022-05-08 20:38:22 -04:00
1 parent 1489e7217d
commit 1e6cc45558
4 files changed
+11 -15

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ vars:
tasks: tasks:
deps: init:
desc: Upgrade Ansible galaxy deps desc: Upgrade Ansible galaxy deps
dir: provision/ansible dir: provision/ansible
cmds: cmds:
+6
View File
@@ -2,6 +2,7 @@
version: "3" version: "3"
tasks: tasks:
init: init:
desc: Initialize pre-commit hooks desc: Initialize pre-commit hooks
cmds: cmds:
@@ -10,3 +11,8 @@ tasks:
desc: Run pre-commit desc: Run pre-commit
cmds: cmds:
- pre-commit run --all-files - pre-commit run --all-files
update:
desc: Update pre-commt hooks
cmds:
- pre-commit autoupdate
+1 -1
View File
@@ -3,7 +3,7 @@ version: "3"
tasks: tasks:
deps: init:
desc: Initialize terraform dependencies desc: Initialize terraform dependencies
dir: provision/terraform/cloudflare dir: provision/terraform/cloudflare
cmds: cmds:
+3 -13
View File
@@ -95,20 +95,10 @@ After pre-commit is installed on your machine run:
task pre-commit:init task pre-commit:init
``` ```
**Remember to run this on each new clone of the repository for it to have effect.**
Commands are of interest, for learning purposes:
This command makes it so pre-commit runs on `git commit`, and also installs environments per the config file.
```sh
pre-commit install --install-hooks
```
This command checks for new versions of hooks, though it will occasionally make mistakes, so verify its results. This command checks for new versions of hooks, though it will occasionally make mistakes, so verify its results.
```sh ```sh
pre-commit autoupdate task pre-commit:update
``` ```
## 📂 Repository structure ## 📂 Repository structure
@@ -224,7 +214,7 @@ In order to use Terraform and `cert-manager` with the Cloudflare DNS challenge y
2. Install the Ansible deps 2. Install the Ansible deps
```sh ```sh
task ansible:deps task ansible:init
``` ```
3. Verify Ansible can view your config 3. Verify Ansible can view your config
@@ -293,7 +283,7 @@ If your domain already has existing DNS records **be sure to export those DNS se
1. Pull in the Terraform deps 1. Pull in the Terraform deps
```sh ```sh
task terraform:deps task terraform:init
``` ```
2. Review the changes Terraform will make to your Cloudflare domain 2. Review the changes Terraform will make to your Cloudflare domain