3 ms·
I see you have a good amount of time in this script. I do appreciate the efforts. I just see that writing large scripts like this is a waste of time when we ha
by sarcasmatwork 7y ago
I see you have a good amount of time in this script. I do appreciate the efforts.
I just see that writing large scripts like this is a waste of time when we have cool tech like Ansible that could do this far easier. Plus Ansible is idempotence!
Scripts like this take time to create, debug and read to those that are seeing it the first time, or the 100th. This is one reason imho why Ansible (Puppet, Chef) were created. Yaml synax is easy, just need a good editor that shows the spaces. I use Atom and sometimes Notepad++
For example, here is a Nginx role with php that I randomly found: https://github.com/geerlingguy/ansible-role-nginx https://github.com/geerlingguy/ansible-role-nginx
- harisund 7y agoI don't understand why people keep saying Ansible is idempotent. Ansible is not somehow magically idempotent, nor is Bash "always not idempotent". You can write bad, non-idempotent code in Ansible too and good, idempotent code in Bash too. Sure, if you are using some of Ansible's modules that are developed specifically to be idempotent, then yes, but there are plenty of "shell" module examples out there that aren't remotely idempotent