Compare commits
3 commits
renovate/d
...
main
Author | SHA1 | Date | |
---|---|---|---|
3b1f44e19e | |||
ce1e33d678 | |||
89fcffdf59 |
3 changed files with 29 additions and 2 deletions
|
@ -17,7 +17,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: bitwarden-cli
|
||||
image: ghcr.io/charlesthomas/bitwarden-cli:2024.11.0
|
||||
image: ghcr.io/charlesthomas/bitwarden-cli:2024.11.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
envFrom:
|
||||
- secretRef:
|
||||
|
|
|
@ -18,7 +18,7 @@ spec:
|
|||
fsGroup: 1001
|
||||
fsGroupChangePolicy: "OnRootMismatch"
|
||||
containers:
|
||||
- image: ghcr.io/shlinkio/shlink:4.2.5
|
||||
- image: ghcr.io/shlinkio/shlink:4.3.0
|
||||
name: shlink
|
||||
resources: {}
|
||||
ports:
|
||||
|
|
|
@ -10,3 +10,30 @@
|
|||
apt:
|
||||
name: [ufw]
|
||||
state: absent
|
||||
|
||||
- name: check which users exist
|
||||
ansible.builtin.user:
|
||||
name: "{{ item }}"
|
||||
loop: ["root", "finn", "debian"]
|
||||
check_mode: true
|
||||
register: users
|
||||
|
||||
- name: Ensure SSH key is set
|
||||
ansible.posix.authorized_key:
|
||||
user: "{{ item.item }}"
|
||||
state: present
|
||||
key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJs5PJ6jQF7Sx3T1b1+NBXt4JRsnjGnWv8+bCf4RpwGM finn@taint
|
||||
loop: "{{ users.results }}"
|
||||
loop_control:
|
||||
label: "{{ item.item }}"
|
||||
when: item.state | d('') == 'present'
|
||||
|
||||
- name: Invalidate old SSH key
|
||||
ansible.posix.authorized_key:
|
||||
user: "{{ item.item }}"
|
||||
state: absent
|
||||
key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDMaJrZWSrAYTaCoGhW+o8HivmBj5oZi7Dei73FtCl0d finn@taint
|
||||
loop: "{{ users.results }}"
|
||||
loop_control:
|
||||
label: "{{ item.item }}"
|
||||
when: item.state | d('') == 'present'
|
||||
|
|
Loading…
Reference in a new issue