Ansible to setup user groups, user accounts and authorized keys.
- ansible >= 2.0
-
debug: flag to run debug tasks.
-
system_ssh_dir_public_keys: directory where SSH public keys are stored.
-
system_ssh_dir_deprecated_keys: directory where SSH deprecated public keys are stored.
-
system_groups: system's groups.
-
system_ssh_deprecated_keys: list of SSH keys that have been deprecated.
-
system_users: system's user accounts.
None.
- hosts: servers
roles:
- role: ansiblebit.system
-
configuration: configuration tasks.
-
debug: task to debug role variables.
-
installation: installation tasks.
-
validation: validation tasks.
-
system_authorized_keys: authorized keys setup tasks.
-
system_debug: role specific debug tasks.
-
system_group: group setup tasks.
-
system_user: user setup tasks.
-
system_validation: role specific validation tasks.
To run the tests you will need to install:
To run all tests against all pre-defined OS/distributions * ansible versions:
$ tox
To run tests for trusty64
:
$ cd tests
$ bash test_idempotence.sh --box trusty64.vagrant.dev
# log file will be stores under tests/log
To perform debugging on a specific environment:
$ cd tests
$ vagrant up trusty64.vagrant.dev
# to provision using the test.yml playbook (as many time as you need)
$ vagrant provision trusty64.vagrant.dev
# to access the Vagrant box
$ vagrant ssh trusty64.vagrant.dev