Feature users config ssh #9 #10
No reviewers
Labels
No labels
bug
duplicate
enhancement
good first issue
help wanted
invalid
question
todo
todo 🗒️
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: stationgroup/ansible-experiments#10
Loading…
Reference in a new issue
No description provided.
Delete branch "feature-users-config-ssh-#9"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is so far we got with your request. This one was somehow a bit more subjective, so we're not so sure this is exactly what you requested.
Please review this and let us know what you think.
Thanks, Serge & Vincent.
I'm looking through the documentation you guys produced. I haven't even tested it yet, but I'm really excited. 😛
I posted an update on the original issue with a change. https://github.com/stationgroup/ansible-experiments/issues/9#issuecomment-415582205
As well as some question in the form of code comments; which can be seen in the PR: https://github.com/stationgroup/ansible-experiments/pull/10
TASK [users : Ensure .ssh folder is created]
fails if user is set toabsent
after it was previouslypresent
.(Click to expand code)
I guess the procedure I should use is. When a user is removed. Remove their variables so the script continues to function. Because the variables try to set because the home folder exists even though the user is gone.
If I add a user to a group:
admin
. I can't remove the user from a group. Please advise if there is a method I've over looked.I can add but not remove, multiline bash entries.
Please advise.
We'll have to make the 'users.state' variable required. I'll make the necessary changes to the tasks and check for required variables at runtime.
the 'user' module ws using the 'append' option. This will be removed
I updated the playbooks to add a task for multi line content leveraging the 'blockinfile' module.
I made the necessary changes and commited everything to @srgvg his repository so he can make a proper PR here.
I added @vincentvdk's most recent commit addressing the requested changes,
59749462c0
to this PR.Thank you.
I'll try to test it this weekend. If I cant test it this weekend I'll probably be to busy to test for a while, and I'll just have you bill me. I don't want to make you wait too much longer.
@ -0,0 +82,4 @@
when: ansible_os_family == "Debian"
- name: Ensure sudo is installed (FreeBSD)
portinstall:
I'm going to try this with
pkgng
I don't like to mix ports in with my pkg's if I can avoid it.