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