--- - name: create apm configuration directory ansible.builtin.file: path: "{{ apm_configuration_dir }}" state: directory owner: 0 group: 0 mode: 0755 - name: copy apm configurations ansible.builtin.copy: src: "{{ item }}" dest: "{{ apm_configuration_dir }}/{{ item }}" mode: 0755 owner: 0 group: 0 loop: - hibernate - suspend - resume