Skip to content

Generate systemd does not append .service to unit files #309

Closed
@anthr76

Description

Use something like

    - name: run minio
      containers.podman.podman_container:
        name: minio
        image: "quay.io/minio/minio:RELEASE.2021-09-18T18-09-59Z"
        state: started
        generate_systemd:
          path: "{{ ansible_user_dir }}/.config/systemd/user/foo.service"
          restart_policy: always
        command:
          - "server"
          - "/data"
          - "--console-address"
          - ":9001"
        ports:
            - "9000:9000"
            - "9001:9001"
        env:
          MINIO_UPDATE: "off"
          MINIO_PROMETHEUS_AUTH_TYPE: "public"
        volume:
          - "/tank/minio:/data:z"
      become: false

Observe that the generated systemd script will go to /home/1000/.config/system/user/foo.service/container-minio Where it should really be /home/1000/.config/system/user/foo.service

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions