6 ms·
Even though Ansible is declarative in spirit, in practice I feel like a lot of playbooks just read like imperative code.
by james-mcelwain 6y ago
Even though Ansible is declarative in spirit, in practice I feel like a lot of playbooks just read like imperative code.
- fastball 6y agoI 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.
- takeda 6y agoOne 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.