grog / ansible-role-management-user Goto Github PK
View Code? Open in Web Editor NEWAnsible role for managing a management user.
Home Page: https://galaxy.ansible.com/GROG/management-user
License: MIT License
Ansible role for managing a management user.
Home Page: https://galaxy.ansible.com/GROG/management-user
License: MIT License
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
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.
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.
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.