Commit c66d0069 authored by Felix's avatar Felix
Browse files

Apply Ansible Galaxy structure

parent c7613aba
The MIT License (MIT)
Copyright (c) 2018 Felix Delattre
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
## User creation
User
=========
* This role creates the user `user` on a system.
* This user will be added to the groups: `docker`, `ssh_login` and `sudo`
* The password will be set accordingly to the provided information from a simple, encrypted KeePass database.
This roles creates the user `user` on a Debian (based) system. Used for the [provision](https://github.com/oneofftech/provision) setup. The account has direct super user access (through sudo) and it optionally gets password information from a simple, encryped [KeePass databse](https://keepass.info/).
#### You can connect directly with
This is work in progress and it is prefered to collaborate on it. Please communicate over the issue queue. Every pull request is highly appreciated.
`ssh -p 2222 user@123.456.789.1`
Example Playbook
----------------
or use an alias in your `.ssh/config` (recommended):
- hosts: servers
roles:
- { role: xamanu.essentials }
```
Host asososca
Port 2222
User user
Hostname 123.456.789.1
```
License
-------
MIT
Author Information
------------------
Felix Delattre - https://felix.delattre.de
---
# defaults file for ansible-role-user
\ No newline at end of file
---
# handlers file for ansible-role-user
\ No newline at end of file
galaxy_info:
author: Felix Delattre
description: A standard `user` for Debian systems.
company:
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
# issue_tracker_url: http://example.com/issue/tracker
# Some suggested licenses:
# - BSD (default)
# - MIT
# - GPLv2
# - GPLv3
# - Apache
# - CC-BY
license: MIT
min_ansible_version: 1.2
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
# Optionally specify the branch Galaxy will use when accessing the GitHub
# repo for this role. During role install, if no tags are available,
# Galaxy will use this branch. During import Galaxy will access files on
# this branch. If Travis integration is configured, only notifications for this
# branch will be accepted. Otherwise, in all cases, the repo's default branch
# (usually master) will be used.
#github_branch:
#
# platforms is a list of platforms, and each platform has a name and a list of versions.
#
# platforms:
# - name: Fedora
# versions:
# - all
# - 25
# - name: SomePlatform
# versions:
# - all
# - 1.0
# - 7
# - 99.99
platforms:
- name: Debian
versions:
- buster
- stretch
galaxy_tags:
- provision
- keepass
- user
- debian
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.
\ No newline at end of file
---
- hosts: localhost
remote_user: root
roles:
- ansible-role-user
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment