Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Even though Ansible is declarative in spirit, in practice I feel like a lot of playbooks just read like imperative code.


I use Ansible for managing my infra, and the only time my playbooks look imperative is when I execute a shell script or similar, which is about 5% of total commands in my playbooks.


One way to test if your playbook is declarative is try to rearrange the states and have them in different order. If the playbook breaks with different order it is imperative.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: