Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/johnbuhay/ansible-role-ansible-client
- Owner: johnbuhay
- License: mit
- Created: 2017-08-24T01:31:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-25T15:54:43.000Z (over 7 years ago)
- Last Synced: 2024-11-06T05:36:52.719Z (about 2 months ago)
- Topics: ansible
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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: ansibleDependencies
------------
- https://github.com/jnbnyc/ansible-role-service-account.gitExample Playbook
----------------- hosts: centos_servers
roles:
- role: ansible-client
ansible_client_user: centos
ansible_client_group: centosLicense
-------MIT
Author Information
------------------