]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
all: s/include:/include_tasks:/g prepping for deprecation in v2.8 358/head
authorDavid Galloway <dgallowa@redhat.com>
Fri, 1 Dec 2017 19:22:51 +0000 (14:22 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 1 Dec 2017 19:22:51 +0000 (14:22 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
51 files changed:
cephlab.yml
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 af7ad48f0a266935cca46fe7609c8b2f341d0778..7a56cda8036cd123cfdebedeff9841d2544949ea 100644 (file)
@@ -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
index 36b7542f5de88de33534dded232d99971ef4792b..6ebbab0b31bb149ea23c44562e864a74c2792e34 100644 (file)
@@ -1,5 +1,5 @@
 ---
-- include: ipmi_secrets.yml
+- include_tasks: ipmi_secrets.yml
   tags:
     - always
 
   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
 
     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
index b32135e4af45bfb2a536dcf72bc30fa04b63c9aa..8905a8548cca1da139437f45f488b99e3dd5443c 100644 (file)
@@ -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
index 667e4cd140119e9e7893a45d257758bbc1f8b57b..7e9047e0f7f7053c5ee0d2b440c1982a1016aacb 100644 (file)
@@ -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"
index 486cb7b5cc36731b4e2532cf0198414f8c9ded5e..5d6b87c01b2f67ad2fdd04f73e080f9bf8ef463b 100644 (file)
@@ -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')
index 43c6ea6abcba60df5b388c550e5f58d13b6cddab..977b0219a6f7d4a55ae3bfa89cefcd31be564073 100644 (file)
   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
         ((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
index 848cd49b59676bad33e622fda09a9cb8ab5bb924..fa095cd01c391e5ad44d603c0bd716499e259b74 100644 (file)
@@ -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
index 7340bbf1ec8171201e80ef835497bfc32f54df0c..eb7ad5797aaf96e274cbb016d3a08ff21e4909d1 100644 (file)
@@ -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
index b0d693b071031cd28bcef6f1efe153b6fce2f4a1..908a4df17c4e75916486de47df8c387d57de2c12 100644 (file)
@@ -1,4 +1,4 @@
 ---
-- include: import_distro.yml
+- include_tasks: import_distro.yml
   tags:
     - distros
index f2ad8e950b5e2d87ea4da43078bce532af615223..cb97e732061716cb1fedd9346b54fa7127ee9763 100644 (file)
@@ -1,5 +1,5 @@
 ---
-- include: populate_systems.yml
+- include_tasks: populate_systems.yml
   tags:
     - systems
 
index 10d5483a18c38cf4e292482a62dc5e1505eca9cf..5a39f760c9f866fbe75c6ca60135d945e2abd8c1 100644 (file)
     - 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:
index d6ff92b7f018916edf477d573f53c95def47bef2..d3c148cdac27b332ef1f75d515d31e9ad02f15d3 100644 (file)
@@ -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
index 1b2d966ffbab045de041bf1f56703372098d2fdb..36ca8dc2d72a9f69280ad31648649796399ae538 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: 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'
index 9a1d19890c614f4f7f2e9023ca0967c93f8edff1..522468a230997f08a604778e46862abbba04c1b4 100644 (file)
@@ -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 }}"
 - 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 }}"
index b01338a4a71f41cc3e3a3720b0c06382358325e1..4269da8584b4103eedbfbb9438629f2f41a4c028 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: 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
index 85d68e46ff5b6ea158909822e5145c252475de9a..0de4322deeb7101d865a1a4bafac1925e397546b 100644 (file)
@@ -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 }}"
index 8bf9e9abbf019e1f727e2c8fcb0bafef62db34fa..8d9b458a087c45d9600403b8a5926f0a388e065c 100644 (file)
@@ -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
index c679df4433d997107555192109829b646defe658..824781d73736889b0054acb28b632ab330c9d98c 100644 (file)
@@ -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"'
index 8a197bc6dfb58d58e7cecdd168b3a5f13487b5dd..2ec9b3c98ad1ca510ee6ba044b6d23b3a47f7fbf 100644 (file)
@@ -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
index 179d964dddfd260812d3f6150b9cacb58e11d228..521e1093dd4a042869c8bf724ac26ec88efec7c0 100644 (file)
@@ -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
index e733de43f5f32950735ce95b5e059db96c5bd41f..097026fd9f5e14ef4e08c5f34b04bc9d6260a148 100644 (file)
@@ -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
index f1f68619cba2c9a7bace1f2998286c446ed0208f..320c7c5330f1eaa328ec911876b705c801619138 100644 (file)
@@ -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
 
index e32c7ec316aa4f4d17014e3f92fe4d0facbb9afb..9a366a083e5d8de07135b5bf5dbea5bed4785087 100644 (file)
@@ -6,7 +6,7 @@
     - always
 
 # Install and update system packages
-- include: packages.yml
+- include_tasks: packages.yml
   tags:
     - packages
 
     - 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
index 3a42ef6c7b7dea72f38b1e18da664f6d8a497f70..4827d5dcfa5850a47988df58ad117230c3edb88e 100644 (file)
@@ -1,6 +1,6 @@
 ---
 - debug: msg="Performing cleanup related tasks..."
 
-- include: packages.yml
+- include_tasks: packages.yml
   vars:
     state: "absent"
index eab8c93ec95790307555b527b75c13332431abd3..fa05c7c4aba6d4329b391a0c40b5b0bbb42236d7 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: 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
index 7273472f2a22c5fc2030f51e87809ed173ce74f2..3fa645aec267b59c22172b41d85e6614f262c3a6 100644 (file)
@@ -1,4 +1,4 @@
 ---
-- include: packages.yml
+- include_tasks: packages.yml
   vars:
     state: "present"
index 68255c474f229cad004226e31c003f196d822f3d..7092e1a8f8856118c968588b1095d70be27f7a8e 100644 (file)
   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
index 99605fbca688348bc371581d128153cf71ca2544..622623de1028f20103171e0f9916cf997ee8abde 100644 (file)
@@ -23,7 +23,7 @@
   when:
     ansible_pkg_mgr == "dnf"
 
-- include: permissons.yml
+- include_tasks: permissons.yml
 
 - name: Restart pcp
   service:
index 4df727292ef95afaea31b945359caed9bacf4105..3c1d808e1ecbbe3cffa260682269d49a0e484aab 100644 (file)
@@ -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:
index b1b9bbcf547c84c021a35223875d722bf5e8add2..888ff7c751621be6ff6c1d17e21209b14c04bc3a 100644 (file)
@@ -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
index 12f5be6701a93b86a280c9dde253f2d86532b980..9f51e7f6413fd317ddee691da9932f8cbd36020d 100644 (file)
@@ -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.*"
index e9b6b8624bb04cc872ccb9d3e140163f02996fed..ae447528a74052e30ce71eb0159666133d13af1b 100644 (file)
@@ -68,4 +68,4 @@
     minute: "0"
     job: "/usr/libexec/make_timestamp"
 
-- include: letsencrypt_nginx.yml
+- include_tasks: letsencrypt_nginx.yml
index 6e215de4819688de22fde76cd4843e2f104fc785..17a90285ac43c0ead0339c42026e9b3c41d08b6f 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: 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
index f28e4200082fcc8501b20746d1d4436f0aa0f9d3..fd9cf8de6bd9a0de32a03f0703245cff05e41192 100644 (file)
@@ -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
index afdb78a17299084a1a7d3da4ab1cb1ffc912aba4..e4cd44afae1dca64b36c299a5298e9bbe899a04d 100644 (file)
@@ -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
index c5fca97b1675638fcd44c869bac1e7358d926ce0..7da3b604f16811bfed84735c5825a2615487d6b5 100644 (file)
@@ -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
index 2319d66ec0f309f90d7d28d4c5c5bd30d7f0c993..a1c6dc65eb4a5483b7effb5eea29957e170f605f 100644 (file)
@@ -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
index a6e9c105fb4640691b30bd9b8e076fa9629dea05..d9f5ce0a7031fca208c450164dbd2a57d11eeaa5 100644 (file)
@@ -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)
index 2f244ea3ab82c916e4bd85a62cbbd7fe63103cd2..0645700003ee97f781448f2729ccec16ce4cfc4f 100644 (file)
@@ -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
 
   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
 
index e71911e4d81fd04859130e83aea74ae3c6e7913c..b30652487ecb2d9202ec16f85906abb9bd2ace72 100644 (file)
@@ -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
index 21a82b89ae47b2d3a767a57687b5af36023adf76..d9fdfa89c66bb803379d7bdd9779b0a43963e5f8 100644 (file)
@@ -1,4 +1,4 @@
 ---
-- include: ../nfs.yml
+- include_tasks: ../nfs.yml
   tags:
     - nfs
index 03a467cefc9dae1f82714c207a4a93cc0df97ccf..319db0cc605115fb6501736c6eef37c347421863 100644 (file)
@@ -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
index e393dddc392e4a43a733d654943381e1673dd670..89dacafda5a06587a43534ead68afe0e8b44ab3d 100644 (file)
@@ -1,5 +1,5 @@
 ---
-- include: imitate_ubuntu.yml
+- include_tasks: imitate_ubuntu.yml
 
 - name: Set grub config.
   template:
index 667e4cd140119e9e7893a45d257758bbc1f8b57b..7e9047e0f7f7053c5ee0d2b440c1982a1016aacb 100644 (file)
@@ -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"
index 9c01ec14ef4698e28159302cfebf4480783d8218..61e4d6b2cef81a7efb62e8d7d970bae09b2ea3bd 100644 (file)
@@ -4,6 +4,6 @@
     path: /etc/ceph
     state: absent
 
-- include: nfs.yml
+- include_tasks: nfs.yml
   tags:
     - nfs
index d9ac73b595209144208ee0dd2cb85d9bd8792c6b..3465a3ea66d6f98697bdc37aed758279eeac7065 100644 (file)
@@ -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
index ed02f5d1a6697a0bd8075ceee01416fd04562174..3976aa7778251c66c29af6b5ecc81455a5691d97 100644 (file)
     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
index 6efed2328cf18247e5b281481e0ba4573af109f8..a73525693d4cdfef9633e9a7b304bebb79fe9d33 100644 (file)
@@ -47,7 +47,7 @@
     rpm --rebuilddb
 
 - name: Perform package related tasks.
-  include: zypper/packages.yml
+  include_tasks: zypper/packages.yml
   tags:
     - packages
 
index de70d20db65771e85de02ba92ca9407bcc1e11c7..32fb26ca1f5c1b0a0c6a502f191e812f50d46d6d 100644 (file)
@@ -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
index ac1c24b9871bd8a348f5b2556d3716aa2d74b78c..f0806b760d05f72f3acff64006476ad3ba8fbaf1 100644 (file)
@@ -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
index b6196127b4349e1ed8ed4a6e4f73f1c54eed9421..778e6caf3b6ba5208d6ae92fa2998376923fb5b0 100644 (file)
@@ -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