Replace run.sh with an equivalent ansible.cfg
I've learned some more about Ansible, and how to use `ansible.cfg` to set up `ansible-playbook` to do the same thing as our `run.sh` was doing! Same number of files, less overhead for the workflow's weirdness.
This commit is contained in:
parent
6966727117
commit
72aba0d579
3 changed files with 7 additions and 3 deletions
|
@ -18,9 +18,9 @@ these are all very basic commands, captured in script form for convenience!)
|
|||
- `setup-plausible.yml`: Sets up the Plausible server itself, as a `systemd`
|
||||
service running Plausible's official Docker container.
|
||||
|
||||
You can run them individually, or all at once, with `run.sh`:
|
||||
You can run them individually, or all at once, with `ansible-playbook`:
|
||||
|
||||
run.sh setup-all.yml
|
||||
ansible-playbook setup-all.yml
|
||||
|
||||
If you're interested in setting up your own Plausible service, this could be
|
||||
useful as a starting point, there's not much custom here! Just a couple things
|
||||
|
|
5
ansible.cfg
Normal file
5
ansible.cfg
Normal file
|
@ -0,0 +1,5 @@
|
|||
[defaults]
|
||||
inventory = inventory.cfg
|
||||
|
||||
[privilege_escalation]
|
||||
become_ask_pass = True
|
1
run.sh
1
run.sh
|
@ -1 +0,0 @@
|
|||
ansible-playbook -i inventory.cfg --ask-become-pass $@
|
Loading…
Reference in a new issue