Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elcomtik/ansible-role-init
Ansible role for the initial configuration of the host
https://github.com/elcomtik/ansible-role-init
ansible ansible-role hacktoberfest ssh ssh-keys sudo
Last synced: about 1 month ago
JSON representation
Ansible role for the initial configuration of the host
- Host: GitHub
- URL: https://github.com/elcomtik/ansible-role-init
- Owner: elcomtik
- License: mit
- Created: 2020-04-30T09:18:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-10T15:17:31.000Z (over 1 year ago)
- Last Synced: 2023-05-10T16:30:19.672Z (over 1 year ago)
- Topics: ansible, ansible-role, hacktoberfest, ssh, ssh-keys, sudo
- Homepage:
- Size: 95.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# ansible-role-init
![Molecule](https://github.com/ansible-community/ansible-consul/workflows/default/badge.svg?branch=main&event=pull_request)
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/elcomtik/ansible-role-init.svg)](http://isitmaintained.com/project/elcomtik/ansible-role-init "Average time to resolve an issue")
[![Percentage of issues still open](http://isitmaintained.com/badge/open/elcomtik/ansible-role-init.svg)](http://isitmaintained.com/project/elcomtik/ansible-role-init "Percentage of issues still open")Initial configuration of host to prepare for Ansible.
Will ensure:
- python is latest version
- user for ansible is created with sudo presmisions
- ssh_key for ansible user is added
- sshd port is configured acording to inventory value of ansible_port## Requirements
User on remote host which run playbook must have root privileges
## Role Variables
Defaults:
# user which will initialy configure host, until ansible_user is created
bootstrap_user: "root"# enables to delete ssh_key from bootstrap user account
remove_bootstrap_user_ssh_keys: false# user which will be used by ansible
ssh_user: ansible# path relative to playbook directory
ssh_keys_path: "files/ssh-keys"# by default empty list. Must be defined, should by name of pubkey file, which is placed in ssh_key_path directory
ssh_keys: []# ssh port which we want to set listening on
ansible_port: 2222# enables to remove default(22) SSH listen port
remove_default_ssh_port: false## Dependencies
none
## Example Playbook
```yaml
- hosts: all
gather_facts: no
roles:
- elcomtik.init
```## License
MIT
## Author Information
[email protected], www.romandanko.sk