fix issue with .ssh directory not existing
This commit is contained in:
parent
e424e084db
commit
c10188eedf
@ -46,7 +46,6 @@
|
||||
become: yes
|
||||
when: ansible_facts['os_family'] == "Debian"
|
||||
|
||||
|
||||
- name: GITHUB | Get current version of bat
|
||||
shell: >
|
||||
warn=False
|
||||
@ -59,7 +58,6 @@
|
||||
not bat_version.stdout|regex_search('\w+\.\w+\.\w+')
|
||||
when: ansible_facts['os_family'] == "Debian"
|
||||
|
||||
|
||||
- name: DEBIAN | Set URL to download bins
|
||||
set_fact:
|
||||
debian_url: "https://github.com/sharkdp/bat/releases/download/v{{ bat_version.stdout }}/bat_{{ bat_version.stdout }}_amd64.deb"
|
||||
|
@ -11,6 +11,14 @@
|
||||
with_items:
|
||||
- "{{user.name}}"
|
||||
- root
|
||||
- name: ensure key directory exist
|
||||
become: true
|
||||
file:
|
||||
state: directory
|
||||
path: "{{ item.keyfile | dirname }}"
|
||||
owner: "{{item.user}}"
|
||||
mode: 0600
|
||||
with_items: "{{privatekeytodeploy}}"
|
||||
|
||||
- name: Install ssh private key
|
||||
become: yes
|
||||
@ -29,8 +37,6 @@
|
||||
with_items: "{{keystodeploy}}"
|
||||
become: yes
|
||||
|
||||
|
||||
|
||||
- name: les connexions par mot de passe sont désactivées
|
||||
become: yes
|
||||
lineinfile:
|
||||
|
Loading…
Reference in New Issue
Block a user