Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johnbuhay/ansible-role-ansible-client

Ansible role that adds a user for Ansible and manages it's authorized_keys.
https://github.com/johnbuhay/ansible-role-ansible-client

ansible

Last synced: 2 days ago
JSON representation

Ansible role that adds a user for Ansible and manages it's authorized_keys.

Awesome Lists containing this project

README

        

ansible-client
=========

This role adds the `ansible` user and manages it's authorized_keys.

Requirements
------------

This role expects ssh public keys stored as files in a specific directory.
The `ansible` directory below corresponds to the value specified in `{{ansible_client_group}}`.

../../ (ansible root directory)
├── ansible.cfg
├── files
│ ├── ansible
│ │   ├── ansible.pub -> ../users/ansible.pub
│ │   └── admin_username.pub -> ../users/admin_username.pub
│ └── users
│ ├── admin_username.pub
│ ├── ansible.pub
│ └── developer_username.pub
...
├── roles
│   ├── ansible-client
│   │   ├── ...
...

Role Variables
--------------

You can specify the user and group to create for ansible with these variables.
Defaults to `ansible`.

ansible_client_user: ansible
ansible_client_group: ansible

Dependencies
------------
- https://github.com/jnbnyc/ansible-role-service-account.git

Example Playbook
----------------

- hosts: centos_servers
roles:
- role: ansible-client
ansible_client_user: centos
ansible_client_group: centos

License
-------

MIT

Author Information
------------------

[email protected]