Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host and Group vars reordered (sorted alphabetically) #15712

Open
5 of 11 tasks
leweafan opened this issue Dec 18, 2024 · 0 comments
Open
5 of 11 tasks

Host and Group vars reordered (sorted alphabetically) #15712

leweafan opened this issue Dec 18, 2024 · 0 comments

Comments

@leweafan
Copy link

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 [email protected] 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant