Change include: to include_tasks:

This removes the warnings in Ansible 2.4+.

Change-Id: I17e4e40c3eeb4ea73c593cec1d3d6244fda2a78e
This commit is contained in:
Major Hayden 2018-02-14 17:23:37 -06:00
parent 588f1ba9d1
commit 4bca7405d9
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
8 changed files with 15 additions and 16 deletions

View File

@ -40,13 +40,13 @@
tags: tags:
- always - always
- include: lxc_cache_preparation.yml - include_tasks: lxc_cache_preparation.yml
when: when:
- lxc_image_cache_refresh | bool - lxc_image_cache_refresh | bool
tags: tags:
- lxc_hosts-config - lxc_hosts-config
- include: lxc_cache_create.yml - include_tasks: lxc_cache_create.yml
when: when:
- lxc_image_cache_refresh | bool - lxc_image_cache_refresh | bool
tags: tags:

View File

@ -78,8 +78,7 @@
content: "{{ cache_time }}" content: "{{ cache_time }}"
dest: "{{ cache_path_fact }}/build_id" dest: "{{ cache_path_fact }}/build_id"
- include: "{{ item }}" - include_tasks: "{{ item }}"
static: no
with_first_found: with_first_found:
- files: - files:
- "lxc_container_{{ lxc_container_backing_store | default('None') }}.yml" - "lxc_container_{{ lxc_container_backing_store | default('None') }}.yml"

View File

@ -46,7 +46,7 @@
when: when:
- (deployment_environment_variables | default({})).keys() | length > 0 - (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: - block:
- name: Generate apt keys from LXC host for the container cache - name: Generate apt keys from LXC host for the container cache

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
- include: "lxc_install_{{ ansible_pkg_mgr }}.yml" - include_tasks: "lxc_install_{{ ansible_pkg_mgr }}.yml"
tags: tags:
- install-apt - install-apt
- install-yum - install-yum

View File

@ -49,7 +49,7 @@
- lxc-irqbalance - lxc-irqbalance
- lxc_hosts-config - lxc_hosts-config
- include: lxc_apparmor.yml - include_tasks: lxc_apparmor.yml
- name: Flush handler to reload apparmor profiles - name: Flush handler to reload apparmor profiles
meta: flush_handlers meta: flush_handlers

View File

@ -50,7 +50,7 @@
- lxc-files - lxc-files
- lxc_hosts-config - lxc_hosts-config
- include: lxc_apparmor.yml - include_tasks: lxc_apparmor.yml
- name: Flush handler to reload apparmor profiles - name: Flush handler to reload apparmor profiles
meta: flush_handlers meta: flush_handlers

View File

@ -127,7 +127,7 @@
# Ensure apparmor reindex runs before other things that may fail # Ensure apparmor reindex runs before other things that may fail
- meta: flush_handlers - meta: flush_handlers
- include: lxc_selinux.yml - include_tasks: lxc_selinux.yml
when: when:
- ansible_selinux.status is defined - ansible_selinux.status is defined
- ansible_selinux.status == "enabled" - ansible_selinux.status == "enabled"

View File

@ -42,31 +42,31 @@
tags: tags:
- always - always
- include: lxc_pre_install.yml - include_tasks: lxc_pre_install.yml
tags: tags:
- lxc_hosts-install - lxc_hosts-install
- include: lxc_install.yml - include_tasks: lxc_install.yml
tags: tags:
- lxc_hosts-install - lxc_hosts-install
- include: lxc_cache_prestage.yml - include_tasks: lxc_cache_prestage.yml
tags: tags:
- lxc_hosts-config - lxc_hosts-config
- include: lxc_post_install.yml - include_tasks: lxc_post_install.yml
tags: tags:
- lxc_hosts-config - lxc_hosts-config
- include: lxc_kernel_tuning.yml - include_tasks: lxc_kernel_tuning.yml
tags: tags:
- lxc_hosts-config - lxc_hosts-config
- include: lxc_net.yml - include_tasks: lxc_net.yml
tags: tags:
- lxc_hosts-config - lxc_hosts-config
- include: lxc_cache.yml - include_tasks: lxc_cache.yml
tags: tags:
- lxc_hosts-install - lxc_hosts-install
- lxc_hosts-config - lxc_hosts-config