Skip to content

Commit

Permalink
fix: revert change from systemd to systemd_service
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Marcy <homelab@glenn4u.com>
  • Loading branch information
gmarcy committed Jul 28, 2024
1 parent cb0181b commit 4e30733
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
changed_when: "_result.rc == 0"

- name: Enable kubelet
ansible.builtin.systemd_service:
ansible.builtin.systemd:
name: kubelet
enabled: yes

Expand Down
2 changes: 1 addition & 1 deletion kubeinit/roles/kubeinit_openshift/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
delegate_to: localhost

- name: Restart haproxy container
ansible.builtin.systemd_service:
ansible.builtin.systemd:
name: "{{ kubeinit_haproxy_service_name }}"
state: restarted
enabled: yes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
changed_when: "_result_systemd_runtime_path.rc == 0"

- name: Enable and start podman.socket
ansible.builtin.systemd_service:
ansible.builtin.systemd:
name: podman.socket
enabled: yes
state: started
scope: user

- name: Start podman.service
ansible.builtin.systemd_service:
ansible.builtin.systemd:
name: podman.service
state: started
scope: user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,22 @@
mode: '0644'

- name: Reload systemd service
ansible.builtin.systemd_service:
ansible.builtin.systemd:
daemon_reexec: yes
scope: user
environment:
DBUS_SESSION_BUS_ADDRESS: "{{ ansible_env.DBUS_SESSION_BUS_ADDRESS|default('unix:path=/run/user/' + ansible_effective_user_id|string + '/bus') }}"

- name: "Enable the service {{ _param_systemd_service_name }}"
ansible.builtin.systemd_service:
ansible.builtin.systemd:
name: "{{ _param_systemd_service_name }}"
enabled: yes
scope: user
environment:
DBUS_SESSION_BUS_ADDRESS: "{{ ansible_env.DBUS_SESSION_BUS_ADDRESS|default('unix:path=/run/user/' + ansible_effective_user_id|string + '/bus') }}"

- name: "Start the service: {{ _param_systemd_service_name }}"
ansible.builtin.systemd_service:
ansible.builtin.systemd:
name: "{{ _param_systemd_service_name }}"
state: started
scope: user
Expand Down

0 comments on commit 4e30733

Please sign in to comment.