From b8e7a5af0dfb26b7c44c21ce876a0088f946359a Mon Sep 17 00:00:00 2001 From: davidl Date: Tue, 29 Aug 2023 13:44:44 +0200 Subject: [PATCH] aaa --- .../add_public_key/add_public_key.yml | 12 ------------ .../os/create_user_ssh/add_public_key/variables.yml | 11 ----------- linux/os/create_user_ssh/user_create_ssh.yml | 4 +--- 3 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 linux/os/create_user_ssh/add_public_key/add_public_key.yml delete mode 100644 linux/os/create_user_ssh/add_public_key/variables.yml diff --git a/linux/os/create_user_ssh/add_public_key/add_public_key.yml b/linux/os/create_user_ssh/add_public_key/add_public_key.yml deleted file mode 100644 index 609e671..0000000 --- a/linux/os/create_user_ssh/add_public_key/add_public_key.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -- hosts: "{{ host }}" - vars: - - tasks: - - name: Add ssh pub keys - authorized_key: - user: "{{ user }}" - key: "{{ key }}" - state: present - manage_dir: yes - diff --git a/linux/os/create_user_ssh/add_public_key/variables.yml b/linux/os/create_user_ssh/add_public_key/variables.yml deleted file mode 100644 index 69000e6..0000000 --- a/linux/os/create_user_ssh/add_public_key/variables.yml +++ /dev/null @@ -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' diff --git a/linux/os/create_user_ssh/user_create_ssh.yml b/linux/os/create_user_ssh/user_create_ssh.yml index 6a9326e..16e99b6 100644 --- a/linux/os/create_user_ssh/user_create_ssh.yml +++ b/linux/os/create_user_ssh/user_create_ssh.yml @@ -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