aaa
This commit is contained in:
parent
c9f98c67b4
commit
b8e7a5af0d
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
- hosts: "{{ host }}"
|
||||
vars:
|
||||
|
||||
tasks:
|
||||
- name: Add ssh pub keys
|
||||
authorized_key:
|
||||
user: "{{ user }}"
|
||||
key: "{{ key }}"
|
||||
state: present
|
||||
manage_dir: yes
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
host: all
|
||||
##host: "giditek.*,atento.*,bergecloud.*sonda*.argos.*"
|
||||
|
||||
users:
|
||||
# - name: pedro.delbarco
|
||||
# key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCoVRI3thSvUO4exvEIGu0Kg57Rmt6EOyRiadJU86Oelcr5rCO9HyP1fKAdBS1of9TdhcdXztxB/6xKGg6vqEQ6X0VOFBJalpZ5puB8bzSVywdfQvZVxCPzMTlKQ6jFsN/74f2hL8DHVUnMfNIZFRXsOreJjbEqnE/CvUw9SKPmWD2VmTaxZy6Fiz9EaQ3yc5onBHgc2sCuoFuFFtwmANiVEejO3FGvm3xSnUN+LDTPMYvjTVgOgOiE+CXGjU5QMUIdJmSqRqACluuZyRKmDDvsdltXLH2vhMs6e4A2Xim0ZzkSkiTpJqh2r0cHcDQ6cQYqX+2ENiWeugM+ueed0xeV pedro.delbarco@thor'
|
||||
- name: ruben.valles
|
||||
key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDHFG9s2iWDwiBTHmczwtXnH276FfAY5ehCmMkB6KMIrKl38DHxEWY3ajHUdnXsN7kL9EGmh4cKMaW3MYtDTFVAFs3dzupyJuOMbSV3KWXn5dcOfmV4m6IxjV8fyVQSF7xEmD/vXFxJOzY7wJnYMnAGD1RCqVx7r6XefCqHoXLm2LQ/IcIjFiBa3QeSW8KZ5wdHdoGtFYJFrPipr7RZ/ByU144AWyaxEloEdYwzOmzY2BOLsmst+Q8GBa8CCDiTnehLp/4Jxpvz5pByaIpqCh1od4Wpi+01id0FlKOPPvzu6GvkkQ5Vp3Eq2KvnDQENN6/rgnbvozs0JpjsLNKfb2x5Bkgjts3GYhdNWxEPpxCThtCzsRGUYb+XcRzG2ufmdYdq+nT+tPxOpI9MX2MnR+M/Z2u2aL8zWfEei73xg09UO5xgHPhW/hzyVHlLljO6qgAfZui/12FEUzbIBESNsoIc6mspvQcQhUdreaeFa8qlxqZ9rr5CmX+lRrnszbcHo9s0BmNUnt8BS79krHfJ0s/k8aCN0t+JPJF2yJNgxDGW9URS8kMfgHFbETsj0kZ87EueU6Opom9cy9QKxGa/hmm+WzO50EaQR6MEk2doc6J9tcVOnF0qAifCc+++89XBS7BmEiTa+WoV2/Znw/4ScmsxVjo6MKHB8cNR6q6CMMyLJw== rvalles@ubuntu1604'
|
||||
# Public key for backups with elmo
|
||||
# - name: elmo
|
||||
# key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/NMu0wZA3rOxpEeOaMBZXha+cdJakHZZOj4UQIglfQ/d+f/bzWcY/qqOsoI9SqqZby4eqoS3cCnXPFQ7dUec6Yl69ktroJ7pVcquKuzMKqyDA+voKntYGI2GwM6R802RaEw+mqeOtR7HDEqdpn7d/XTwfWbFXcZu2JoWzm/XyRlxCnTyblZSucGIwUugkTRp/Uu049ACL3hOsniB6ic0u1+n6IBxbTFU4RRO1qesKyHncxFELh3uKMh18CSFZwY7Ok25HoDBskFsYD9nsLv/BRIAbfWToDedNsL00l3dlUrQB7mo85aFPAxs3+4xwUxeaCIzYd34NCPujLpRSRjQd elmo@srv3l1126'
|
|
@ -1,13 +1,11 @@
|
|||
---
|
||||
- hosts: "{{ hosts_servers }}"
|
||||
vars:
|
||||
gather_facts: no
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Create a ssh user in the system
|
||||
user:
|
||||
name: "{{ ssh_user_name }}"
|
||||
#password: "{{ item.password }}"
|
||||
password: "{{ ssh_password | password_hash('sha512') }}"
|
||||
update_password: always
|
||||
state: present
|
||||
|
|
Loading…
Reference in New Issue