Compare commits

...

3 commits

Author SHA1 Message Date
3b1f44e19e chore(deps): update ghcr.io/shlinkio/shlink docker tag to v4.3.0
All checks were successful
/ diff-and-deploy (push) Successful in 2m2s
2024-11-24 14:01:56 +00:00
ce1e33d678 ansible: rotate ssh key 2024-11-23 12:22:04 -08:00
89fcffdf59 chore(deps): update ghcr.io/charlesthomas/bitwarden-cli docker tag to v2024.11.1
All checks were successful
/ diff-and-deploy (push) Successful in 2m3s
2024-11-22 02:01:50 +00:00
3 changed files with 29 additions and 2 deletions

View file

@ -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:

View file

@ -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:

View file

@ -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'