Giter Club home page Giter Club logo

Comments (9)

bravosierrasierra avatar bravosierrasierra commented on August 15, 2024 1

typo in second "lenth" instead "length". Should be:

        (ipaadmin_password is undefined or ipaadmin_password|length == 0)
        and (ipaclient_keytab is undefined or ipaclient_keytab|length == 0)

This is fix for error
TASK [ipaclient : Install - Check if one of password and keytab are set] **************************************************************
fatal: [node2.ipaexample.com]: FAILED! => {"msg": "The conditional check 'not result_ipaclient_test_keytab.krb5_keytab_ok and (ipaadmin
_password is undefined or ipaadmin_password|length == 0) and (ipaclient_keytab is undefined or ipaclient_keytab|lenth == 0)' failed. Th
e error was: template error while templating string: no filter named 'lenth'. String: {% if not result_ipaclient_test_keytab.krb5_keyta
b_ok and (ipaadmin_password is undefined or ipaadmin_password|length == 0) and (ipaclient_keytab is undefined or ipaclient_keytab|lenth
== 0) %} True {% else %} False {% endif %}\n\nThe error appears to have been in '/root/vagrant/freeipa-ansible/roles/vendor/ansible-fr
eeipa/roles/ipaclient/tasks/install.yml': line 159, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.
n\nThe offending line appears to be:\n\n\n - name: Install - Check if one of password and keytab are set\n ^ here\n"}

from ansible-freeipa.

t-woerner avatar t-woerner commented on August 15, 2024

ansible galaxy is complaining on empty string tests. This is the reason why I have replaced them.

from ansible-freeipa.

t-woerner avatar t-woerner commented on August 15, 2024

Are you using an encrypted password?

from ansible-freeipa.

RobVerduijn avatar RobVerduijn commented on August 15, 2024

yes, I use inline encrypted vault entries

from ansible-freeipa.

RobVerduijn avatar RobVerduijn commented on August 15, 2024

I guess a check for testing if it is an encrypted string before testing for zero length would do the trick

from ansible-freeipa.

RobVerduijn avatar RobVerduijn commented on August 15, 2024

Your post doesn't make sense.
Is this a copy paste typo ?

from ansible-freeipa.

kuwv avatar kuwv commented on August 15, 2024

Typo still exists:
(ipaclient_keytab is undefined or ipaclient_keytab|lenth == 0)

               The error appears to be in '/home/vagrant/.ansible/roles/freeipa.ipaclient/tasks/install.yml': line 159, column 7, but may
               be elsewhere in the file depending on the exact syntax problem.
               
               The offending line appears to be:
               
               
                   - name: Install - Check if one of password and keytab are set
                     ^ here

This seems like it's an older version that's in galaxy also:

ansible-galaxy list
# /home/vagrant/.ansible/roles
- freeipa.ipaclient, v0.1.1

Any resolution coming?

from ansible-freeipa.

RobVerduijn avatar RobVerduijn commented on August 15, 2024

This works again with the latest git version.

from ansible-freeipa.

RobVerduijn avatar RobVerduijn commented on August 15, 2024

this was already fixed in git, and is also working in 1.5.0

from ansible-freeipa.

Related Issues (20)

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.