this post was submitted on 24 Aug 2023
7 points (100.0% liked)

FOSS (സ്വതന്ത്ര സോഫ്റ്റ്‌വെയർ)

1 readers
1 users here now

Community to discuss about opensource software, GNU/Linux , and news

Other communities in this instance

[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]

For discussion about this instance

[email protected]

founded 1 year ago
MODERATORS
 

To use it, follow the readme to set up ansible and an ssh connection to your server. Edit the varibales in var/main.yml and run the playbook with ansible-playbook roles_playbook.yml -K.

Also check out the lemmy and pixelfed docker installation playbooks.

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago (2 children)

What is an Ansible playbook ? Is it like a shell script or a jupyter notebook , to make installing softwares easier ?

I know a simple ddg search will give me the answer, but im too lazy now 🙂

[–] [email protected] 4 points 1 year ago

It is like a very well written shell script. An Ansible playbook is a set of tasks that are executed one at a time. These tasks are highly customisable and can easily be run on multiple servers. The killer feature is idempotency : you can describe the desired state of the task you want (e.g. copy a config file to a directory) and execute the task any number of times and always get the same result (e.g. all boundary conditions like file already exists at source, parent directory missing, permissions etc. are automatically handled by the ansible file copy task. Bonus feature: you can also replace fields like passwords in this file with values you define in your encrypted vault (like docker secrets/github secrets)). Writing a shell script to handle all these special cases is madness. There is a huge collection of ansible task libraries for everything from software installation, tools, etc.

[–] [email protected] 2 points 1 year ago (1 children)

Thanks 👍 do you host mastodon as well?

[–] [email protected] 1 points 1 year ago

No I don't like Twitter like social media TBH. Tried mastodon Difficult to find things among all the noise.