Change include: to include_tasks:
This removes the warnings in Ansible 2.4+. Change-Id: I17e4e40c3eeb4ea73c593cec1d3d6244fda2a78e
This commit is contained in:
parent
588f1ba9d1
commit
4bca7405d9
@ -40,13 +40,13 @@
|
||||
tags:
|
||||
- always
|
||||
|
||||
- include: lxc_cache_preparation.yml
|
||||
- include_tasks: lxc_cache_preparation.yml
|
||||
when:
|
||||
- lxc_image_cache_refresh | bool
|
||||
tags:
|
||||
- lxc_hosts-config
|
||||
|
||||
- include: lxc_cache_create.yml
|
||||
- include_tasks: lxc_cache_create.yml
|
||||
when:
|
||||
- lxc_image_cache_refresh | bool
|
||||
tags:
|
||||
|
@ -78,8 +78,7 @@
|
||||
content: "{{ cache_time }}"
|
||||
dest: "{{ cache_path_fact }}/build_id"
|
||||
|
||||
- include: "{{ item }}"
|
||||
static: no
|
||||
- include_tasks: "{{ item }}"
|
||||
with_first_found:
|
||||
- files:
|
||||
- "lxc_container_{{ lxc_container_backing_store | default('None') }}.yml"
|
||||
|
@ -46,7 +46,7 @@
|
||||
when:
|
||||
- (deployment_environment_variables | default({})).keys() | length > 0
|
||||
|
||||
- include: "lxc_cache_preparation_systemd_{{ (systemd_version.stdout_lines[0].split()[-1] | int > 219) | ternary('new', 'old') }}.yml"
|
||||
- include_tasks: "lxc_cache_preparation_systemd_{{ (systemd_version.stdout_lines[0].split()[-1] | int > 219) | ternary('new', 'old') }}.yml"
|
||||
|
||||
- block:
|
||||
- name: Generate apt keys from LXC host for the container cache
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- include: "lxc_install_{{ ansible_pkg_mgr }}.yml"
|
||||
- include_tasks: "lxc_install_{{ ansible_pkg_mgr }}.yml"
|
||||
tags:
|
||||
- install-apt
|
||||
- install-yum
|
||||
|
@ -49,7 +49,7 @@
|
||||
- lxc-irqbalance
|
||||
- lxc_hosts-config
|
||||
|
||||
- include: lxc_apparmor.yml
|
||||
- include_tasks: lxc_apparmor.yml
|
||||
|
||||
- name: Flush handler to reload apparmor profiles
|
||||
meta: flush_handlers
|
||||
|
@ -50,7 +50,7 @@
|
||||
- lxc-files
|
||||
- lxc_hosts-config
|
||||
|
||||
- include: lxc_apparmor.yml
|
||||
- include_tasks: lxc_apparmor.yml
|
||||
|
||||
- name: Flush handler to reload apparmor profiles
|
||||
meta: flush_handlers
|
||||
|
@ -127,7 +127,7 @@
|
||||
# Ensure apparmor reindex runs before other things that may fail
|
||||
- meta: flush_handlers
|
||||
|
||||
- include: lxc_selinux.yml
|
||||
- include_tasks: lxc_selinux.yml
|
||||
when:
|
||||
- ansible_selinux.status is defined
|
||||
- ansible_selinux.status == "enabled"
|
||||
|
@ -42,31 +42,31 @@
|
||||
tags:
|
||||
- always
|
||||
|
||||
- include: lxc_pre_install.yml
|
||||
- include_tasks: lxc_pre_install.yml
|
||||
tags:
|
||||
- lxc_hosts-install
|
||||
|
||||
- include: lxc_install.yml
|
||||
- include_tasks: lxc_install.yml
|
||||
tags:
|
||||
- lxc_hosts-install
|
||||
|
||||
- include: lxc_cache_prestage.yml
|
||||
- include_tasks: lxc_cache_prestage.yml
|
||||
tags:
|
||||
- lxc_hosts-config
|
||||
|
||||
- include: lxc_post_install.yml
|
||||
- include_tasks: lxc_post_install.yml
|
||||
tags:
|
||||
- lxc_hosts-config
|
||||
|
||||
- include: lxc_kernel_tuning.yml
|
||||
- include_tasks: lxc_kernel_tuning.yml
|
||||
tags:
|
||||
- lxc_hosts-config
|
||||
|
||||
- include: lxc_net.yml
|
||||
- include_tasks: lxc_net.yml
|
||||
tags:
|
||||
- lxc_hosts-config
|
||||
|
||||
- include: lxc_cache.yml
|
||||
- include_tasks: lxc_cache.yml
|
||||
tags:
|
||||
- lxc_hosts-install
|
||||
- lxc_hosts-config
|
||||
|
Loading…
Reference in New Issue
Block a user