|
38 | 38 | var msg = '<p>';
|
39 | 39 | if (startsWith(current_url_path, "/ansible-core/")) {
|
40 | 40 | msg += 'You are reading documentation for Ansible Core, which contains no plugins except for those in ansible.builtin. For documentation of the Ansible package, go to <a href="/ansible/latest">the latest documentation</a>.';
|
41 |
| - /* temp - add extra warning about core-2.19. This should move to latest at release time */ |
| 41 | + /* temp - add extra warning about core-2.19. Included in core 2.19 and later releases */ |
42 | 42 | msg += '<br><p><strong>Important:</strong> The ansible-core 2.19 release has made <b>significant templating changes that might require you to update playbooks and roles</b>. The templating changes enable reporting of numerous problematic behaviors that went undetected in previous releases, with wide-ranging positive effects on security, performance, and user experience. You should validate your content to ensure compatibility with these templating changes before upgrading to ansible-core 2.19. See the <a href="https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_12.html">porting guide</a> to understand where you may need to update your playbooks and roles.';
|
43 | 43 | } else if (startsWithOneOf(current_url_path, ["/ansible/latest/", "/ansible/{{ latest_version }}/"])) {
|
44 | 44 | /* temp extra banner to advertise something */
|
45 | 45 | banner += extra_banner;
|
46 | 46 |
|
47 | 47 | msg += 'This is the <b>latest</b> (stable) Ansible community documentation. For Red Hat Ansible Automation Platform subscriptions, see <a href="https://access.redhat.com/support/policy/updates/ansible-automation-platform">Life Cycle</a> for version details.';
|
| 48 | + /* temp - add extra warning about core-2.19. Included in latest package release docs */ |
| 49 | + |
| 50 | + msg += '<br><p><strong>Important:</strong> The ansible-core 2.19/Ansible 12 release has made <b>significant templating changes that might require you to update playbooks and roles</b>. The templating changes enable reporting of numerous problematic behaviors that went undetected in previous releases, with wide-ranging positive effects on security, performance, and user experience. You should validate your content to ensure compatibility with these templating changes before upgrading to ansible-core 2.19 or Ansible 12. See the <a href="https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_12.html">porting guide</a> to understand where you may need to update your playbooks and roles.'; |
| 51 | + |
48 | 52 | } else if (startsWith(current_url_path, "/ansible/2.9/")) {
|
49 | 53 | msg += 'You are reading the latest Red Hat released version of the Ansible documentation. Community users can use this version, or select <b>latest</b> from the version selector to the left for the most recent community version.';
|
50 | 54 | } else if (startsWith(current_url_path, "/ansible/devel/")) {
|
51 | 55 | /* temp extra banner to advertise something */
|
52 | 56 | banner += extra_banner;
|
53 | 57 |
|
54 | 58 | msg += 'You are reading the <b>devel</b> version of the Ansible documentation - this version is not guaranteed stable. Use the version selection to the left if you want the <b>latest</b> (stable) released version.';
|
55 |
| - /* temp - add extra warning about core-2.19. This should move to latest at release time */ |
| 59 | + /* temp - add extra warning about core-2.19.Added to latest and devel docs */ |
56 | 60 | msg += '<br><p><strong>Important:</strong> The ansible-core 2.19/Ansible 12 release has made <b>significant templating changes that might require you to update playbooks and roles</b>. The templating changes enable reporting of numerous problematic behaviors that went undetected in previous releases, with wide-ranging positive effects on security, performance, and user experience. You should validate your content to ensure compatibility with these templating changes before upgrading to ansible-core 2.19 or Ansible 12. See the <a href="https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_12.html">porting guide</a> to understand where you may need to update your playbooks and roles.';
|
57 | 61 | } else {
|
58 | 62 | msg += 'You are reading an older version of the Ansible documentation. Use the version selection to the left if you want the <b>latest</b> (stable) released version.';
|
|
0 commit comments