Ersatz Rolle: ansible-user

This commit is contained in:
Michael Grote 2021-02-05 13:23:17 +01:00
parent 9f1db30565
commit 468df47f31
4 changed files with 11 additions and 6 deletions

View file

@ -57,6 +57,17 @@
servers:
- production
- test
- username: ansible-user
password: "{{ lookup('keepass', 'ansible_user_linux_password_hash', 'password') }}"
update_password: on_create
ssh_key: "{{ lookup('keepass', 'ansible_user_ssh_pubkey', 'password') }}"
use_sudo: yes
use_sudo_nopass: yes
user_state: present
groups: ssh, sudo
servers:
- production
- test
### geerlingguy.dotfiles
dotfiles_repo: "https://git.mgrote.net/mg/dotfiles"
dotfiles_repo_local_destination: "/home/mg/dotfiles-repo"

Binary file not shown.

View file

@ -5,13 +5,8 @@
roles:
- { role: robertdebock.bootstrap, tags: "bootstrap", become: yes}
- { role: ryandaniels.create_users, tags: "user", become: yes}
- { role: nickjj.ansible-user, tag: "ansible", become: yes }
vars:
### nickjj.ansible-users
user_name: "ansible-user"
user_local_ssh_key_path: "/home/mg/ansible/id_rsa_ansible_user_pub"
user_enable_passwordless_sudo: True
### reobertdebock.bootstrap
bootstrap_user: mg
bootstrap_wait_for_host: no

@ -1 +0,0 @@
Subproject commit 1612f6a06216665cbec2ae8643c759b9962bbf36