Sync from polyfloyd infra

This commit is contained in:
polyfloyd 2023-07-16 19:23:14 +02:00
parent 6c17cd62eb
commit 591cfd73af
4 changed files with 11 additions and 8 deletions

View file

@ -14,7 +14,6 @@
apt: apt:
name: dehydrated name: dehydrated
state: present state: present
default_release: "{{ ansible_distribution_release }}-backports"
- name: Install config file - name: Install config file
template: template:

View file

@ -22,7 +22,7 @@
- name: Remove variable directories - name: Remove variable directories
file: file:
state: absent state: absent
path: /usr/local/bin/acmetool path: "{{ item }}"
with_items: with_items:
- /etc/letsencrypt - /etc/letsencrypt
- /var/letsencrypt - /var/letsencrypt

View file

@ -15,4 +15,4 @@
name: linux-image-amd64 name: linux-image-amd64
state: latest state: latest
default_release: "{{ ansible_facts['distribution_release'] }}-backports" default_release: "{{ ansible_facts['distribution_release'] }}-backports"
when: ansible_facts['architecture'] == "x86_64" when: ansible_facts['architecture'] == "x86_64" and ansible_facts['distribution_release'] != "bookworm"

View file

@ -39,11 +39,15 @@
lineinfile: lineinfile:
path: /etc/bash.bashrc path: /etc/bash.bashrc
insertafter: EOF insertafter: EOF
regexp: "^source /usr/share/doc/fzf/examples/{{ item }}" regexp: "^source /usr/share/doc/fzf/examples/key-bindings.bash"
line: "source /usr/share/doc/fzf/examples/{{ item }} # Managed by Ansible" line: "source /usr/share/doc/fzf/examples/key-bindings.bash # Managed by Ansible"
with_items:
- key-bindings.bash - name: Configure FZF for Bash (Bookworm)
- completion.bash lineinfile:
path: /etc/bash.bashrc
insertafter: EOF
regexp: "^source /usr/share/doc/fzf/examples/completion.bash"
state: absent
- name: Shorten Grub timeout - name: Shorten Grub timeout
lineinfile: lineinfile: