Add ansible user

This commit is contained in:
Sam A. 2023-11-12 18:31:45 +01:00
parent 67f29a6e32
commit f070263bd6
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 21 additions and 1 deletions

View file

@ -13,3 +13,10 @@ users:
ssh_keys:
- sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFWZGLov8wPBNxuvnaPK+8vv6wK5hHUVEFzXKsN9QeuBAAAADHNzaDpzYW1zYXB0aQ== ssh:samsapti
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPd/4fQV7CL8/KVwbo/phiV5UdXFBIDlkZ+ps8C7FeRf cardno:14 336 332
- name: ansible
comment: Ansible user
groups:
- sudo
ssh_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDyAuOqh0vcpLMBa8FFbvrTOgw8N+bcImFzyBspfQDAf ansible

View file

@ -1,8 +1,21 @@
# vim: ft=yaml.ansible
# code: language=ansible
---
- name: Base configuration
- name: Base VM configuration
hosts: virtualservers
remote_user: root
roles:
- vm-common
- name: App servers
hosts: appservers
remote_user: ansible
roles:
- docker
- apps
- name: Database servers
hosts: dbservers
remote_user: ansible
roles:
- postgresql