]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
all: Use import_tasks vs include_tasks so tags work again 365/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 19 Dec 2017 01:17:05 +0000 (20:17 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 19 Dec 2017 01:18:34 +0000 (20:18 -0500)
See https://github.com/ansible/ansible/pull/33468

Signed-off-by: David Galloway <dgallowa@redhat.com>
50 files changed:
roles/cobbler/tasks/main.yml
roles/cobbler/tasks/settings.yml
roles/cobbler/tasks/setup-redhat.yml
roles/cobbler/tasks/yum_systems.yml
roles/cobbler_profile/tasks/import_distro.yml
roles/cobbler_profile/tasks/import_distro_image.yml
roles/cobbler_profile/tasks/import_distro_iso.yml
roles/cobbler_profile/tasks/main.yml
roles/cobbler_systems/tasks/main.yml
roles/common/tasks/main.yml
roles/common/tasks/rhel-entitlements.yml
roles/common/tasks/yum_systems.yml
roles/downstream-setup/tasks/cleanup.yml
roles/downstream-setup/tasks/main.yml
roles/downstream-setup/tasks/setup.yml
roles/firmware/tasks/areca/main.yml
roles/firmware/tasks/main.yml
roles/firmware/tasks/mira/bios.yml
roles/firmware/tasks/mira/bmc.yml
roles/firmware/tasks/smithi/bmc.yml
roles/gateway/tasks/main.yml
roles/nameserver/tasks/main.yml
roles/packages/tasks/cleanup.yml
roles/packages/tasks/main.yml
roles/packages/tasks/setup.yml
roles/paddles/tasks/main.yml
roles/pcp/tasks/collector.yml
roles/pcp/tasks/main.yml
roles/pcp/tasks/manager.yml
roles/pcp/tasks/repo.yml
roles/public_facing/tasks/download.ceph.com.yml
roles/public_facing/tasks/main.yml
roles/public_facing/tasks/www.ceph.com.yml
roles/puddle/tasks/main.yml
roles/pulpito/tasks/main.yml
roles/testnode/tasks/apt_systems.yml
roles/testnode/tasks/lvm.yml
roles/testnode/tasks/main.yml
roles/testnode/tasks/redhat/rhel_6.yml
roles/testnode/tasks/redhat/rhel_7.yml
roles/testnode/tasks/setup-centos.yml
roles/testnode/tasks/setup-fedora.yml
roles/testnode/tasks/setup-redhat.yml
roles/testnode/tasks/setup-ubuntu.yml
roles/testnode/tasks/yum/repos.yml
roles/testnode/tasks/yum_systems.yml
roles/testnode/tasks/zypper_systems.yml
roles/teuthology/tasks/main.yml
roles/users/tasks/main.yml
roles/vmhost/tasks/main.yml

index 6ebbab0b31bb149ea23c44562e864a74c2792e34..82520919b26ed3b038b86263adfbf8ac0e83cbcd 100644 (file)
@@ -1,5 +1,5 @@
 ---
-- include_tasks: ipmi_secrets.yml
+- import_tasks: ipmi_secrets.yml
   tags:
     - always
 
   tags:
     - always
 
-- include_tasks: yum_systems.yml
+- import_tasks: yum_systems.yml
   when: ansible_pkg_mgr == "yum"
 
-- include_tasks: apt_systems.yml
+- import_tasks: apt_systems.yml
   when: ansible_pkg_mgr == "apt"
 
-- include_tasks: pip.yml
+- import_tasks: pip.yml
   tags:
     - pip
 
     enabled: yes
 
 - name: Update settings
-  include_tasks: settings.yml
+  import_tasks: settings.yml
   tags:
     - settings
 
-- include_tasks: fetch_cm_repos.yml
+- import_tasks: fetch_cm_repos.yml
   tags:
    - cm_repos
 
-- include_tasks: upload_templates.yml
+- import_tasks: upload_templates.yml
   tags:
     - templates
 
-- include_tasks: distro_prep.yml
+- import_tasks: distro_prep.yml
   tags:
     - distros
     - distro_prep
 
-- include_tasks: restart.yml
+- import_tasks: restart.yml
 
 - name: Run cobbler check
   command: cobbler check
index 8905a8548cca1da139437f45f488b99e3dd5443c..e9037f03334fd957bf1f7423fe2b16381a5906dd 100644 (file)
@@ -24,7 +24,7 @@
     line: "server{{':'}} {% for setting in settings %}{% if setting.name == 'server' %}{{ setting.value }}{% endif %}{% endfor %}"
   register: server_value
 
-- include_tasks: restart.yml
+- import_tasks: restart.yml
   when: users_digest|changed or dynamic_settings|changed or server_value|changed
 
 - name: Update settings
index 7e9047e0f7f7053c5ee0d2b440c1982a1016aacb..e853612c693237793da5f2476b7ad37d4e5e5a18 100644 (file)
@@ -1,8 +1,8 @@
 ---
 - name: Include rhel 7.x specific tasks.
-  include_tasks: redhat/rhel_7.yml
+  import_tasks: redhat/rhel_7.yml
   when: ansible_distribution_major_version == "7"
 
 - name: Include rhel 6.x specific tasks.
-  include_tasks: redhat/rhel_6.yml
+  import_tasks: redhat/rhel_6.yml
   when: ansible_distribution_major_version == "6"
index 5d6b87c01b2f67ad2fdd04f73e080f9bf8ef463b..6d99759c4c5814c1a9cab70061d07e53b5bc71aa 100644 (file)
@@ -13,5 +13,5 @@
   when: cobbler_extra_packages|length > 0
 
 # configure red hat specific things
-- include_tasks: setup-redhat.yml
+- import_tasks: setup-redhat.yml
   when: ansible_distribution in ('RedHat', 'CentOS')
index 977b0219a6f7d4a55ae3bfa89cefcd31be564073..ef4dfcb23c997b52bec05745e4e18eb38685beed 100644 (file)
   ignore_errors: true
   changed_when: false
 
-- include_tasks: import_distro_iso.yml
+- import_tasks: import_distro_iso.yml
   when: profile_type|default('') == 'iso'
 
-- include_tasks: import_distro_image.yml
+- import_tasks: import_distro_image.yml
   when: profile_type|default('') == 'image'
 
 # If either the profile already existed or we successfully imported the
         ((profile is defined and profile.stdout == distro_name) or
          (import is defined and import.rc == 0))
 
-- include_tasks: update_kickstart.yml
+- import_tasks: update_kickstart.yml
   when: distro.kickstart is defined and
         distro.kickstart != '' and
         profile_found
 
-- include_tasks: update_kernel_options.yml
+- import_tasks: update_kernel_options.yml
   when: distro.kernel_options is defined and
         distro.kernel_options != '' and
         profile_found
 
-- include_tasks: update_kernel_options_post.yml
+- import_tasks: update_kernel_options_post.yml
   when: distro.kernel_options_post is defined and
         distro.kernel_options_post != '' and
         profile_found
index fa095cd01c391e5ad44d603c0bd716499e259b74..01535c29c4283af4e224b8790aa507418c878528 100644 (file)
@@ -19,7 +19,7 @@
   set_fact:
       initrd_path: "{{ other_image_dir }}/{{ initrd_name }}"
 
-- include_tasks: download_image.yml
+- import_tasks: download_image.yml
   when: distro.kernel != ''
 
 - name: Set arch
index eb7ad5797aaf96e274cbb016d3a08ff21e4909d1..8cc382e308e367b0718e0e44916c855121476f67 100644 (file)
@@ -7,7 +7,7 @@
   set_fact:
       iso_path: "{{ iso_dir }}/{{ iso_name }}"
 
-- include_tasks: download_iso.yml
+- import_tasks: download_iso.yml
   when: distro.iso != ''
 
 # we do this so that if the playbook fails
index 908a4df17c4e75916486de47df8c387d57de2c12..def403e01f9eeea759da52c456647729c7f7cba0 100644 (file)
@@ -1,4 +1,4 @@
 ---
-- include_tasks: import_distro.yml
+- import_tasks: import_distro.yml
   tags:
     - distros
index cb97e732061716cb1fedd9346b54fa7127ee9763..59f2c609f1abd3e4ba54cc5f227f3ae100b2eba8 100644 (file)
@@ -1,5 +1,5 @@
 ---
-- include_tasks: populate_systems.yml
+- import_tasks: populate_systems.yml
   tags:
     - systems
 
index 5a39f760c9f866fbe75c6ca60135d945e2abd8c1..f6899ed3b5cba65b658ee3bbe70b97b1e526f6ff 100644 (file)
     - entitlements
 
 # configure things specific to yum systems
-- include_tasks: yum_systems.yml
+- import_tasks: yum_systems.yml
   when: ansible_pkg_mgr == "yum"
 
 # configure things specific to apt systems
-- include_tasks: apt_systems.yml
+- import_tasks: apt_systems.yml
   when: ansible_pkg_mgr == "apt"
 
-- include_tasks: zypper_systems.yml
+- import_tasks: zypper_systems.yml
   when: ansible_pkg_mgr == "zypper"
 
 # configure Kerberos
-- include_tasks: kerberos.yml
+- import_tasks: kerberos.yml
   tags:
     - kerberos
 
 # upload custom disk monitoring scripts
-- include_tasks: disk_monitoring.yml
+- import_tasks: disk_monitoring.yml
   tags:
     - monitoring-scripts
     - nagios
 
 # configure nagios
-- include_tasks: nagios.yml
+- import_tasks: nagios.yml
   when: ansible_pkg_mgr != "zypper"
   tags:
     - nagios
@@ -50,7 +50,7 @@
     - nagios
 
 # configure selinux for nagios
-- include_tasks: nrpe-selinux.yml
+- import_tasks: nrpe-selinux.yml
   when: ansible_os_family == "RedHat" and
         (selinux_status is defined and selinux_status.stdout != "Disabled")
   tags:
index d3c148cdac27b332ef1f75d515d31e9ad02f15d3..99f9b2a379306880996691a0e902a363786d1846 100644 (file)
@@ -72,7 +72,7 @@
   when: not unregistered_beta_distro|skipped
 
 - name: Run beta_repos.yml playbook for Beta/Alpha/RC release
-  include_tasks: beta_repos.yml
+  import_tasks: beta_repos.yml
   when: ansible_distribution_version not in rhsm_release_list.stdout_lines
 
 - name: Get list of enabled RHSM repos
index 36ca8dc2d72a9f69280ad31648649796399ae538..562142b1b60882a9d7a9af88f7449ea2ca4c3ada 100644 (file)
@@ -49,7 +49,7 @@
   when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int >= 22
 
 # configure Red Hat entitlements with subscription-manager
-- include_tasks: rhel-entitlements.yml
+- import_tasks: rhel-entitlements.yml
   when:
     ansible_distribution == 'RedHat' and
     beta_distro == false
@@ -57,7 +57,7 @@
     - entitlements
 
 # create and manage epel.repo
-- include_tasks: epel.yml
+- import_tasks: epel.yml
   when:
     ansible_distribution == "CentOS" or
     ansible_distribution == 'RedHat'
index 522468a230997f08a604778e46862abbba04c1b4..94c1d6ff4b724b55ac433df870552fbf2eeab82c 100644 (file)
@@ -1,7 +1,7 @@
 ---
 - debug: msg="Performing cleanup related tasks..."
 
-- include_tasks: yum_repos.yml
+- import_tasks: yum_repos.yml
   when: remove_yum_repos|length > 0
   vars:
     repos: "{{ remove_yum_repos }}"
 - set_fact:
     repos_to_remove: "{% for repo in yum_repos%}{{ repo.name }}{% if not loop.last %},{% endif %}{% endfor %}"
 
-- include_tasks: remove_yum_repos.yml
+- import_tasks: remove_yum_repos.yml
   when: yum_repos|length > 0
   vars:
     repos: "{{ repos_to_remove.split(',') }}"
   tags:
     - delete-yum-repos
 
-- include_tasks: disable_yum_repos.yml
+- import_tasks: disable_yum_repos.yml
   when: enable_yum_repos|length > 0
   vars:
     repos: "{{ enable_yum_repos }}"
   tags:
     - disable-yum-repos
 
-- include_tasks: enable_yum_repos.yml
+- import_tasks: enable_yum_repos.yml
   when: disable_yum_repos|length > 0
   vars:
     repos: "{{ disable_yum_repos }}"
index 4269da8584b4103eedbfbb9438629f2f41a4c028..35133f51e233201d1147586cbd8b7b412b6ed8c8 100644 (file)
@@ -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_tasks: setup.yml
+- import_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_tasks: cleanup.yml
+- import_tasks: cleanup.yml
   when: cleanup and (ansible_distribution == "CentOS" or ansible_distribution == "RedHat")
   static: no
index 0de4322deeb7101d865a1a4bafac1925e397546b..7c554b0cbd0b25e7aa6ebe31eb68a55c02393258 100644 (file)
@@ -1,26 +1,26 @@
 ---
-- include_tasks: yum_repos.yml
+- import_tasks: yum_repos.yml
   when: yum_repos|length > 0
   vars:
     repos: "{{ yum_repos }}"
   tags:
     - yum-repos
 
-- include_tasks: remove_yum_repos.yml
+- import_tasks: remove_yum_repos.yml
   when: remove_yum_repos|length > 0
   vars:
     repos: "{{ remove_yum_repos }}"
   tags:
     - delete-yum-repos
 
-- include_tasks: disable_yum_repos.yml
+- import_tasks: disable_yum_repos.yml
   when: disable_yum_repos|length > 0
   vars:
     repos: "{{ disable_yum_repos }}"
   tags:
     - disable-yum-repos
 
-- include_tasks: enable_yum_repos.yml
+- import_tasks: enable_yum_repos.yml
   when: enable_yum_repos|length > 0
   vars:
     repos: "{{ enable_yum_repos }}"
index 8d9b458a087c45d9600403b8a5926f0a388e065c..be0af13b5e6eacfbd6e2ef43fd29fc2505892509 100644 (file)
@@ -30,5 +30,5 @@
         (current_areca_version.stdout != latest_{{ areca_model_pretty }}_version)
 
 - name: Run Areca firmware update playbook
-  include_tasks: roles/firmware/tasks/areca/areca-update.yml
+  import_tasks: roles/firmware/tasks/areca/areca-update.yml
   when: need_areca_update is defined and need_areca_update == true
index 824781d73736889b0054acb28b632ab330c9d98c..3da7d63af61e104a9e88fed39a7fa00f1f5bffee 100644 (file)
@@ -1,25 +1,25 @@
 ---
-- include_tasks: mira/bios.yml
+- import_tasks: mira/bios.yml
   tags:
     - bios
   when: '"mira" in ansible_hostname'
 
-- include_tasks: mira/bmc.yml
+- import_tasks: mira/bmc.yml
   tags:
     - bmc
   when: '"mira" in ansible_hostname'
 
-- include_tasks: areca/main.yml
+- import_tasks: areca/main.yml
   tags:
     - areca
 
-- include_tasks: smithi/bmc.yml
+- import_tasks: smithi/bmc.yml
   tags:
     - bmc
   when: '"smithi" in ansible_hostname'
 
 # NVMe firmware flashing is only supported on RHEL/CentOS
-- include_tasks: smithi/nvme.yml
+- import_tasks: smithi/nvme.yml
   tags:
     - nvme
   when: '"smithi" in ansible_hostname and ansible_pkg_mgr == "yum"'
index 2ec9b3c98ad1ca510ee6ba044b6d23b3a47f7fbf..b68fcd2da20d4bebb3310ae672fdc0d5a7d0bf17 100644 (file)
@@ -10,5 +10,5 @@
   when: current_bios_version.stdout != latest_bios_version
 
 - name: Include BIOS update logic
-  include_tasks: roles/firmware/tasks/mira/bios-update.yml
+  import_tasks: roles/firmware/tasks/mira/bios-update.yml
   when: need_bios_update is defined and need_bios_update == true
index 521e1093dd4a042869c8bf724ac26ec88efec7c0..64d0a2372a2a7e6a58e3ba497da46bf737392108 100644 (file)
@@ -23,5 +23,5 @@
   when: current_bmc_version.stdout != latest_bmc_version
 
 - name: Include BMC update logic
-  include_tasks: roles/firmware/tasks/mira/bmc-update.yml
+  import_tasks: roles/firmware/tasks/mira/bmc-update.yml
   when: need_bmc_update is defined and need_bmc_update == true
index 097026fd9f5e14ef4e08c5f34b04bc9d6260a148..f11beb7f660b04a712814bf11b055c95e38630d6 100644 (file)
@@ -23,5 +23,5 @@
   when: current_bmc_version.stdout != latest_bmc_version
 
 - name: Include BMC update logic
-  include_tasks: roles/firmware/tasks/smithi/bmc-update.yml
+  import_tasks: roles/firmware/tasks/smithi/bmc-update.yml
   when: need_bmc_update is defined and need_bmc_update == true
index 320c7c5330f1eaa328ec911876b705c801619138..255ec8707a98f71ac3a2784e21b64d718677373b 100644 (file)
@@ -6,22 +6,22 @@
     - always
 
 # Install and update system packages
-- include_tasks: packages.yml
+- import_tasks: packages.yml
   tags:
     - packages
 
 # Configure networking
-- include_tasks: network.yml
+- import_tasks: network.yml
   tags:
     - networking
 
 # Configure firewalld
-- include_tasks: firewall.yml
+- import_tasks: firewall.yml
   tags:
     - firewall
 
 # Configure fail2ban
-- include_tasks: fail2ban.yml
+- import_tasks: fail2ban.yml
   tags:
     - fail2ban
 
@@ -32,7 +32,7 @@
     mode: 0755
 
 # Manage OpenVPN users list using secrets repo
-- include_tasks: users.yml
+- import_tasks: users.yml
   tags:
     - users
 
index 9a366a083e5d8de07135b5bf5dbea5bed4785087..c35dd0c870cad7697a13c670a428ce84018fb9f7 100644 (file)
@@ -6,7 +6,7 @@
     - always
 
 # Install and update system packages
-- include_tasks: packages.yml
+- import_tasks: packages.yml
   tags:
     - packages
 
     - always
 
 # Configure firewalld
-- include_tasks: firewall.yml
+- import_tasks: firewall.yml
   tags:
     - firewall
 
 # Configure BIND
-- include_tasks: config.yml
+- import_tasks: config.yml
   tags:
     - config
 
 # Compile and write zone files
-- include_tasks: records.yml
+- import_tasks: records.yml
   tags:
     - records
   when: (named_conf_slave is undefined) or
index 4827d5dcfa5850a47988df58ad117230c3edb88e..43c934f1c4ec30d6f5e025e9d41fb48211fe04e6 100644 (file)
@@ -1,6 +1,6 @@
 ---
 - debug: msg="Performing cleanup related tasks..."
 
-- include_tasks: packages.yml
+- import_tasks: packages.yml
   vars:
     state: "absent"
index fa05c7c4aba6d4329b391a0c40b5b0bbb42236d7..29b24b3bad73164dcda6ca194ac82c0c336f65b2 100644 (file)
@@ -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_tasks: setup.yml
+- import_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_tasks: cleanup.yml
+- import_tasks: cleanup.yml
   when: cleanup
index 3fa645aec267b59c22172b41d85e6614f262c3a6..42db932dfb8f3f3e02ff3933942256cf9e0baa9f 100644 (file)
@@ -1,4 +1,4 @@
 ---
-- include_tasks: packages.yml
+- import_tasks: packages.yml
   vars:
     state: "present"
index 7092e1a8f8856118c968588b1095d70be27f7a8e..16a0279cf58f6bda1abb048f2b7ee01badc6ea4d 100644 (file)
   tags:
     - always
 
-- include_tasks: apt_systems.yml
+- import_tasks: apt_systems.yml
   when: ansible_pkg_mgr == "apt"
 
 # Yum systems support is not implemented yet.
-- include_tasks: yum_systems.yml
+- import_tasks: yum_systems.yml
   when: ansible_pkg_mgr == "yum"
 
 # Set up the paddles user
-- include_tasks: setup_user.yml
+- import_tasks: setup_user.yml
 
 # Set up the actual paddles project
-- include_tasks: setup_paddles.yml
+- import_tasks: setup_paddles.yml
 
 # Set up the DB which paddles uses
-- include_tasks: setup_db.yml
+- import_tasks: setup_db.yml
 
 # Configure the system to run paddles as a daemon
-- include_tasks: setup_service.yml
+- import_tasks: setup_service.yml
 
 # Configure nginx as a reverse proxy
-- include_tasks: nginx.yml
+- import_tasks: nginx.yml
index 622623de1028f20103171e0f9916cf997ee8abde..55051f05f364008f20655e10d6d7b86ccd7daa43 100644 (file)
@@ -23,7 +23,7 @@
   when:
     ansible_pkg_mgr == "dnf"
 
-- include_tasks: permissons.yml
+- import_tasks: permissons.yml
 
 - name: Restart pcp
   service:
index 3c1d808e1ecbbe3cffa260682269d49a0e484aab..2fe17fd0d6c25265b5a526cbb0c6726e51db8216 100644 (file)
@@ -5,34 +5,34 @@
     - always
 
 - name: Set up upstream repo
-  include_tasks: repo.yml
+  import_tasks: repo.yml
   when:
     upstream_repo|bool == true
   tags:
     - repo
 
-- include_tasks: apt_update.yml
+- import_tasks: apt_update.yml
   when:
     upstream_repo|bool == false
   tags:
     - always
 
 - name: Set up as collector
-  include_tasks: collector.yml
+  import_tasks: collector.yml
   when:
     pcp_collector|bool == true
   tags:
     - collector
 
 - name: Set up as manager
-  include_tasks: manager.yml
+  import_tasks: manager.yml
   when:
     pcp_manager|bool == true
   tags:
     - manager
 
 - name: Set up web UI
-  include_tasks: web.yml
+  import_tasks: web.yml
   when:
     pcp_web|bool == true
   tags:
index 888ff7c751621be6ff6c1d17e21209b14c04bc3a..b6e450bc352e6801afe3a437f84566240357cb77 100644 (file)
@@ -72,7 +72,7 @@
     mode: 0644
   register: target_discovery
 
-- include_tasks: permissons.yml
+- import_tasks: permissons.yml
 
 # This greatly speeds up polling for hosts
 - name: Set PMCD_CONNECT_TIMEOUT in pmmgr.options
index 9f51e7f6413fd317ddee691da9932f8cbd36020d..1129751e8bee479455a8285b8fe3f154c445a1d5 100644 (file)
@@ -30,7 +30,7 @@
   when:
     ansible_pkg_mgr == "yum"
 
-- include_tasks: apt_update.yml
+- import_tasks: apt_update.yml
 
 - name: Ensure packages are updated (apt)
   shell: "DEBIAN_FRONTEND=noninteractive apt -y install --only-upgrade .*pcp.*"
index ae447528a74052e30ce71eb0159666133d13af1b..a00d00dc162da01925fbcdc726aceca4ed97b5c2 100644 (file)
@@ -68,4 +68,4 @@
     minute: "0"
     job: "/usr/libexec/make_timestamp"
 
-- include_tasks: letsencrypt_nginx.yml
+- import_tasks: letsencrypt_nginx.yml
index 17a90285ac43c0ead0339c42026e9b3c41d08b6f..67639a9fe89a0ca238440e6cf85bbf846f91614f 100644 (file)
@@ -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_tasks: ufw.yml
+- import_tasks: ufw.yml
   when: use_ufw == true
   tags:
     - always
 
-- include_tasks: fail2ban.yml
+- import_tasks: fail2ban.yml
   tags:
     - always
   when: use_fail2ban == true
index fd9cf8de6bd9a0de32a03f0703245cff05e41192..619900439864c8ab29fe890b9bd0e06daafd0b9c 100644 (file)
@@ -9,4 +9,4 @@
     minute: "*/5"
     job: "/usr/bin/wget -q -O - http://ceph.com/wp-cron.php?doing_wp_cron"
 
-- include_tasks: letsencrypt_nginx.yml
+- import_tasks: letsencrypt_nginx.yml
index e4cd44afae1dca64b36c299a5298e9bbe899a04d..df7f1307784d3f56d578c60725c70ad88ec92b0d 100644 (file)
@@ -4,33 +4,33 @@
   when: ansible_distribution != 'RedHat'
 
 # install puddle
-- include_tasks: install.yml
+- import_tasks: install.yml
   tags:
     - install-puddle
 
 # configure NFS
-- include_tasks: nfs.yml
+- import_tasks: nfs.yml
 
 # configure puddle
-- include_tasks: configure.yml
+- import_tasks: configure.yml
   tags:
     - configure-puddle
 
 # install and configure web server
-- include_tasks: nginx.yml
+- import_tasks: nginx.yml
   tags:
     - nginx
 
 # install and configure distill
-- include_tasks: distill/install.yml
+- import_tasks: distill/install.yml
   tags:
     - install-distill
 
-- include_tasks: distill/configure.yml
+- import_tasks: distill/configure.yml
   tags:
     - configure-distill
 
 # install and configure rsyncd
-- include_tasks: rsync.yml
+- import_tasks: rsync.yml
   tags:
     - rsync
index 7da3b604f16811bfed84735c5825a2615487d6b5..d890fe68985516ca2d5ecfd9873df92b51e5cbae 100644 (file)
@@ -4,10 +4,10 @@
   tags:
     - always
 
-- include_tasks: yum_systems.yml
+- import_tasks: yum_systems.yml
   when: ansible_pkg_mgr == "yum"
 
-- include_tasks: apt_systems.yml
+- import_tasks: apt_systems.yml
   when: ansible_pkg_mgr == "apt"
 
 - name: Create the user
index a1c6dc65eb4a5483b7effb5eea29957e170f605f..0a9d2294e25dde16483fcbc0934da38680612fa6 100644 (file)
@@ -1,6 +1,6 @@
 ---
 - name: Setup local repo files.
-  include_tasks: apt/repos.yml
+  import_tasks: apt/repos.yml
   tags:
     - repos
 
@@ -22,7 +22,7 @@
     - packages
 
 - name: Perform package related tasks.
-  include_tasks: apt/packages.yml
+  import_tasks: apt/packages.yml
   tags:
     - packages
 
@@ -67,7 +67,7 @@
     groups: fuse,kvm,disk
     append: yes
 
-- include_tasks: static_ip.yml
+- import_tasks: static_ip.yml
   when: "'vps' not in group_names"
 
 - name: Stop apache2
index ba22d6b6aec052e871dd57cc50c9278abee578da..9767bbc95541747060129e95c9d5cd9778efc5e2 100644 (file)
@@ -7,7 +7,7 @@
     backrefs: yes
     state: present
 
-- include_tasks: configure_lvm.yml
+- import_tasks: configure_lvm.yml
   when: (logical_volumes is defined) or
         (volume_groups is defined) or
         (quick_lvs_to_create is defined)
index 0645700003ee97f781448f2729ccec16ce4cfc4f..09921468af83c516e23bbb1024f6933eddfdc933 100644 (file)
@@ -1,11 +1,11 @@
 ---
 # loading vars
-- include_tasks: vars.yml
+- import_tasks: vars.yml
   tags:
     - vars
     - always
 
-- include_tasks: user.yml
+- import_tasks: user.yml
   tags:
     - user
 
   when: ansible_pkg_mgr != "zypper"
 
 - name: Set the hostname
-  include_tasks: set_hostname.yml
+  import_tasks: set_hostname.yml
   when: lab_domain != ""
   tags:
     - hostname
 
 - name: configure ssh
-  include_tasks: ssh.yml
+  import_tasks: ssh.yml
   tags:
     - ssh
 
 - name: configure things specific to yum systems
-  include_tasks: yum_systems.yml
+  import_tasks: yum_systems.yml
   when: ansible_pkg_mgr == "yum"
 
 - name: configure things specific to apt systems
-  include_tasks: apt_systems.yml
+  import_tasks: apt_systems.yml
   when: ansible_pkg_mgr == "apt"
 
 - name: configure things specific to zypper systems
-  include_tasks: zypper_systems.yml
+  import_tasks: zypper_systems.yml
   when: ansible_pkg_mgr == "zypper"
 
 - name: configure centos specific things
-  include_tasks: setup-centos.yml
+  import_tasks: setup-centos.yml
   when: ansible_distribution == "CentOS"
 
 - name: configure red hat specific things
-  include_tasks: setup-redhat.yml
+  import_tasks: setup-redhat.yml
   when: ansible_distribution == 'RedHat'
 
 - name: configure fedora specific things
-  include_tasks: setup-fedora.yml
+  import_tasks: setup-fedora.yml
   when: ansible_distribution == "Fedora"
 
 - name: configure ubuntu specific things
-  include_tasks: setup-ubuntu.yml
+  import_tasks: setup-ubuntu.yml
   when: ansible_distribution == "Ubuntu"
 
 - name: configure ubuntu non-aarch64 specific things
-  include_tasks: setup-ubuntu-non-aarch64.yml
+  import_tasks: setup-ubuntu-non-aarch64.yml
   when:
     ansible_distribution == "Ubuntu" and
     ansible_architecture != "aarch64"
 
 - name: configure debian specific things
-  include_tasks: setup-debian.yml
+  import_tasks: setup-debian.yml
   when: ansible_distribution == "Debian"
 
-- include_tasks: zap_disks.yml
+- import_tasks: zap_disks.yml
   tags:
     - zap
 
 - name: partition drives, if any are requested
-  include_tasks: drive_partitioning.yml
+  import_tasks: drive_partitioning.yml
   when: drives_to_partition is defined
   tags:
     - partition
 
 - name: set up LVM
-  include_tasks: lvm.yml
+  import_tasks: lvm.yml
   tags:
     - lvm
 
 - name: mount /var/lib/ceph to specified partition
-  include_tasks: var_lib.yml
+  import_tasks: var_lib.yml
   when: var_lib_partition is defined
   tags:
     - varlib
 
 # Install and configure cpan and Amazon::S3
-- include_tasks: cpan.yml
+- import_tasks: cpan.yml
   tags:
     - cpan
 
 # configure ntp
-- include_tasks: ntp.yml
+- import_tasks: ntp.yml
   tags:
     - ntp-client
 
 - name: configure pip to use our mirror
-  include_tasks: pip.yml
+  import_tasks: pip.yml
   tags:
     - pip
 
 - name: include resolv.conf setup
-  include_tasks: resolvconf.yml
+  import_tasks: resolvconf.yml
   tags:
     - resolvconf
 
index b30652487ecb2d9202ec16f85906abb9bd2ace72..92353c5c2d8efc019bc90fa75c3a0445fe9294a8 100644 (file)
@@ -1,5 +1,5 @@
 ---
 - name: Fix broken cloud-init
-  include_tasks: ../cloud-init.yml
+  import_tasks: ../cloud-init.yml
 
-- include_tasks: ../imitate_ubuntu.yml
+- import_tasks: ../imitate_ubuntu.yml
index d9fdfa89c66bb803379d7bdd9779b0a43963e5f8..262ec0cc5773323e2f9f1cb6deb5c2b142441622 100644 (file)
@@ -1,4 +1,4 @@
 ---
-- include_tasks: ../nfs.yml
+- import_tasks: ../nfs.yml
   tags:
     - nfs
index 319db0cc605115fb6501736c6eef37c347421863..f0140a212eccb6a51ed316a583156026b5e02e11 100644 (file)
@@ -1,6 +1,6 @@
 ---
 - name: Fix broken cloud-init
-  include_tasks: cloud-init.yml
+  import_tasks: cloud-init.yml
   when: ansible_distribution_major_version == "6"
 
-- include_tasks: imitate_ubuntu.yml
+- import_tasks: imitate_ubuntu.yml
index 89dacafda5a06587a43534ead68afe0e8b44ab3d..b35caf320a5453bec79ae2285f451dddd895b65b 100644 (file)
@@ -1,5 +1,5 @@
 ---
-- include_tasks: imitate_ubuntu.yml
+- import_tasks: imitate_ubuntu.yml
 
 - name: Set grub config.
   template:
index 7e9047e0f7f7053c5ee0d2b440c1982a1016aacb..e853612c693237793da5f2476b7ad37d4e5e5a18 100644 (file)
@@ -1,8 +1,8 @@
 ---
 - name: Include rhel 7.x specific tasks.
-  include_tasks: redhat/rhel_7.yml
+  import_tasks: redhat/rhel_7.yml
   when: ansible_distribution_major_version == "7"
 
 - name: Include rhel 6.x specific tasks.
-  include_tasks: redhat/rhel_6.yml
+  import_tasks: redhat/rhel_6.yml
   when: ansible_distribution_major_version == "6"
index 61e4d6b2cef81a7efb62e8d7d970bae09b2ea3bd..5c95336d9922c16a9cff4bf03c1ae6da425f94f6 100644 (file)
@@ -4,6 +4,6 @@
     path: /etc/ceph
     state: absent
 
-- include_tasks: nfs.yml
+- import_tasks: nfs.yml
   tags:
     - nfs
index 3465a3ea66d6f98697bdc37aed758279eeac7065..3e9a25b644f7ff9698a92363fb1cc75199619465 100644 (file)
@@ -21,7 +21,7 @@
   with_dict: "{{ yum_repos }}"
   when: yum_repos.keys() | length > 0
 
-- include_tasks: gpg_keys.yml
+- import_tasks: gpg_keys.yml
   when: ansible_distribution == "Fedora"
   tags:
     - gpg-keys
index 3976aa7778251c66c29af6b5ecc81455a5691d97..4c18bd59b4fc729de750f19ea52e417409f0eec1 100644 (file)
     rpm --rebuilddb
 
 - name: Setup local repo files.
-  include_tasks: yum/repos.yml
+  import_tasks: yum/repos.yml
   tags:
     - repos
 
 - name: Perform package related tasks.
-  include_tasks: yum/packages.yml
+  import_tasks: yum/packages.yml
   tags:
     - packages
 
 - name: Disable firewall
-  include_tasks: yum/firewall.yml
+  import_tasks: yum/firewall.yml
 
 - name: Enable SELinux
   selinux: state=permissive policy=targeted
index a73525693d4cdfef9633e9a7b304bebb79fe9d33..9e109334923d323fe810d21ba4b009a93a3577e7 100644 (file)
@@ -47,7 +47,7 @@
     rpm --rebuilddb
 
 - name: Perform package related tasks.
-  include_tasks: zypper/packages.yml
+  import_tasks: zypper/packages.yml
   tags:
     - packages
 
index 32fb26ca1f5c1b0a0c6a502f191e812f50d46d6d..c0747434e8aece4e753e066c7dbb9b8bc04dcff0 100644 (file)
@@ -1,13 +1,13 @@
 ---
-- include_tasks: apt_systems.yml
+- import_tasks: apt_systems.yml
   when: ansible_pkg_mgr == "apt"
 
 # Yum systems support is not implemented yet.
-- include_tasks: yum_systems.yml
+- import_tasks: yum_systems.yml
   when: ansible_pkg_mgr == "yum"
 
 # Set up the different users that teuthology uses
-- include_tasks: setup_users.yml
+- import_tasks: setup_users.yml
 
 - name: Ship /etc/teuthology.yaml
   template:
@@ -18,6 +18,6 @@
     - config
 
 # Serve logs over HTTP
-- include_tasks: setup_log_access.yml
+- import_tasks: setup_log_access.yml
   tags:
     - logs
index f0806b760d05f72f3acff64006476ad3ba8fbaf1..66cef4caba6fdb9284bcff51451435fee8fd0d3f 100644 (file)
@@ -1,17 +1,17 @@
 ---
-- include_tasks: filter_users.yml
+- import_tasks: filter_users.yml
   tags:
     - always
 
-- include_tasks: create_users.yml
+- import_tasks: create_users.yml
   tags:
     - user
 
-- include_tasks: update_keys.yml
+- import_tasks: update_keys.yml
   tags:
     - pubkeys
 
-- include_tasks: revoke_users.yml
+- import_tasks: revoke_users.yml
   tags:
     - user
     - revoke
index 778e6caf3b6ba5208d6ae92fa2998376923fb5b0..07109c28cf309347505b18b733969449606126d6 100644 (file)
@@ -1,8 +1,8 @@
-- include_tasks: packages.yml
+- import_tasks: packages.yml
   tags: packages
 
-- include_tasks: networking.yml
+- import_tasks: networking.yml
   tags: networking
 
-- include_tasks: libvirt.yml
+- import_tasks: libvirt.yml
   tags: libvirt