Add ansible user
This commit is contained in:
parent
67f29a6e32
commit
f070263bd6
|
@ -13,3 +13,10 @@ users:
|
||||||
ssh_keys:
|
ssh_keys:
|
||||||
- sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFWZGLov8wPBNxuvnaPK+8vv6wK5hHUVEFzXKsN9QeuBAAAADHNzaDpzYW1zYXB0aQ== ssh:samsapti
|
- sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFWZGLov8wPBNxuvnaPK+8vv6wK5hHUVEFzXKsN9QeuBAAAADHNzaDpzYW1zYXB0aQ== ssh:samsapti
|
||||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPd/4fQV7CL8/KVwbo/phiV5UdXFBIDlkZ+ps8C7FeRf cardno:14 336 332
|
- 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
|
||||||
|
|
15
site.yml
15
site.yml
|
@ -1,8 +1,21 @@
|
||||||
# vim: ft=yaml.ansible
|
# vim: ft=yaml.ansible
|
||||||
# code: language=ansible
|
# code: language=ansible
|
||||||
---
|
---
|
||||||
- name: Base configuration
|
- name: Base VM configuration
|
||||||
hosts: virtualservers
|
hosts: virtualservers
|
||||||
remote_user: root
|
remote_user: root
|
||||||
roles:
|
roles:
|
||||||
- vm-common
|
- vm-common
|
||||||
|
|
||||||
|
- name: App servers
|
||||||
|
hosts: appservers
|
||||||
|
remote_user: ansible
|
||||||
|
roles:
|
||||||
|
- docker
|
||||||
|
- apps
|
||||||
|
|
||||||
|
- name: Database servers
|
||||||
|
hosts: dbservers
|
||||||
|
remote_user: ansible
|
||||||
|
roles:
|
||||||
|
- postgresql
|
||||||
|
|
Loading…
Reference in a new issue