From c7260aa993889b4fba2b06c105e4d56540c38df1 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Wed, 19 Jul 2023 20:43:28 +0200 Subject: [PATCH] Slightly clean up user name vs service name --- playbooks/roles/services/deploy/cloud/tasks/main.yml | 2 +- playbooks/roles/services/deploy/database/tasks/main.yml | 2 +- playbooks/roles/services/deploy/git/tasks/main.yml | 2 +- playbooks/roles/services/deploy/music/tasks/main.yml | 2 +- playbooks/roles/services/deploy/notes/tasks/main.yml | 2 +- playbooks/roles/services/deploy/rproxy/tasks/main.yml | 2 +- playbooks/roles/services/deploy/www/tasks/main.yml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/playbooks/roles/services/deploy/cloud/tasks/main.yml b/playbooks/roles/services/deploy/cloud/tasks/main.yml index 4cdb754..af43f06 100644 --- a/playbooks/roles/services/deploy/cloud/tasks/main.yml +++ b/playbooks/roles/services/deploy/cloud/tasks/main.yml @@ -52,7 +52,7 @@ - name: "get service status" ansible.builtin.command: >- systemctl --user show --property ActiveState --value - {{ services_service_user_name }}.service + pod-{{ services_service_name }}.service environment: XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" changed_when: false diff --git a/playbooks/roles/services/deploy/database/tasks/main.yml b/playbooks/roles/services/deploy/database/tasks/main.yml index ea6efe5..db1ab1e 100644 --- a/playbooks/roles/services/deploy/database/tasks/main.yml +++ b/playbooks/roles/services/deploy/database/tasks/main.yml @@ -38,7 +38,7 @@ - name: "get service status" ansible.builtin.command: >- systemctl --user show --property ActiveState --value - {{ services_service_user_name }}.service + pod-{{ services_service_name }}.service environment: XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" changed_when: false diff --git a/playbooks/roles/services/deploy/git/tasks/main.yml b/playbooks/roles/services/deploy/git/tasks/main.yml index db4f6f9..a59c89e 100644 --- a/playbooks/roles/services/deploy/git/tasks/main.yml +++ b/playbooks/roles/services/deploy/git/tasks/main.yml @@ -31,7 +31,7 @@ - name: "get service status" ansible.builtin.command: >- systemctl --user show --property ActiveState --value - {{ services_service_user_name }}.service + pod-{{ services_service_name }}.service environment: XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" changed_when: false diff --git a/playbooks/roles/services/deploy/music/tasks/main.yml b/playbooks/roles/services/deploy/music/tasks/main.yml index 24c3bc9..2992df5 100644 --- a/playbooks/roles/services/deploy/music/tasks/main.yml +++ b/playbooks/roles/services/deploy/music/tasks/main.yml @@ -32,7 +32,7 @@ - name: "get service status" ansible.builtin.command: >- systemctl --user show --property ActiveState --value - {{ services_service_user_name }}.service + pod-{{ services_service_name }}.service environment: XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" changed_when: false diff --git a/playbooks/roles/services/deploy/notes/tasks/main.yml b/playbooks/roles/services/deploy/notes/tasks/main.yml index dedd78d..354925c 100644 --- a/playbooks/roles/services/deploy/notes/tasks/main.yml +++ b/playbooks/roles/services/deploy/notes/tasks/main.yml @@ -32,7 +32,7 @@ - name: "get service status" ansible.builtin.command: >- systemctl --user show --property ActiveState --value - {{ services_service_user_name }}.service + pod-{{ services_service_name }}.service environment: XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" changed_when: false diff --git a/playbooks/roles/services/deploy/rproxy/tasks/main.yml b/playbooks/roles/services/deploy/rproxy/tasks/main.yml index 7c5d356..d9e3b58 100644 --- a/playbooks/roles/services/deploy/rproxy/tasks/main.yml +++ b/playbooks/roles/services/deploy/rproxy/tasks/main.yml @@ -81,7 +81,7 @@ - name: "{{ services_service_name }} : get service status" ansible.builtin.command: >- systemctl --user show --property ActiveState --value - {{ services_service_user_name }}.service + pod-{{ services_service_name }}.service environment: XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" changed_when: false diff --git a/playbooks/roles/services/deploy/www/tasks/main.yml b/playbooks/roles/services/deploy/www/tasks/main.yml index 2376b7b..c088e78 100644 --- a/playbooks/roles/services/deploy/www/tasks/main.yml +++ b/playbooks/roles/services/deploy/www/tasks/main.yml @@ -73,7 +73,7 @@ - name: "get service status" ansible.builtin.command: >- systemctl --user show --property ActiveState --value - {{ services_service_user_name }}.service + pod-{{ services_service_name }}.service environment: XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" changed_when: false