From: David Galloway Date: Fri, 1 Dec 2017 19:22:51 +0000 (-0500) Subject: all: s/include:/include_tasks:/g prepping for deprecation in v2.8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F358%2Fhead;p=ceph-cm-ansible.git all: s/include:/include_tasks:/g prepping for deprecation in v2.8 Signed-off-by: David Galloway --- diff --git a/cephlab.yml b/cephlab.yml index af7ad48f..7a56cda8 100644 --- a/cephlab.yml +++ b/cephlab.yml @@ -2,22 +2,22 @@ # ensure the node is setup to be managed by ansible # eventually, most of the things here will be done by # cobbler / downburst / cloud-init. -- include: ansible_managed.yml +- import_playbook: ansible_managed.yml # if this node is in the pcp group, configure it -- include: pcp.yml +- import_playbook: pcp.yml # if this node is in the teuthology group, configure it -- include: teuthology.yml +- import_playbook: teuthology.yml # if this node is in the testnode group, configure it -- include: testnodes.yml +- import_playbook: testnodes.yml # if this node is in the cobbler group, configure it -- include: cobbler.yml +- import_playbook: cobbler.yml # if this node is in the paddles group, configure it -- include: paddles.yml +- import_playbook: paddles.yml # if this node is in the pulpito group, configure it -- include: pulpito.yml +- import_playbook: pulpito.yml diff --git a/roles/cobbler/tasks/main.yml b/roles/cobbler/tasks/main.yml index 36b7542f..6ebbab0b 100644 --- a/roles/cobbler/tasks/main.yml +++ b/roles/cobbler/tasks/main.yml @@ -1,5 +1,5 @@ --- -- include: ipmi_secrets.yml +- include_tasks: ipmi_secrets.yml tags: - always @@ -28,13 +28,13 @@ tags: - always -- include: yum_systems.yml +- include_tasks: yum_systems.yml when: ansible_pkg_mgr == "yum" -- include: apt_systems.yml +- include_tasks: apt_systems.yml when: ansible_pkg_mgr == "apt" -- include: pip.yml +- include_tasks: pip.yml tags: - pip @@ -70,24 +70,24 @@ enabled: yes - name: Update settings - include: settings.yml + include_tasks: settings.yml tags: - settings -- include: fetch_cm_repos.yml +- include_tasks: fetch_cm_repos.yml tags: - cm_repos -- include: upload_templates.yml +- include_tasks: upload_templates.yml tags: - templates -- include: distro_prep.yml +- include_tasks: distro_prep.yml tags: - distros - distro_prep -- include: restart.yml +- include_tasks: restart.yml - name: Run cobbler check command: cobbler check diff --git a/roles/cobbler/tasks/settings.yml b/roles/cobbler/tasks/settings.yml index b32135e4..8905a854 100644 --- a/roles/cobbler/tasks/settings.yml +++ b/roles/cobbler/tasks/settings.yml @@ -24,7 +24,7 @@ line: "server{{':'}} {% for setting in settings %}{% if setting.name == 'server' %}{{ setting.value }}{% endif %}{% endfor %}" register: server_value -- include: restart.yml +- include_tasks: restart.yml when: users_digest|changed or dynamic_settings|changed or server_value|changed - name: Update settings diff --git a/roles/cobbler/tasks/setup-redhat.yml b/roles/cobbler/tasks/setup-redhat.yml index 667e4cd1..7e9047e0 100644 --- a/roles/cobbler/tasks/setup-redhat.yml +++ b/roles/cobbler/tasks/setup-redhat.yml @@ -1,8 +1,8 @@ --- - name: Include rhel 7.x specific tasks. - include: redhat/rhel_7.yml + include_tasks: redhat/rhel_7.yml when: ansible_distribution_major_version == "7" - name: Include rhel 6.x specific tasks. - include: redhat/rhel_6.yml + include_tasks: redhat/rhel_6.yml when: ansible_distribution_major_version == "6" diff --git a/roles/cobbler/tasks/yum_systems.yml b/roles/cobbler/tasks/yum_systems.yml index 486cb7b5..5d6b87c0 100644 --- a/roles/cobbler/tasks/yum_systems.yml +++ b/roles/cobbler/tasks/yum_systems.yml @@ -13,5 +13,5 @@ when: cobbler_extra_packages|length > 0 # configure red hat specific things -- include: setup-redhat.yml +- include_tasks: setup-redhat.yml when: ansible_distribution in ('RedHat', 'CentOS') diff --git a/roles/cobbler_profile/tasks/import_distro.yml b/roles/cobbler_profile/tasks/import_distro.yml index 43c6ea6a..977b0219 100644 --- a/roles/cobbler_profile/tasks/import_distro.yml +++ b/roles/cobbler_profile/tasks/import_distro.yml @@ -41,10 +41,10 @@ ignore_errors: true changed_when: false -- include: import_distro_iso.yml +- include_tasks: import_distro_iso.yml when: profile_type|default('') == 'iso' -- include: import_distro_image.yml +- include_tasks: import_distro_image.yml when: profile_type|default('') == 'image' # If either the profile already existed or we successfully imported the @@ -55,17 +55,17 @@ ((profile is defined and profile.stdout == distro_name) or (import is defined and import.rc == 0)) -- include: update_kickstart.yml +- include_tasks: update_kickstart.yml when: distro.kickstart is defined and distro.kickstart != '' and profile_found -- include: update_kernel_options.yml +- include_tasks: update_kernel_options.yml when: distro.kernel_options is defined and distro.kernel_options != '' and profile_found -- include: update_kernel_options_post.yml +- include_tasks: update_kernel_options_post.yml when: distro.kernel_options_post is defined and distro.kernel_options_post != '' and profile_found diff --git a/roles/cobbler_profile/tasks/import_distro_image.yml b/roles/cobbler_profile/tasks/import_distro_image.yml index 848cd49b..fa095cd0 100644 --- a/roles/cobbler_profile/tasks/import_distro_image.yml +++ b/roles/cobbler_profile/tasks/import_distro_image.yml @@ -19,7 +19,7 @@ set_fact: initrd_path: "{{ other_image_dir }}/{{ initrd_name }}" -- include: download_image.yml +- include_tasks: download_image.yml when: distro.kernel != '' - name: Set arch diff --git a/roles/cobbler_profile/tasks/import_distro_iso.yml b/roles/cobbler_profile/tasks/import_distro_iso.yml index 7340bbf1..eb7ad579 100644 --- a/roles/cobbler_profile/tasks/import_distro_iso.yml +++ b/roles/cobbler_profile/tasks/import_distro_iso.yml @@ -7,7 +7,7 @@ set_fact: iso_path: "{{ iso_dir }}/{{ iso_name }}" -- include: download_iso.yml +- include_tasks: download_iso.yml when: distro.iso != '' # we do this so that if the playbook fails diff --git a/roles/cobbler_profile/tasks/main.yml b/roles/cobbler_profile/tasks/main.yml index b0d693b0..908a4df1 100644 --- a/roles/cobbler_profile/tasks/main.yml +++ b/roles/cobbler_profile/tasks/main.yml @@ -1,4 +1,4 @@ --- -- include: import_distro.yml +- include_tasks: import_distro.yml tags: - distros diff --git a/roles/cobbler_systems/tasks/main.yml b/roles/cobbler_systems/tasks/main.yml index f2ad8e95..cb97e732 100644 --- a/roles/cobbler_systems/tasks/main.yml +++ b/roles/cobbler_systems/tasks/main.yml @@ -1,5 +1,5 @@ --- -- include: populate_systems.yml +- include_tasks: populate_systems.yml tags: - systems diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 10d5483a..5a39f760 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -15,29 +15,29 @@ - entitlements # configure things specific to yum systems -- include: yum_systems.yml +- include_tasks: yum_systems.yml when: ansible_pkg_mgr == "yum" # configure things specific to apt systems -- include: apt_systems.yml +- include_tasks: apt_systems.yml when: ansible_pkg_mgr == "apt" -- include: zypper_systems.yml +- include_tasks: zypper_systems.yml when: ansible_pkg_mgr == "zypper" # configure Kerberos -- include: kerberos.yml +- include_tasks: kerberos.yml tags: - kerberos # upload custom disk monitoring scripts -- include: disk_monitoring.yml +- include_tasks: disk_monitoring.yml tags: - monitoring-scripts - nagios # configure nagios -- include: nagios.yml +- include_tasks: nagios.yml when: ansible_pkg_mgr != "zypper" tags: - nagios @@ -50,7 +50,7 @@ - nagios # configure selinux for nagios -- include: nrpe-selinux.yml +- include_tasks: nrpe-selinux.yml when: ansible_os_family == "RedHat" and (selinux_status is defined and selinux_status.stdout != "Disabled") tags: diff --git a/roles/common/tasks/rhel-entitlements.yml b/roles/common/tasks/rhel-entitlements.yml index d6ff92b7..d3c148cd 100644 --- a/roles/common/tasks/rhel-entitlements.yml +++ b/roles/common/tasks/rhel-entitlements.yml @@ -72,7 +72,7 @@ when: not unregistered_beta_distro|skipped - name: Run beta_repos.yml playbook for Beta/Alpha/RC release - include: beta_repos.yml + include_tasks: beta_repos.yml when: ansible_distribution_version not in rhsm_release_list.stdout_lines - name: Get list of enabled RHSM repos diff --git a/roles/common/tasks/yum_systems.yml b/roles/common/tasks/yum_systems.yml index 1b2d966f..36ca8dc2 100644 --- a/roles/common/tasks/yum_systems.yml +++ b/roles/common/tasks/yum_systems.yml @@ -49,7 +49,7 @@ when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int >= 22 # configure Red Hat entitlements with subscription-manager -- include: rhel-entitlements.yml +- include_tasks: rhel-entitlements.yml when: ansible_distribution == 'RedHat' and beta_distro == false @@ -57,7 +57,7 @@ - entitlements # create and manage epel.repo -- include: epel.yml +- include_tasks: epel.yml when: ansible_distribution == "CentOS" or ansible_distribution == 'RedHat' diff --git a/roles/downstream-setup/tasks/cleanup.yml b/roles/downstream-setup/tasks/cleanup.yml index 9a1d1989..522468a2 100644 --- a/roles/downstream-setup/tasks/cleanup.yml +++ b/roles/downstream-setup/tasks/cleanup.yml @@ -1,7 +1,7 @@ --- - debug: msg="Performing cleanup related tasks..." -- include: yum_repos.yml +- include_tasks: yum_repos.yml when: remove_yum_repos|length > 0 vars: repos: "{{ remove_yum_repos }}" @@ -11,21 +11,21 @@ - set_fact: repos_to_remove: "{% for repo in yum_repos%}{{ repo.name }}{% if not loop.last %},{% endif %}{% endfor %}" -- include: remove_yum_repos.yml +- include_tasks: remove_yum_repos.yml when: yum_repos|length > 0 vars: repos: "{{ repos_to_remove.split(',') }}" tags: - delete-yum-repos -- include: disable_yum_repos.yml +- include_tasks: disable_yum_repos.yml when: enable_yum_repos|length > 0 vars: repos: "{{ enable_yum_repos }}" tags: - disable-yum-repos -- include: enable_yum_repos.yml +- include_tasks: enable_yum_repos.yml when: disable_yum_repos|length > 0 vars: repos: "{{ disable_yum_repos }}" diff --git a/roles/downstream-setup/tasks/main.yml b/roles/downstream-setup/tasks/main.yml index b01338a4..4269da85 100644 --- a/roles/downstream-setup/tasks/main.yml +++ b/roles/downstream-setup/tasks/main.yml @@ -5,7 +5,7 @@ # These are tasks which perform actions corresponding to the names of # the variables they use. For example, `disable_yum_repos` would actually # disable all repos defined in that list. -- include: setup.yml +- include_tasks: setup.yml when: not cleanup and (ansible_distribution == "CentOS" or ansible_distribution == "RedHat") static: no @@ -14,6 +14,6 @@ # enable all repos defined in that list. The primary use for this is through # teuthology, so that you can tell a teuthology run to disable a set of repos # for the test run but then re-enable them during the teuthology cleanup process. -- include: cleanup.yml +- include_tasks: cleanup.yml when: cleanup and (ansible_distribution == "CentOS" or ansible_distribution == "RedHat") static: no diff --git a/roles/downstream-setup/tasks/setup.yml b/roles/downstream-setup/tasks/setup.yml index 85d68e46..0de4322d 100644 --- a/roles/downstream-setup/tasks/setup.yml +++ b/roles/downstream-setup/tasks/setup.yml @@ -1,26 +1,26 @@ --- -- include: yum_repos.yml +- include_tasks: yum_repos.yml when: yum_repos|length > 0 vars: repos: "{{ yum_repos }}" tags: - yum-repos -- include: remove_yum_repos.yml +- include_tasks: remove_yum_repos.yml when: remove_yum_repos|length > 0 vars: repos: "{{ remove_yum_repos }}" tags: - delete-yum-repos -- include: disable_yum_repos.yml +- include_tasks: disable_yum_repos.yml when: disable_yum_repos|length > 0 vars: repos: "{{ disable_yum_repos }}" tags: - disable-yum-repos -- include: enable_yum_repos.yml +- include_tasks: enable_yum_repos.yml when: enable_yum_repos|length > 0 vars: repos: "{{ enable_yum_repos }}" diff --git a/roles/firmware/tasks/areca/main.yml b/roles/firmware/tasks/areca/main.yml index 8bf9e9ab..8d9b458a 100644 --- a/roles/firmware/tasks/areca/main.yml +++ b/roles/firmware/tasks/areca/main.yml @@ -30,5 +30,5 @@ (current_areca_version.stdout != latest_{{ areca_model_pretty }}_version) - name: Run Areca firmware update playbook - include: roles/firmware/tasks/areca/areca-update.yml + include_tasks: roles/firmware/tasks/areca/areca-update.yml when: need_areca_update is defined and need_areca_update == true diff --git a/roles/firmware/tasks/main.yml b/roles/firmware/tasks/main.yml index c679df44..824781d7 100644 --- a/roles/firmware/tasks/main.yml +++ b/roles/firmware/tasks/main.yml @@ -1,25 +1,25 @@ --- -- include: mira/bios.yml +- include_tasks: mira/bios.yml tags: - bios when: '"mira" in ansible_hostname' -- include: mira/bmc.yml +- include_tasks: mira/bmc.yml tags: - bmc when: '"mira" in ansible_hostname' -- include: areca/main.yml +- include_tasks: areca/main.yml tags: - areca -- include: smithi/bmc.yml +- include_tasks: smithi/bmc.yml tags: - bmc when: '"smithi" in ansible_hostname' # NVMe firmware flashing is only supported on RHEL/CentOS -- include: smithi/nvme.yml +- include_tasks: smithi/nvme.yml tags: - nvme when: '"smithi" in ansible_hostname and ansible_pkg_mgr == "yum"' diff --git a/roles/firmware/tasks/mira/bios.yml b/roles/firmware/tasks/mira/bios.yml index 8a197bc6..2ec9b3c9 100644 --- a/roles/firmware/tasks/mira/bios.yml +++ b/roles/firmware/tasks/mira/bios.yml @@ -10,5 +10,5 @@ when: current_bios_version.stdout != latest_bios_version - name: Include BIOS update logic - include: roles/firmware/tasks/mira/bios-update.yml + include_tasks: roles/firmware/tasks/mira/bios-update.yml when: need_bios_update is defined and need_bios_update == true diff --git a/roles/firmware/tasks/mira/bmc.yml b/roles/firmware/tasks/mira/bmc.yml index 179d964d..521e1093 100644 --- a/roles/firmware/tasks/mira/bmc.yml +++ b/roles/firmware/tasks/mira/bmc.yml @@ -23,5 +23,5 @@ when: current_bmc_version.stdout != latest_bmc_version - name: Include BMC update logic - include: roles/firmware/tasks/mira/bmc-update.yml + include_tasks: roles/firmware/tasks/mira/bmc-update.yml when: need_bmc_update is defined and need_bmc_update == true diff --git a/roles/firmware/tasks/smithi/bmc.yml b/roles/firmware/tasks/smithi/bmc.yml index e733de43..097026fd 100644 --- a/roles/firmware/tasks/smithi/bmc.yml +++ b/roles/firmware/tasks/smithi/bmc.yml @@ -23,5 +23,5 @@ when: current_bmc_version.stdout != latest_bmc_version - name: Include BMC update logic - include: roles/firmware/tasks/smithi/bmc-update.yml + include_tasks: roles/firmware/tasks/smithi/bmc-update.yml when: need_bmc_update is defined and need_bmc_update == true diff --git a/roles/gateway/tasks/main.yml b/roles/gateway/tasks/main.yml index f1f68619..320c7c53 100644 --- a/roles/gateway/tasks/main.yml +++ b/roles/gateway/tasks/main.yml @@ -6,22 +6,22 @@ - always # Install and update system packages -- include: packages.yml +- include_tasks: packages.yml tags: - packages # Configure networking -- include: network.yml +- include_tasks: network.yml tags: - networking # Configure firewalld -- include: firewall.yml +- include_tasks: firewall.yml tags: - firewall # Configure fail2ban -- include: fail2ban.yml +- include_tasks: fail2ban.yml tags: - fail2ban @@ -32,7 +32,7 @@ mode: 0755 # Manage OpenVPN users list using secrets repo -- include: users.yml +- include_tasks: users.yml tags: - users diff --git a/roles/nameserver/tasks/main.yml b/roles/nameserver/tasks/main.yml index e32c7ec3..9a366a08 100644 --- a/roles/nameserver/tasks/main.yml +++ b/roles/nameserver/tasks/main.yml @@ -6,7 +6,7 @@ - always # Install and update system packages -- include: packages.yml +- include_tasks: packages.yml tags: - packages @@ -28,17 +28,17 @@ - always # Configure firewalld -- include: firewall.yml +- include_tasks: firewall.yml tags: - firewall # Configure BIND -- include: config.yml +- include_tasks: config.yml tags: - config # Compile and write zone files -- include: records.yml +- include_tasks: records.yml tags: - records when: (named_conf_slave is undefined) or diff --git a/roles/packages/tasks/cleanup.yml b/roles/packages/tasks/cleanup.yml index 3a42ef6c..4827d5dc 100644 --- a/roles/packages/tasks/cleanup.yml +++ b/roles/packages/tasks/cleanup.yml @@ -1,6 +1,6 @@ --- - debug: msg="Performing cleanup related tasks..." -- include: packages.yml +- include_tasks: packages.yml vars: state: "absent" diff --git a/roles/packages/tasks/main.yml b/roles/packages/tasks/main.yml index eab8c93e..fa05c7c4 100644 --- a/roles/packages/tasks/main.yml +++ b/roles/packages/tasks/main.yml @@ -2,7 +2,7 @@ # These are tasks which perform actions corresponding to the names of # the variables they use. For example, `disable_yum_repos` would actually # disable all repos defined in that list. -- include: setup.yml +- include_tasks: setup.yml when: not cleanup # These are tasks which reverse the actions corresponding to the names of @@ -10,5 +10,5 @@ # enable all repos defined in that list. The primary use for this is through # teuthology, so that you can tell a teuthology run to disable a set of repos # for the test run but then re-enable them during the teuthology cleanup process. -- include: cleanup.yml +- include_tasks: cleanup.yml when: cleanup diff --git a/roles/packages/tasks/setup.yml b/roles/packages/tasks/setup.yml index 7273472f..3fa645ae 100644 --- a/roles/packages/tasks/setup.yml +++ b/roles/packages/tasks/setup.yml @@ -1,4 +1,4 @@ --- -- include: packages.yml +- include_tasks: packages.yml vars: state: "present" diff --git a/roles/paddles/tasks/main.yml b/roles/paddles/tasks/main.yml index 68255c47..7092e1a8 100644 --- a/roles/paddles/tasks/main.yml +++ b/roles/paddles/tasks/main.yml @@ -25,24 +25,24 @@ tags: - always -- include: apt_systems.yml +- include_tasks: apt_systems.yml when: ansible_pkg_mgr == "apt" # Yum systems support is not implemented yet. -- include: yum_systems.yml +- include_tasks: yum_systems.yml when: ansible_pkg_mgr == "yum" # Set up the paddles user -- include: setup_user.yml +- include_tasks: setup_user.yml # Set up the actual paddles project -- include: setup_paddles.yml +- include_tasks: setup_paddles.yml # Set up the DB which paddles uses -- include: setup_db.yml +- include_tasks: setup_db.yml # Configure the system to run paddles as a daemon -- include: setup_service.yml +- include_tasks: setup_service.yml # Configure nginx as a reverse proxy -- include: nginx.yml +- include_tasks: nginx.yml diff --git a/roles/pcp/tasks/collector.yml b/roles/pcp/tasks/collector.yml index 99605fbc..622623de 100644 --- a/roles/pcp/tasks/collector.yml +++ b/roles/pcp/tasks/collector.yml @@ -23,7 +23,7 @@ when: ansible_pkg_mgr == "dnf" -- include: permissons.yml +- include_tasks: permissons.yml - name: Restart pcp service: diff --git a/roles/pcp/tasks/main.yml b/roles/pcp/tasks/main.yml index 4df72729..3c1d808e 100644 --- a/roles/pcp/tasks/main.yml +++ b/roles/pcp/tasks/main.yml @@ -5,34 +5,34 @@ - always - name: Set up upstream repo - include: repo.yml + include_tasks: repo.yml when: upstream_repo|bool == true tags: - repo -- include: apt_update.yml +- include_tasks: apt_update.yml when: upstream_repo|bool == false tags: - always - name: Set up as collector - include: collector.yml + include_tasks: collector.yml when: pcp_collector|bool == true tags: - collector - name: Set up as manager - include: manager.yml + include_tasks: manager.yml when: pcp_manager|bool == true tags: - manager - name: Set up web UI - include: web.yml + include_tasks: web.yml when: pcp_web|bool == true tags: diff --git a/roles/pcp/tasks/manager.yml b/roles/pcp/tasks/manager.yml index b1b9bbcf..888ff7c7 100644 --- a/roles/pcp/tasks/manager.yml +++ b/roles/pcp/tasks/manager.yml @@ -72,7 +72,7 @@ mode: 0644 register: target_discovery -- include: permissons.yml +- include_tasks: permissons.yml # This greatly speeds up polling for hosts - name: Set PMCD_CONNECT_TIMEOUT in pmmgr.options diff --git a/roles/pcp/tasks/repo.yml b/roles/pcp/tasks/repo.yml index 12f5be67..9f51e7f6 100644 --- a/roles/pcp/tasks/repo.yml +++ b/roles/pcp/tasks/repo.yml @@ -30,7 +30,7 @@ when: ansible_pkg_mgr == "yum" -- include: apt_update.yml +- include_tasks: apt_update.yml - name: Ensure packages are updated (apt) shell: "DEBIAN_FRONTEND=noninteractive apt -y install --only-upgrade .*pcp.*" diff --git a/roles/public_facing/tasks/download.ceph.com.yml b/roles/public_facing/tasks/download.ceph.com.yml index e9b6b862..ae447528 100644 --- a/roles/public_facing/tasks/download.ceph.com.yml +++ b/roles/public_facing/tasks/download.ceph.com.yml @@ -68,4 +68,4 @@ minute: "0" job: "/usr/libexec/make_timestamp" -- include: letsencrypt_nginx.yml +- include_tasks: letsencrypt_nginx.yml diff --git a/roles/public_facing/tasks/main.yml b/roles/public_facing/tasks/main.yml index 6e215de4..17a90285 100644 --- a/roles/public_facing/tasks/main.yml +++ b/roles/public_facing/tasks/main.yml @@ -3,12 +3,12 @@ # Most of our public-facing hosts are running Ubuntu. # use_ufw defaults to false but is overridden in inventory host_vars -- include: ufw.yml +- include_tasks: ufw.yml when: use_ufw == true tags: - always -- include: fail2ban.yml +- include_tasks: fail2ban.yml tags: - always when: use_fail2ban == true @@ -33,5 +33,5 @@ register: host_playbook - name: Include any host-specific playbooks if present - include: "{{ ansible_host }}.yml" + include_tasks: "{{ ansible_host }}.yml" when: host_playbook.stat.exists diff --git a/roles/public_facing/tasks/www.ceph.com.yml b/roles/public_facing/tasks/www.ceph.com.yml index f28e4200..fd9cf8de 100644 --- a/roles/public_facing/tasks/www.ceph.com.yml +++ b/roles/public_facing/tasks/www.ceph.com.yml @@ -9,4 +9,4 @@ minute: "*/5" job: "/usr/bin/wget -q -O - http://ceph.com/wp-cron.php?doing_wp_cron" -- include: letsencrypt_nginx.yml +- include_tasks: letsencrypt_nginx.yml diff --git a/roles/puddle/tasks/main.yml b/roles/puddle/tasks/main.yml index afdb78a1..e4cd44af 100644 --- a/roles/puddle/tasks/main.yml +++ b/roles/puddle/tasks/main.yml @@ -4,33 +4,33 @@ when: ansible_distribution != 'RedHat' # install puddle -- include: install.yml +- include_tasks: install.yml tags: - install-puddle # configure NFS -- include: nfs.yml +- include_tasks: nfs.yml # configure puddle -- include: configure.yml +- include_tasks: configure.yml tags: - configure-puddle # install and configure web server -- include: nginx.yml +- include_tasks: nginx.yml tags: - nginx # install and configure distill -- include: distill/install.yml +- include_tasks: distill/install.yml tags: - install-distill -- include: distill/configure.yml +- include_tasks: distill/configure.yml tags: - configure-distill # install and configure rsyncd -- include: rsync.yml +- include_tasks: rsync.yml tags: - rsync diff --git a/roles/pulpito/tasks/main.yml b/roles/pulpito/tasks/main.yml index c5fca97b..7da3b604 100644 --- a/roles/pulpito/tasks/main.yml +++ b/roles/pulpito/tasks/main.yml @@ -4,10 +4,10 @@ tags: - always -- include: yum_systems.yml +- include_tasks: yum_systems.yml when: ansible_pkg_mgr == "yum" -- include: apt_systems.yml +- include_tasks: apt_systems.yml when: ansible_pkg_mgr == "apt" - name: Create the user diff --git a/roles/testnode/tasks/apt_systems.yml b/roles/testnode/tasks/apt_systems.yml index 2319d66e..a1c6dc65 100644 --- a/roles/testnode/tasks/apt_systems.yml +++ b/roles/testnode/tasks/apt_systems.yml @@ -1,6 +1,6 @@ --- - name: Setup local repo files. - include: apt/repos.yml + include_tasks: apt/repos.yml tags: - repos @@ -22,7 +22,7 @@ - packages - name: Perform package related tasks. - include: apt/packages.yml + include_tasks: apt/packages.yml tags: - packages @@ -67,7 +67,7 @@ groups: fuse,kvm,disk append: yes -- include: static_ip.yml +- include_tasks: static_ip.yml when: "'vps' not in group_names" - name: Stop apache2 diff --git a/roles/testnode/tasks/lvm.yml b/roles/testnode/tasks/lvm.yml index a6e9c105..d9f5ce0a 100644 --- a/roles/testnode/tasks/lvm.yml +++ b/roles/testnode/tasks/lvm.yml @@ -7,6 +7,6 @@ backrefs: yes state: present -- include: configure_lvm.yml +- include_tasks: configure_lvm.yml when: (logical_volumes is defined) or (volume_groups is defined) diff --git a/roles/testnode/tasks/main.yml b/roles/testnode/tasks/main.yml index 2f244ea3..06457000 100644 --- a/roles/testnode/tasks/main.yml +++ b/roles/testnode/tasks/main.yml @@ -1,11 +1,11 @@ --- # loading vars -- include: vars.yml +- include_tasks: vars.yml tags: - vars - always -- include: user.yml +- include_tasks: user.yml tags: - user @@ -19,92 +19,92 @@ when: ansible_pkg_mgr != "zypper" - name: Set the hostname - include: set_hostname.yml + include_tasks: set_hostname.yml when: lab_domain != "" tags: - hostname - name: configure ssh - include: ssh.yml + include_tasks: ssh.yml tags: - ssh - name: configure things specific to yum systems - include: yum_systems.yml + include_tasks: yum_systems.yml when: ansible_pkg_mgr == "yum" - name: configure things specific to apt systems - include: apt_systems.yml + include_tasks: apt_systems.yml when: ansible_pkg_mgr == "apt" - name: configure things specific to zypper systems - include: zypper_systems.yml + include_tasks: zypper_systems.yml when: ansible_pkg_mgr == "zypper" - name: configure centos specific things - include: setup-centos.yml + include_tasks: setup-centos.yml when: ansible_distribution == "CentOS" - name: configure red hat specific things - include: setup-redhat.yml + include_tasks: setup-redhat.yml when: ansible_distribution == 'RedHat' - name: configure fedora specific things - include: setup-fedora.yml + include_tasks: setup-fedora.yml when: ansible_distribution == "Fedora" - name: configure ubuntu specific things - include: setup-ubuntu.yml + include_tasks: setup-ubuntu.yml when: ansible_distribution == "Ubuntu" - name: configure ubuntu non-aarch64 specific things - include: setup-ubuntu-non-aarch64.yml + include_tasks: setup-ubuntu-non-aarch64.yml when: ansible_distribution == "Ubuntu" and ansible_architecture != "aarch64" - name: configure debian specific things - include: setup-debian.yml + include_tasks: setup-debian.yml when: ansible_distribution == "Debian" -- include: zap_disks.yml +- include_tasks: zap_disks.yml tags: - zap - name: partition drives, if any are requested - include: drive_partitioning.yml + include_tasks: drive_partitioning.yml when: drives_to_partition is defined tags: - partition - name: set up LVM - include: lvm.yml + include_tasks: lvm.yml tags: - lvm - name: mount /var/lib/ceph to specified partition - include: var_lib.yml + include_tasks: var_lib.yml when: var_lib_partition is defined tags: - varlib # Install and configure cpan and Amazon::S3 -- include: cpan.yml +- include_tasks: cpan.yml tags: - cpan # configure ntp -- include: ntp.yml +- include_tasks: ntp.yml tags: - ntp-client - name: configure pip to use our mirror - include: pip.yml + include_tasks: pip.yml tags: - pip - name: include resolv.conf setup - include: resolvconf.yml + include_tasks: resolvconf.yml tags: - resolvconf diff --git a/roles/testnode/tasks/redhat/rhel_6.yml b/roles/testnode/tasks/redhat/rhel_6.yml index e71911e4..b3065248 100644 --- a/roles/testnode/tasks/redhat/rhel_6.yml +++ b/roles/testnode/tasks/redhat/rhel_6.yml @@ -1,5 +1,5 @@ --- - name: Fix broken cloud-init - include: ../cloud-init.yml + include_tasks: ../cloud-init.yml -- include: ../imitate_ubuntu.yml +- include_tasks: ../imitate_ubuntu.yml diff --git a/roles/testnode/tasks/redhat/rhel_7.yml b/roles/testnode/tasks/redhat/rhel_7.yml index 21a82b89..d9fdfa89 100644 --- a/roles/testnode/tasks/redhat/rhel_7.yml +++ b/roles/testnode/tasks/redhat/rhel_7.yml @@ -1,4 +1,4 @@ --- -- include: ../nfs.yml +- include_tasks: ../nfs.yml tags: - nfs diff --git a/roles/testnode/tasks/setup-centos.yml b/roles/testnode/tasks/setup-centos.yml index 03a467ce..319db0cc 100644 --- a/roles/testnode/tasks/setup-centos.yml +++ b/roles/testnode/tasks/setup-centos.yml @@ -1,6 +1,6 @@ --- - name: Fix broken cloud-init - include: cloud-init.yml + include_tasks: cloud-init.yml when: ansible_distribution_major_version == "6" -- include: imitate_ubuntu.yml +- include_tasks: imitate_ubuntu.yml diff --git a/roles/testnode/tasks/setup-fedora.yml b/roles/testnode/tasks/setup-fedora.yml index e393dddc..89dacafd 100644 --- a/roles/testnode/tasks/setup-fedora.yml +++ b/roles/testnode/tasks/setup-fedora.yml @@ -1,5 +1,5 @@ --- -- include: imitate_ubuntu.yml +- include_tasks: imitate_ubuntu.yml - name: Set grub config. template: diff --git a/roles/testnode/tasks/setup-redhat.yml b/roles/testnode/tasks/setup-redhat.yml index 667e4cd1..7e9047e0 100644 --- a/roles/testnode/tasks/setup-redhat.yml +++ b/roles/testnode/tasks/setup-redhat.yml @@ -1,8 +1,8 @@ --- - name: Include rhel 7.x specific tasks. - include: redhat/rhel_7.yml + include_tasks: redhat/rhel_7.yml when: ansible_distribution_major_version == "7" - name: Include rhel 6.x specific tasks. - include: redhat/rhel_6.yml + include_tasks: redhat/rhel_6.yml when: ansible_distribution_major_version == "6" diff --git a/roles/testnode/tasks/setup-ubuntu.yml b/roles/testnode/tasks/setup-ubuntu.yml index 9c01ec14..61e4d6b2 100644 --- a/roles/testnode/tasks/setup-ubuntu.yml +++ b/roles/testnode/tasks/setup-ubuntu.yml @@ -4,6 +4,6 @@ path: /etc/ceph state: absent -- include: nfs.yml +- include_tasks: nfs.yml tags: - nfs diff --git a/roles/testnode/tasks/yum/repos.yml b/roles/testnode/tasks/yum/repos.yml index d9ac73b5..3465a3ea 100644 --- a/roles/testnode/tasks/yum/repos.yml +++ b/roles/testnode/tasks/yum/repos.yml @@ -21,7 +21,7 @@ with_dict: "{{ yum_repos }}" when: yum_repos.keys() | length > 0 -- include: gpg_keys.yml +- include_tasks: gpg_keys.yml when: ansible_distribution == "Fedora" tags: - gpg-keys diff --git a/roles/testnode/tasks/yum_systems.yml b/roles/testnode/tasks/yum_systems.yml index ed02f5d1..3976aa77 100644 --- a/roles/testnode/tasks/yum_systems.yml +++ b/roles/testnode/tasks/yum_systems.yml @@ -55,17 +55,17 @@ rpm --rebuilddb - name: Setup local repo files. - include: yum/repos.yml + include_tasks: yum/repos.yml tags: - repos - name: Perform package related tasks. - include: yum/packages.yml + include_tasks: yum/packages.yml tags: - packages - name: Disable firewall - include: yum/firewall.yml + include_tasks: yum/firewall.yml - name: Enable SELinux selinux: state=permissive policy=targeted diff --git a/roles/testnode/tasks/zypper_systems.yml b/roles/testnode/tasks/zypper_systems.yml index 6efed232..a7352569 100644 --- a/roles/testnode/tasks/zypper_systems.yml +++ b/roles/testnode/tasks/zypper_systems.yml @@ -47,7 +47,7 @@ rpm --rebuilddb - name: Perform package related tasks. - include: zypper/packages.yml + include_tasks: zypper/packages.yml tags: - packages diff --git a/roles/teuthology/tasks/main.yml b/roles/teuthology/tasks/main.yml index de70d20d..32fb26ca 100644 --- a/roles/teuthology/tasks/main.yml +++ b/roles/teuthology/tasks/main.yml @@ -1,13 +1,13 @@ --- -- include: apt_systems.yml +- include_tasks: apt_systems.yml when: ansible_pkg_mgr == "apt" # Yum systems support is not implemented yet. -- include: yum_systems.yml +- include_tasks: yum_systems.yml when: ansible_pkg_mgr == "yum" # Set up the different users that teuthology uses -- include: setup_users.yml +- include_tasks: setup_users.yml - name: Ship /etc/teuthology.yaml template: @@ -18,6 +18,6 @@ - config # Serve logs over HTTP -- include: setup_log_access.yml +- include_tasks: setup_log_access.yml tags: - logs diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index ac1c24b9..f0806b76 100644 --- a/roles/users/tasks/main.yml +++ b/roles/users/tasks/main.yml @@ -1,17 +1,17 @@ --- -- include: filter_users.yml +- include_tasks: filter_users.yml tags: - always -- include: create_users.yml +- include_tasks: create_users.yml tags: - user -- include: update_keys.yml +- include_tasks: update_keys.yml tags: - pubkeys -- include: revoke_users.yml +- include_tasks: revoke_users.yml tags: - user - revoke diff --git a/roles/vmhost/tasks/main.yml b/roles/vmhost/tasks/main.yml index b6196127..778e6caf 100644 --- a/roles/vmhost/tasks/main.yml +++ b/roles/vmhost/tasks/main.yml @@ -1,8 +1,8 @@ -- include: packages.yml +- include_tasks: packages.yml tags: packages -- include: networking.yml +- include_tasks: networking.yml tags: networking -- include: libvirt.yml +- include_tasks: libvirt.yml tags: libvirt