mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-10-28 05:07:06 +01:00
build
This commit is contained in:
1 parent
19bdbfde78
commit
57b714271a
7 files changed
+42
-4
No files matched your search
@@ -1,6 +1,13 @@
|
||||
- name: SSH keys deploy
|
||||
become: "{{ false if inventory_hostname == 'nas.home.lan' else true }}"
|
||||
block:
|
||||
- name: Create dir
|
||||
ansible.builtin.file:
|
||||
path: /home/jd/.ssh
|
||||
owner: jd
|
||||
group: jd
|
||||
mode: '0700'
|
||||
state: directory
|
||||
- name: Upload key
|
||||
ansible.builtin.copy:
|
||||
src: id_rsa
|
||||
@@ -11,7 +18,7 @@
|
||||
when: inventory_hostname != 'nas.home.lan'
|
||||
- name: Upload key
|
||||
ansible.builtin.copy:
|
||||
src: id_rsa
|
||||
src: id_rsa.pub
|
||||
dest: /home/jd/.ssh/id_rsa.pub
|
||||
mode: '0600'
|
||||
owner: jd
|
||||
|
||||
Reference in new issue
Block a user