--- - name: Enable acmetool for acme_domain_list domains become: true ansible.builtin.command: "acmetool want {{ _domain.name }}" args: creates: "/var/lib/acme/live/{{ _domain.name }}" loop_control: loop_var: _domain loop: "{{ acme_domain_want_list }}"