Replace run.sh with ansible-playbook
I've learned more about Ansible, and that the flags I set by using `run.sh` are also settable with a `ansible.cfg` file! That's about the same amount of overhead, but enables everything else to be more standard. Neat!
This commit is contained in:
parent
24ea2b9de1
commit
c2e33fd4cf
3 changed files with 7 additions and 3 deletions
|
@ -17,9 +17,9 @@ just use them as idempotent command-line scripts!)
|
||||||
service running Forgejo's official Linux binary. This is mostly a 1:1 port
|
service running Forgejo's official Linux binary. This is mostly a 1:1 port
|
||||||
of [Forgejo's "Installation from binary" guide][fj-install]!
|
of [Forgejo's "Installation from binary" guide][fj-install]!
|
||||||
|
|
||||||
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 Forgejo service, this could be
|
If you're interested in setting up your own Forgejo service, this could be
|
||||||
useful as a starting point, there's not much custom here! Just a couple things
|
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 $1
|
|
Loading…
Reference in a new issue