GithubHelp home page GithubHelp logo

Comments (4)

robertdebock avatar robertdebock commented on July 2, 2024 1

Don't worry, I learn from these kinds of issues too. So far; your issue are certainly interesting.

Thanks for following up!

from ansible-role-locale.

robertdebock avatar robertdebock commented on July 2, 2024

It's not easy to verify (molecule/default/verify.yml) this issue, bacause Ansible sets a default language.

I have tried to verify better however.

For your playbook, where does the de_AT.UTF-8 value come from? It does not come from the playbook (that uses the role) and it's also no the default... Is it maybe set for a specific user? Could it be that SSH is passing that variable from your machine to the managed server?

from ansible-role-locale.

Migsi avatar Migsi commented on July 2, 2024

It's not easy to verify (molecule/default/verify.yml) this issue, bacause Ansible sets a default language.

This is probably set to de_AT.UTF-8, as that's the locale my notebook (the controller) is set to.

For your playbook, where does the de_AT.UTF-8 value come from? It does not come from the playbook (that uses the role) and it's also no the default... Is it maybe set for a specific user? Could it be that SSH is passing that variable from your machine to the managed server?

As I explained above, my notebook is set to this locale. As you suspected, I checked and noticed my ssh config is indeed forwarding the local locale. The server is configured to accept it. Are you suggesting to either disable reception on the server side or forwarding on my local machine and try again?
I'd prefer to leave these configs as it, as I'd have to check quite a few other tasks if they might be impacted by such changes. Just to get this right, what is the actual impact of ssh forwarding the locale setting while using this role? Shouldn't the locale change by the role be unaffected by any "outside" properties? That was my expectation when I started using the role and it worked fine, but please correct me if I got this wrong.

The overall behavior is weird though, as none of the related configs changed over time. The only thing that changed is that I updated ansible (to core 2.11.3) and the role to its most recent version (3.1.0). That's when the play broke and I started to see the reported behavior. That is why I suspected changes within ansible to be responsible, allthough I was unable to verify that (yet).

from ansible-role-locale.

Migsi avatar Migsi commented on July 2, 2024

I guess I owe you an apology for bothering you again with issues that aren't actual issues. I just rechecked all locale related settings to make absolutely sure I wasn't misinterpreting something, but appearently I was. 🤦‍♂️

Your hint about ssh accepting the LC_* from the host logging pointed me to the curlprit. The servers default locale was always properly set to the value defined by locale_lang but as sshd is accepting remote locales it obviously looked to me as if the server was using the same locale as I do. When logging in via VNC everything was as it should always have been and thus the role never had an issue.

I'm still wondering though, why I didn't see this behavior before the above mentioned updates of ansible and the role. 🤔

I'll close the issue with a big thank you for taking your time helping me figuring out my (stupid) mistakes! 😅 I'll also open up a pull request adding information about this behavior to your readme, hoping it will prevent others from facing the same "problem".

from ansible-role-locale.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.