Updated arch config

This commit is contained in:
Michael Mandl 2021-01-28 14:27:05 +01:00
parent 7bacbc8662
commit d2b7c0fd5d
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
10 changed files with 119 additions and 30 deletions

View file

@ -6,7 +6,6 @@
create_home: yes
state: present
update_password: always
groups: sudo
register: account
- name: ensure .ssh exists
@ -19,8 +18,20 @@
- name: copy ssh key
become_user: "{{ account.name }}"
copy:
src: "{{ item }}"
src: "ssh/"
dest: "/home/{{ account.name }}/.ssh/"
mode: "0600"
with_fileglob:
- "/mnt/c/Users/mandl/.ssh/id_rsa*"
- name: ensure .gnupg exists
become_user: "{{ account.name }}"
file:
path: "/home/{{ account.name }}/.gnupg"
state: directory
mode: "0700"
- name: copy gpg keys
become_user: "{{ account.name }}"
copy:
src: "gnupg/"
dest: "/home/{{ account.name }}/.gnupg/"
mode: "0600"