Gregory Colpart
b4bfccd7eb
no fail when admin_users is empty because we want keep easy the usability
2017-07-22 07:57:46 +02:00
Jérémy Lecour
6106a0a8f5
admin-users: fix AllowUsers
...
* the command module was doing weird escaping, let's use the shell
module
* insert after a more appropriate position
2017-07-19 13:54:18 +02:00
Jérémy Lecour
43e9f69314
admin-users: double-escape, dream hands !!
2017-07-19 12:33:35 +02:00
Jérémy Lecour
987e35f104
admin-users: better grep for AllowUsers detection
...
Now it behaves correctly if the directive exists, but commented
2017-07-19 12:08:06 +02:00
Jérémy Lecour
44c679eb64
admin_users: fix logic error
2017-07-19 11:54:01 +02:00
Jérémy Lecour
7c92645c5c
admin users: fix uidisbusy for proper rc check
...
because of "failed_when: False", the register would never fail
so we check the return code of "getent passwd"
2017-07-19 11:31:21 +02:00
Jérémy Lecour
0115a16675
whitespaces
2017-07-19 11:31:21 +02:00
Jérémy Lecour
cc92c124bf
Add quotes for tasks names with variables
2017-06-12 15:11:39 +02:00
Gabriel Periard-Tremblay
87ebadcadd
Kitchen: Change base image to evolix/ansible
2017-06-02 08:38:08 -04:00
Jérémy Lecour
9769d4a85b
admin-users: fix include syntax
2017-05-20 19:55:42 +02:00
Jérémy Lecour
9fae99f8dc
Minor syntax and whitespaces fixes
2017-05-19 22:29:53 +02:00
Jérémy Lecour
f5d1867d01
admin-users : no need to create this directory when using systemd
2017-04-21 11:11:36 +02:00
Jérémy Lecour
ba0abfc3ec
admin-users fix tests with ssh
2017-04-20 15:07:30 +02:00
Jérémy Lecour
129b0c48a1
admin-users: new kitchen driver to test
...
By default, Docker doesn't have a proper SSH server,
so we can't test actions through systemd.
Those settings should be tested to see if they fix the issue.
2017-04-20 11:09:16 +02:00
Jérémy Lecour
33314828b1
Change Ansible version used by ansible-kitchen
2017-04-19 17:48:02 +02:00
Jérémy Lecour
02625c1ecc
essais de tests
2017-04-19 17:17:41 +02:00
Jérémy Lecour
0f89f99ae7
admin-users: fail if no user is provided
2017-04-10 18:16:06 +02:00
Jérémy Lecour
5b2ab0d8d3
Ansible >= 2.2 supported
2017-03-24 14:15:09 +01:00
Jérémy Lecour
294cea44e8
Change mode with leading 0, but still as String
2017-03-23 16:59:43 +01:00
Jérémy Lecour
8920ff1ee4
Add "always_run: yes" where it's pertinent
...
There is also the "check_mode: no", but commented,
for when we switch to Ansible 2.2
2017-01-31 11:45:35 +01:00
Jérémy Lecour
d42c450573
admin-users: default to empty dict
2017-01-10 10:19:43 +01:00
Jérémy Lecour
61f5219f48
Improve documentation
...
Each role has a README and a meta/main.yml file
2017-01-05 18:22:06 +01:00
Jérémy Lecour
5a4f838375
Unix mode MUST be a quoted string when using octal notation
2017-01-05 12:03:54 +01:00
Jérémy Lecour
b49cd060eb
admin-user: switch to a Dict for admin_users
2017-01-04 10:21:41 +01:00
Jérémy Lecour
0ff5467bce
add a "reload sshd" handler
2017-01-04 10:21:41 +01:00
Jérémy Lecour
475ccf3bd1
amin-users: fix perms on sudoers file
2017-01-03 16:38:04 +01:00
Jérémy Lecour
65c57a61aa
admin-users: AllowUsers + Match User
2016-12-27 14:04:12 +01:00
Jérémy Lecour
b7be16e44b
Rename role evolinux-admin_users → admin-users
2016-12-22 15:34:23 +01:00