Skip to content

Follow-up from !22: dealing with worhtless keys of cielito_hosts_users_data

The following discussion from !22 (merged) should be addressed:

  • @apias started a discussion:

    If I define something like this:

    cielito_host_users_data:
      apias:
        choose_password: false
      ulvida:

    The role sets current_host_users_data like this

        "current_host_users_data": {
            "apias": {
                "authorized_keys": *************
                "choose_password": true,
                "name": "Andrés Pías"
            },
            "ulvida": null

    Resulting in users defined in OS like this:

    apias:x:1001:1004:Andrés Pías:/home/apias:/bin/bash
    ulvida:x:1002:1005::/home/ulvida:/bin/bash

    And the problem is in the line that originated this thread. Because, after combine, the worhtless keys of cielito_hosts_users_data overwrite the corresponding keys of cielito_user_data that have data.

    I will open a new issue for this.