Giter VIP home page Giter VIP logo

ansible-role-management-user's People

Contributors

genaumann avatar groggemans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ansible-role-management-user's Issues

remove authorized_key after user removal

I added the user state: absent, but without the remove: yes and then authorized_keys will fail with:

Failed to lookup user backup-user: 'getpwnam(): name not found: backup-user'

So that is, if there is no user already, the authorized_key will fail later on

i'm using ansible 2.8.0

Can't figure out how to deploy keys for more users

First thank you for this ansible-management-user role. I know this is not a bug - I'm trying to make it work - but seem not to understand something. The role works, just keys don't get copied to servers authorized_keys file, if I want to create more users, not just one. One user in defaults/main.yml works, if I list more, keys don't get copied.

Default home directory

The default home directory location shouldn't be /home as a management user shouldn't be used by a person anyway. In my opinion, it should default to something more sane, like /var/lib/management-users or something alike.
I would like to use this role on my mail VM, but on this machine a NFS share is mounted to /home where the users mail are stored and their .forward files are accessed. For that reason, I'd like the default path of the home directory for management users to be somewhere else in the FHS.

Dependency grog.sudo

Hello,
The grog.management-user role still has a dependency to grog.sudo 1.4.4.
I think it should be updated to 1.6.

Another point. Sometimes capital letters are used and sometimes small letters. Is there a reason for that?

Kind regards,
Elchior

How to remove a user created before?

I tried add [ remove: yes ], but not working.

management_user_settings:
  name: mtns
  comment: For maintenance
  shell: '/bin/bash'
  authorized_keys:
    - key: "{{ management_user_key }}"
      exclusive: yes
  sudo:
    hosts: ALL
    as: ALL
    commands: ALL
    nopasswd: yes
  remove: yes

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.