From d096333daa94984dc6607d52be9037ade16bab2c Mon Sep 17 00:00:00 2001 From: Thorsieger Date: Tue, 21 Apr 2020 15:04:03 +0200 Subject: [PATCH] ajout d'un script pour le setup des cartes RPI --- Ansible/inventaire-rasp.ini | 0 Ansible/setupRPI.sh | 2 ++ 2 files changed, 2 insertions(+), 0 deletions(-) create mode 100644 Ansible/inventaire-rasp.ini create mode 100755 Ansible/setupRPI.sh diff --git a/Ansible/inventaire-rasp.ini b/Ansible/inventaire-rasp.ini new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Ansible/inventaire-rasp.ini diff --git a/Ansible/setupRPI.sh b/Ansible/setupRPI.sh new file mode 100755 index 0000000..162b53f --- /dev/null +++ b/Ansible/setupRPI.sh @@ -0,0 +1,2 @@ +#!/bin/sh +ansible -i inventaire-rasp.ini -m authorized_key -a 'user=pi state=present key="{{ lookup("file", "/home/pifou/.ssh/id_rsa.pub") }}"' --user pi --ask-pass --become --ask-become-pass all \ No newline at end of file -- libgit2 0.21.2