minor reformatting on users role

main
Ricard Illa 2022-08-30 15:10:01 +02:00
parent 5ba72b1d88
commit 11df0dab83
5 changed files with 27 additions and 31 deletions

View File

@ -1,24 +0,0 @@
- name: commit ansible's home to lbu
lbu:
include:
- /home/rilla
- /home/rilla/.ssh/authorized_keys
exclude:
- /home/rilla/.ash_history
- name: commit ansible's home to lbu
lbu:
include:
- /var/lib/ansible
- /var/lib/ansible/.ssh/authorized_keys
exclude:
- /var/lib/ansible/.ansible
- /var/lib/ansible/.ash_history
- name: commit woodpecker's home to lbu
lbu:
include:
- /var/lib/woodpecker
- /var/lib/woodpecker/.ssh/authorized_keys
exclude:
- /var/lib/woodpecker/.ash_history

View File

@ -30,4 +30,12 @@
with_file:
- public_keys/yubikey
- public_keys/ansible
register: ansible_keys
- name: commit ansible's home to lbu
lbu:
include:
- /var/lib/ansible
- /var/lib/ansible/.ssh/authorized_keys
exclude:
- /var/lib/ansible/.ansible
- /var/lib/ansible/.ash_history

View File

@ -6,7 +6,3 @@
- name: setup user 'woodpecker'
include_tasks: ansible.yml
- name: commit user's home to alpine lbu
include_tasks: alpine.yml
when: ansible_distribution == "Alpine"

View File

@ -28,4 +28,12 @@
path: /home/rilla/.ssh/authorized_keys
with_file:
- public_keys/yubikey
register: rilla_keys
- name: commit rilla's home to lbu
lbu:
include:
- /home/rilla
- /home/rilla/.ssh/authorized_keys
exclude:
- /home/rilla/.ash_history
when: ansible_distribution == "Alpine"

View File

@ -29,4 +29,12 @@
with_file:
- public_keys/yubikey
- public_keys/woodpecker
register: woodpecker_keys
- name: commit woodpecker's home to lbu
lbu:
include:
- /var/lib/woodpecker
- /var/lib/woodpecker/.ssh/authorized_keys
exclude:
- /var/lib/woodpecker/.ash_history
when: ansible_distribution == "Alpine"