Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix in service_autofs_disabled - ansible #10521

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions shared/templates/service_disabled/ansible.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
meta: noop

- name: "Unit Socket Exists - {{{ DAEMONNAME }}}.socket"
command: systemctl list-unit-files {{{ DAEMONNAME }}}.socket
command: systemctl -q list-unit-files {{{ DAEMONNAME }}}.socket
register: socket_file_exists
changed_when: False
failed_when: socket_file_exists.rc not in [0, 1]
Expand All @@ -31,7 +31,7 @@
enabled: "no"
state: "stopped"
masked: "yes"
when: '"{{{ DAEMONNAME }}}.socket" in socket_file_exists.stdout_lines[1]'
when: 'socket_file_exists.stdout_lines is search("{{{ DAEMONNAME }}}.socket",multiline=True)'
{{%- else %}}
JINJA TEMPLATE ERROR: Unknown init system '{{{ init_system }}}'
{{%- endif %}}