Code Monkey home page Code Monkey logo

ansible-role-users's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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

Forkers

muraliv21

ansible-role-users's Issues

[Bashrc] items not added to file

It seems to be that the bashrc configuration isn't working

Ex:

vars:
users:
root:
bashrc:
- "alias myalias='mycmd'"

Tasks doesn't seems to be skipped :

TASK [claranet.users : configure_bash | ~root/.bashrc] ******************************************************************************************************************************************************************************[60/1011]
Tuesday 28 September 2021 08:46:00 +0000 (0:00:00.067) 0:00:05.651 *****
ok: [centos]

Expected Behavior

[root@c9531f5a57bb ~]# grep myalias .bashrc
[root@c9531f5a57bb ~]#

Current Behavior

[root@c9531f5a57bb ~]# grep myalias .bashrc
[root@c9531f5a57bb ~]# alias myalias='mycmd'

Can't remove user

Expected Behavior

We can't remove a user

Current Behavior

State is not taken into account

Possible Solution

Add

state:  '{{ state|default("present") }}'

Context

Delete a user that was created with ansible-roles-users

Some empty vars seems to be required

It seems to be that we must set up the following vars :
home: /root
ssh_keys: {}
authorized_keys:

Expected Behavior

If these vars are empty, we should not have to defined them ?
If home var is required, maybe we should define it to /root for the root user and /home/$user by default for others users ?

Hardening (discussion)

Hello,

Here is an issue to talk about users hardening.

I think that we should add this in profile :

shopt -s histappend
readonly PROMPT_COMMAND=”history -a”
readonly HISTFILESIZE
readonly HISTSIZE
readonly HISTCMD
readonly HISTCONTROL
readonly HISTIGNORE

Do you have other suggestions?

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.