Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak committed Oct 16, 2023
1 parent 275af14 commit ef4fe10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ roles:
version: master
scm: git
collections:
- community.general
- community.mongodb
- community.general
- community.mongodb
8 changes: 5 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
ansible.builtin.command:
cmd: pkg-config systemd --variable=systemdsystemunitdir
register: _systemd_query
tags: skip_ansible_lint

- name: Record system service location
ansible.builtin.set_fact:
Expand All @@ -16,6 +17,7 @@
- name: Record mongos binary location
ansible.builtin.command:
cmd: which mongos
tags: skip_ansible_lint
register: _mongos_query

- name: Verify configuration cluster configuration
Expand All @@ -39,8 +41,7 @@
ansible.builtin.include_role:
name: 0x0i.systemd
vars:
_port: "{{ mongos_service_port }}"
_execArgs: "--config {{ mongos_config_file }}"
systemd_exec_args: "--config {{ mongos_config_file }}"
unit_config:
- name: "{{ mongos_service_name }}"
Unit:
Expand All @@ -49,7 +50,7 @@
Service:
User: "{{ mongos_user }}"
Group: "{{ mongos_group }}"
ExecStart: "{{ _mongos_query.stdout }} {{ _execArgs }}"
ExecStart: "{{ _mongos_query.stdout }} {{ systemd_exec_args }}"
Type: simple
RuntimeDirectory: mongodb
LimitFSIZE: infinity
Expand All @@ -62,6 +63,7 @@
TasksAccounting: false
Install:
WantedBy: multi-user.target
tags: skip_ansible_lint

- name: Manage mongos service
ansible.builtin.service:
Expand Down

0 comments on commit ef4fe10

Please sign in to comment.