--- # handlers file for hcio - name: Write UUID in local facts community.general.ini_file: path: "{{ hcio_local_facts_file }}" section: role_hcio option: "{{ item.json.slug | replace(hcio_slug_prefix, '') }}" value: "{{ item.json.ping_url.split('/') | last }}" create: false when: item.changed become: true loop: "{{ created.results }}" loop_control: label: "{{ item.get('json', {}).get('slug', '') }}" - name: Reload local facts ansible.builtin.setup: filter: ansible_local - name: Enable timer ansible.builtin.systemd: name: "{{ filename }}.timer" state: started enabled: true daemon_reload: true become: true - name: Start service ansible.builtin.systemd: name: "{{ filename }}.service" state: started enabled: false daemon_reload: true become: true