Ensuring Idempotency with Ansible blockinfile and Avoiding Duplicate Configurations in Shell Script Operations