ansible/awx

Host and Group vars reordered (sorted alphabetically)

Open

#15,712 opened on 2024年12月18日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Python (13,071 stars) (3,333 forks)batch import
communitycomponent:uihelp wantedtype:bug

説明

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)

Bug Summary

Check mode doesn't work correctly cause all printed jinja2 variables (Host and Group variables) sorted alphabetically. Variables in inventory also sorted alphabetically. Can check original order. It's important cause if access and deny order changed config will be broken.

         access_log /var/log/nginx/xxx.log;
+        client_max_body_size 50m;
         error_log /var/log/nginx/xxx.log notice;
+        proxy_connect_timeout 10;
         proxy_pass http://192.168.10.115:9080;
+        proxy_send_timeout 360;
         proxy_set_header X-Forwarded-Proto $scheme;
-        proxy_send_timeout 360;
-        proxy_connect_timeout 10;
-        client_max_body_size 50m;

AWX version

24.6.2.dev0

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

docker development environment

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

Used project with git source and inventory from project.

Expected results

If used ansible --check --diff option no changes found.

Actual results

Changes found cause lines reodered alphabetically

Additional information

Option to view sorted variables helphul but only if not applied to real configs.

コントリビューターガイド