--- - hosts: all become: true tasks: - name: kea-dhcp4-server et kea-ctrl-agent ... apt: name: - kea-dhcp4-server - kea-dhcp6-server - kea-ctrl-agent state: present - name: genere ca.cnf dasn /etc/kea-ctrl-agent template: src: ca.j2 dest: present