Skip to content

Commit

Permalink
Replaced Depricated Statements (#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrodie18 authored Jul 1, 2023
1 parent 26a901e commit dbd82a6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/include_tasks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- Multiple Roles - Replaced depricated 'include' statements with 'include_tasks'
2 changes: 1 addition & 1 deletion roles/zabbix_javagateway/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
- always

- name: "Install the correct repository"
include: "{{ ansible_os_family }}.yml"
include_tasks: "{{ ansible_os_family }}.yml"

- name: "Configure zabbix-proxy"
template:
Expand Down
2 changes: 1 addition & 1 deletion roles/zabbix_proxy/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,6 @@
- dependencies

- name: "Configure SELinux when enabled"
include: selinux.yml
include_tasks: selinux.yml
when:
- zabbix_proxy_selinux | bool
2 changes: 1 addition & 1 deletion roles/zabbix_proxy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
- database

- name: "Installing the database"
include: "{{ zabbix_proxy_db_long }}.yml"
include_tasks: "{{ zabbix_proxy_db_long }}.yml"

- name: "Create include dir zabbix-proxy"
file:
Expand Down
2 changes: 1 addition & 1 deletion roles/zabbix_server/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,6 @@
- database

- name: "RedHat | Configure SELinux when enabled"
include: selinux.yml
include_tasks: selinux.yml
when:
- zabbix_server_selinux | bool
2 changes: 1 addition & 1 deletion roles/zabbix_server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
- config

- name: "Add zabbix-server scripts"
include: "scripts.yml"
include_tasks: "scripts.yml"
when: ( zabbix_server_alertscripts is defined ) or
( zabbix_server_externalscripts is defined )

Expand Down

0 comments on commit dbd82a6

Please sign in to comment.