- name: update repos - debian apt: update_cache: yes - name: update repos - fedora dnf: name: "*" state: latest - name: build loki-docker-driver plugin for private repo become: yes become_user: "{{ docker_username }}" environment: LOKI_DOCKER_DRIVER: "{{ docker_registry_url }}/{{ docker_registry_username }}/loki-docker-driver" community.general.make: chdir: "{{ docker_home }}/plugins/loki" target: docker-driver-push - name: restart rootless docker become: yes become_user: "{{ docker_username }}" systemd: name: docker enabled: yes state: restarted scope: user environment: XDG_RUNTIME_DIR: "/run/user/{{ docker_uid }}" - name: restart docker service: name: docker state: restarted - name: restart promtail when: promtail_config.changed service: name: promtail state: restarted