Replace include: with include_tasks:
The include: method was deprecated with Ansible Core 2.19; replace it with include_tasks.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
- include: enable.yml
|
||||
- include_tasks: enable.yml
|
||||
when: pvc_autobackup.enabled
|
||||
|
||||
- include: disable.yml
|
||||
- include_tasks: disable.yml
|
||||
when: not pvc_autobackup.enabled
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
- include: enable.yml
|
||||
- include_tasks: enable.yml
|
||||
when: pvc_automirror.enabled
|
||||
|
||||
- include: disable.yml
|
||||
- include_tasks: disable.yml
|
||||
when: not pvc_automirror.enabled
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
dest: /etc/ceph
|
||||
state: directory
|
||||
|
||||
- include: ceph/bootstrap.yml
|
||||
- include_tasks: ceph/bootstrap.yml
|
||||
when: do_bootstrap is defined and do_bootstrap
|
||||
run_once: yes
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
- include: enable.yml
|
||||
- include_tasks: enable.yml
|
||||
when: cpu_tuning.enabled
|
||||
|
||||
- include: disable.yml
|
||||
- include_tasks: disable.yml
|
||||
when: not cpu_tuning.enabled
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
- ceph-secret.xml
|
||||
notify: restart libvirtd
|
||||
|
||||
- include: libvirt/bootstrap.yml
|
||||
- include_tasks: libvirt/bootstrap.yml
|
||||
when: do_bootstrap is defined and do_bootstrap
|
||||
run_once: yes
|
||||
|
||||
|
||||
@@ -24,54 +24,54 @@
|
||||
when: newhost_check.changed
|
||||
tags: always
|
||||
|
||||
- include: common/add_cluster_ips.yml
|
||||
- include_tasks: common/add_cluster_ips.yml
|
||||
when: newhost is defined and newhost
|
||||
tags: always
|
||||
|
||||
# Install system tweaks
|
||||
- include: system/main.yml
|
||||
- include_tasks: system/main.yml
|
||||
tags: pvc-system
|
||||
|
||||
# Install base databases (coordinators only)
|
||||
- include: ceph/main.yml
|
||||
- include_tasks: ceph/main.yml
|
||||
tags: pvc-ceph
|
||||
when: is_coordinator
|
||||
|
||||
- include: zookeeper/main.yml
|
||||
- include_tasks: zookeeper/main.yml
|
||||
tags: pvc-zookeeper
|
||||
when: is_coordinator
|
||||
|
||||
- include: patroni/main.yml
|
||||
- include_tasks: patroni/main.yml
|
||||
tags: pvc-patroni
|
||||
when: is_coordinator
|
||||
|
||||
- include: keydb/main.yml
|
||||
- include_tasks: keydb/main.yml
|
||||
tags: pvc-keydb
|
||||
when: is_coordinator
|
||||
|
||||
# Install core services
|
||||
- include: libvirt/main.yml
|
||||
- include_tasks: libvirt/main.yml
|
||||
tags: pvc-libvirt
|
||||
|
||||
- include: frr/main.yml
|
||||
- include_tasks: frr/main.yml
|
||||
tags: pvc-frr
|
||||
|
||||
# Install PVC daemon
|
||||
- include: pvc/main.yml
|
||||
- include_tasks: pvc/main.yml
|
||||
tags: pvc-daemon
|
||||
|
||||
# Install PVC autobackup
|
||||
- include: autobackup/main.yml
|
||||
- include_tasks: autobackup/main.yml
|
||||
tags: pvc-autobackup
|
||||
when: pvc_autobackup is defined
|
||||
|
||||
# Install PVC automirror
|
||||
- include: automirror/main.yml
|
||||
- include_tasks: automirror/main.yml
|
||||
tags: pvc-automirror
|
||||
when: pvc_automirror is defined
|
||||
|
||||
# Install CPU tuning
|
||||
- include: cputuning/main.yml
|
||||
- include_tasks: cputuning/main.yml
|
||||
tags: pvc-cputuning
|
||||
when: debian_version|int >= 11 and cpu_tuning is defined
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
with_items:
|
||||
- { src: "patroni/powerdns-schema.sql", dest: "/etc/postgresql/powerdns-schema.sql" }
|
||||
|
||||
- include: patroni/bootstrap.yml
|
||||
- include_tasks: patroni/bootstrap.yml
|
||||
run_once: yes
|
||||
when: do_bootstrap is defined and do_bootstrap
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
dest: /usr/lib/check_mk_agent/plugins/pvc_status
|
||||
mode: 0755
|
||||
|
||||
- include: pvc/bootstrap.yml
|
||||
- include_tasks: pvc/bootstrap.yml
|
||||
run_once: yes
|
||||
when: do_bootstrap is defined and do_bootstrap and is_coordinator
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
with_items:
|
||||
- zookeeper
|
||||
|
||||
- include: zookeeper/bootstrap.yml
|
||||
- include_tasks: zookeeper/bootstrap.yml
|
||||
when: do_bootstrap is defined and do_bootstrap
|
||||
|
||||
- meta: flush_handlers
|
||||
|
||||
Reference in New Issue
Block a user