Skip to content

Commit

Permalink
Cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Dec 2, 2024
1 parent c74694e commit c5ab3bc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
8 changes: 3 additions & 5 deletions tasks/configure-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@
- nagios-server-configure-copy-host-files

- name: configure | check external commands
when: nagios_server_check_external_commands | bool
tags:
- nagios-server-configure-check-external-commands
block:

- name: configure | set command dir permissions
ansible.builtin.file:
path: /var/lib/nagios3/rw
Expand All @@ -154,10 +156,6 @@
line: check_external_commands=1
notify: reload nagios-server

when: nagios_server_check_external_commands | bool
tags:
- nagios-server-configure-check-external-commands

- name: configure | regular expression matching option
ansible.builtin.lineinfile:
path: "{{ nagios_server_etc_nagios3_nagios_file }}"
Expand Down
8 changes: 3 additions & 5 deletions tasks/configure-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@
- nagios-server-configure-copy-services-files

- name: configure | check external commands
when: nagios_server_check_external_commands | bool
tags:
- nagios-server-configure-check-external-commands
block:

- name: configure | set command dir permissions
ansible.builtin.file:
path: /var/lib/nagios4/rw
Expand All @@ -165,10 +167,6 @@
line: check_external_commands=1
notify: reload nagios-server

when: nagios_server_check_external_commands | bool
tags:
- nagios-server-configure-check-external-commands

- name: configure | regular expression matching option
ansible.builtin.lineinfile:
path: "{{ nagios_server_etc_nagios4_nagios_file }}"
Expand Down
14 changes: 8 additions & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,25 @@
- nagios-server
- nagios-server-include-variables

- ansible.builtin.import_tasks: install.yml
- name: install
ansible.builtin.import_tasks: install.yml
tags:
- configuration
- nagios-server
- nagios-server-install

- ansible.builtin.import_tasks: private-keys.yml
- name: private-keys
ansible.builtin.import_tasks: private-keys.yml
tags:
- configuration
- nagios-server
- nagios-server-private-keys

- name: configure
tags:
- configuration
- nagios-server
- nagios-server-configure
block:
- name: >

Check failure on line 34 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

name[missing]

All tasks should be named.
ansible.builtin.import_tasks: configure-3.yml
Expand All @@ -32,10 +38,6 @@
- name: >

Check failure on line 38 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

name[missing]

All tasks should be named.
ansible.builtin.import_tasks: configure-4.yml
when: nagios_server_major_version is version('4', '=')
tags:
- configuration
- nagios-server
- nagios-server-configure
- name: start and enable service
ansible.builtin.service:
Expand Down

0 comments on commit c5ab3bc

Please sign in to comment.