Slightly clean up user name vs service name

This commit is contained in:
Wojciech Kozlowski 2023-07-19 20:43:28 +02:00
parent ba2da1bde6
commit c7260aa993
7 changed files with 7 additions and 7 deletions

View File

@ -52,7 +52,7 @@
- name: "get service status" - name: "get service status"
ansible.builtin.command: >- ansible.builtin.command: >-
systemctl --user show --property ActiveState --value systemctl --user show --property ActiveState --value
{{ services_service_user_name }}.service pod-{{ services_service_name }}.service
environment: environment:
XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}"
changed_when: false changed_when: false

View File

@ -38,7 +38,7 @@
- name: "get service status" - name: "get service status"
ansible.builtin.command: >- ansible.builtin.command: >-
systemctl --user show --property ActiveState --value systemctl --user show --property ActiveState --value
{{ services_service_user_name }}.service pod-{{ services_service_name }}.service
environment: environment:
XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}"
changed_when: false changed_when: false

View File

@ -31,7 +31,7 @@
- name: "get service status" - name: "get service status"
ansible.builtin.command: >- ansible.builtin.command: >-
systemctl --user show --property ActiveState --value systemctl --user show --property ActiveState --value
{{ services_service_user_name }}.service pod-{{ services_service_name }}.service
environment: environment:
XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}"
changed_when: false changed_when: false

View File

@ -32,7 +32,7 @@
- name: "get service status" - name: "get service status"
ansible.builtin.command: >- ansible.builtin.command: >-
systemctl --user show --property ActiveState --value systemctl --user show --property ActiveState --value
{{ services_service_user_name }}.service pod-{{ services_service_name }}.service
environment: environment:
XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}"
changed_when: false changed_when: false

View File

@ -32,7 +32,7 @@
- name: "get service status" - name: "get service status"
ansible.builtin.command: >- ansible.builtin.command: >-
systemctl --user show --property ActiveState --value systemctl --user show --property ActiveState --value
{{ services_service_user_name }}.service pod-{{ services_service_name }}.service
environment: environment:
XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}"
changed_when: false changed_when: false

View File

@ -81,7 +81,7 @@
- name: "{{ services_service_name }} : get service status" - name: "{{ services_service_name }} : get service status"
ansible.builtin.command: >- ansible.builtin.command: >-
systemctl --user show --property ActiveState --value systemctl --user show --property ActiveState --value
{{ services_service_user_name }}.service pod-{{ services_service_name }}.service
environment: environment:
XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}"
changed_when: false changed_when: false

View File

@ -73,7 +73,7 @@
- name: "get service status" - name: "get service status"
ansible.builtin.command: >- ansible.builtin.command: >-
systemctl --user show --property ActiveState --value systemctl --user show --property ActiveState --value
{{ services_service_user_name }}.service pod-{{ services_service_name }}.service
environment: environment:
XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}" XDG_RUNTIME_DIR: "/run/user/{{ getent_passwd[services_service_user_name].1 }}"
changed_when: false changed_when: false