Add some ansible
This commit is contained in:
parent
f6443cdccf
commit
a163dc01a3
|
@ -3,6 +3,7 @@ inventory = hosts
|
|||
remote_tmp = /tmp
|
||||
forks = 50
|
||||
nocols = 1
|
||||
nocolor = True
|
||||
remote_user = root
|
||||
vault_password_file = ~/.of2019-vault-pass
|
||||
roles_path = playbooks/roles
|
||||
|
@ -10,4 +11,4 @@ host_key_checking = False
|
|||
|
||||
[ssh_connection]
|
||||
pipelining = True
|
||||
ssh_args = -C -o ControlMaster=auto -o ControlPersist=600s -o PasswordAuthentication=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
|
||||
ssh_args = -C -o ControlMaster=auto -o ControlPersist=600s -o PasswordAuthentication=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlPath=/tmp/ansible-ssh-%h-%p-%r
|
||||
|
|
|
@ -5,6 +5,11 @@ ssh_users:
|
|||
- zeridon
|
||||
- maniax
|
||||
- arcopix
|
||||
- hackman
|
||||
- lz1irq
|
||||
- shteryana
|
||||
- tochev
|
||||
- Yasen6275
|
||||
|
||||
timezone: "Europe/Sofia"
|
||||
|
||||
|
@ -12,4 +17,4 @@ ntp:
|
|||
server:
|
||||
- marla.ludost.net
|
||||
pool:
|
||||
- 0.bg.pool.ntp.org
|
||||
- 0.bg.pool.ntp.org
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
- name: "add ssh keys to root"
|
||||
authorized_key:
|
||||
user: root
|
||||
key: "{{ lookup('file', '../../access/ssh-keys/'+item+'.key') }}"
|
||||
key: "{{ lookup('file', '../access/ssh-keys/'+item+'.key') }}"
|
||||
with_items: "{{ ssh_users }}"
|
||||
|
||||
- name: "configure root user"
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- hosts: all
|
||||
roles:
|
||||
- role: common
|
Loading…
Reference in New Issue