Initial create user
This commit is contained in:
parent
fa50492eb5
commit
cb149f64c3
11 changed files with 107 additions and 0 deletions
26
.gitignore
vendored
Normal file
26
.gitignore
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# ---> Vim
|
||||||
|
# Swap
|
||||||
|
[._]*.s[a-v][a-z]
|
||||||
|
!*.svg # comment out if you don't need vector files
|
||||||
|
[._]*.sw[a-p]
|
||||||
|
[._]s[a-rt-v][a-z]
|
||||||
|
[._]ss[a-gi-z]
|
||||||
|
[._]sw[a-p]
|
||||||
|
|
||||||
|
# Session
|
||||||
|
Session.vim
|
||||||
|
Sessionx.vim
|
||||||
|
|
||||||
|
# Temporary
|
||||||
|
.netrwhist
|
||||||
|
*~
|
||||||
|
# Auto-generated tag files
|
||||||
|
tags
|
||||||
|
# Persistent undo
|
||||||
|
[._]*.un~
|
||||||
|
|
||||||
|
# ---> Ansible
|
||||||
|
*.retry
|
||||||
|
*.vault
|
||||||
|
.vault
|
||||||
|
ansible/
|
9
.gitmodules
vendored
Normal file
9
.gitmodules
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[submodule "collections/ansible_collections/l3d/users"]
|
||||||
|
path = collections/ansible_collections/l3d/users
|
||||||
|
url = https://github.com/roles-ansible/ansible_collection_users.git
|
||||||
|
[submodule "roles/do1jlr.ansible_version"]
|
||||||
|
path = roles/do1jlr.ansible_version
|
||||||
|
url = https://github.com/roles-ansible/ansible_role_versioncheck.git
|
||||||
|
[submodule "roles/l3d.packages"]
|
||||||
|
path = roles/l3d.packages
|
||||||
|
url = https://github.com/roles-ansible/ansible_role_packages.git
|
|
@ -3,3 +3,7 @@
|
||||||
|
|
||||||
Ansible Playbook Collection um die Raspberry Pi Zero based Grobhandtaster zu konfigurieren
|
Ansible Playbook Collection um die Raspberry Pi Zero based Grobhandtaster zu konfigurieren
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
```bash
|
||||||
|
pip3 install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
28
ansible.cfg
Normal file
28
ansible.cfg
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
[defaults]
|
||||||
|
inventory = ./hosts.ini
|
||||||
|
remote_user = ansible
|
||||||
|
retry_files_enabled = false
|
||||||
|
nocows = true
|
||||||
|
|
||||||
|
log_path = $HOME/.ansible/ansible_pi_buzzer.log
|
||||||
|
|
||||||
|
forks = 20
|
||||||
|
gathering = smart
|
||||||
|
fact_caching = jsonfile
|
||||||
|
fact_caching_connection = $HOME/.ansible/facts
|
||||||
|
|
||||||
|
interpreter_python = /usr/bin/python3
|
||||||
|
|
||||||
|
[ssh_connection]
|
||||||
|
control_path = %(directory)s/%%h-%%r-%%p
|
||||||
|
ssh_args = -o StrictHostKeyChecking=accept-new -o ControlMaster=auto -o ControlPersist=600s
|
||||||
|
pipelining = true
|
||||||
|
retries = 10
|
||||||
|
|
||||||
|
[privilege_escalation]
|
||||||
|
become_method = sudo
|
||||||
|
become_user = root
|
||||||
|
become_ask_pass = false
|
||||||
|
|
||||||
|
[passwordstore_lookup]
|
||||||
|
backend = gopass
|
1
collections/ansible_collections/l3d/users
Submodule
1
collections/ansible_collections/l3d/users
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 709abefcc96e89619d1d31f4b9e7879f069cd241
|
14
group_vars/all.yml
Normal file
14
group_vars/all.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
# l3d.users
|
||||||
|
l3d_users__default_users:
|
||||||
|
- name: l3d
|
||||||
|
state: 'present'
|
||||||
|
pubkeys: "{{ lookup('url', 'https://github.com/do1jlr.keys', split_lines=false) }}"
|
||||||
|
admin: true
|
||||||
|
admin_commands: 'ALL'
|
||||||
|
admin_ansible_login: true
|
||||||
|
admin_nopassword: true
|
||||||
|
|
||||||
|
# l3d.packages
|
||||||
|
l3d_pkgs__install_python: true
|
||||||
|
l3d_pkgs__install_cli: true
|
2
hosts.ini
Normal file
2
hosts.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[zero]
|
||||||
|
l3dzero.local
|
8
requirements.txt
Normal file
8
requirements.txt
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
jmespath>=1.0.1
|
||||||
|
passlib[bcrypt]>=1.7.4
|
||||||
|
ansible
|
||||||
|
ansible-core >= 2.16.0
|
||||||
|
ansible-lint
|
||||||
|
yamllint
|
||||||
|
j2lint
|
||||||
|
netaddr >= 0.9.0
|
1
roles/do1jlr.ansible_version
Submodule
1
roles/do1jlr.ansible_version
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 2bf5d7c4369a8213b42829b14f78920e9906d099
|
1
roles/l3d.packages
Submodule
1
roles/l3d.packages
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 43229cf0d9561248625ada346c86e03f6fee4b71
|
13
site.yml
Normal file
13
site.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
- name: Check if ansible is not to old
|
||||||
|
hosts: localhost
|
||||||
|
roles:
|
||||||
|
- {role: do1jlr.ansible_version, tags: [default, version, default, always]}
|
||||||
|
|
||||||
|
- name: General roles for all hosts
|
||||||
|
hosts: all
|
||||||
|
roles:
|
||||||
|
- {role: l3d.users.user, tags: [test, users, user]}
|
||||||
|
- {role: l3d.users.admin, tags: [test, users, admin]}
|
||||||
|
- {role: l3d.users.sshd, tags: [test, users, sshd]}
|
||||||
|
- {role: l3d.packages, tags: [packages, general]}
|
Loading…
Reference in a new issue