Compare commits

..

2 commits

2 changed files with 29 additions and 3 deletions

View file

@ -31,15 +31,23 @@
state: present
when: ansible_os_family == "Debian"
- name: Create keyrings directory
ansible.builtin.file:
path: /etc/apt/keyrings
state: directory
mode: '0755'
when: ansible_os_family == "Debian"
- name: Add Docker GPG key
ansible.builtin.apt_key:
ansible.builtin.get_url:
url: https://download.docker.com/linux/debian/gpg
state: present
dest: /etc/apt/keyrings/docker.asc
mode: '0644'
when: ansible_os_family == "Debian"
- name: Add Docker repository
ansible.builtin.apt_repository:
repo: "deb [arch=amd64] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
state: present
when: ansible_os_family == "Debian"
@ -61,3 +69,11 @@
state: started
enabled: true
when: ansible_virtualization_type != "docker"
- name: Set custom MOTD
ansible.builtin.template:
src: motd.j2
dest: /etc/motd
owner: root
group: root
mode: '0644'

View file

@ -0,0 +1,10 @@
▗▄▄▄ ▗▄▄▄▖ ▗▄▄▖▗▄▄▄▖▗▄▄▄▖▗▄▖ ▗▖ ▗▄▄▖ ▗▄▖ ▗▄▖ ▗▄▄▖ ▗▄▄▄
▐▌ █ █ ▐▌ █ █ ▐▌ ▐▌▐▌ ▐▌ ▐▌▐▌ ▐▌▐▌ ▐▌▐▌ ▐▌▐▌ █
▐▌ █ █ ▐▌▝▜▌ █ █ ▐▛▀▜▌▐▌ ▐▛▀▚▖▐▌ ▐▌▐▛▀▜▌▐▛▀▚▖▐▌ █
▐▙▄▄▀▗▄█▄▖▝▚▄▞▘▗▄█▄▖ █ ▐▌ ▐▌▐▙▄▄▖▐▙▄▞▘▝▚▄▞▘▐▌ ▐▌▐▌ ▐▌▐▙▄▄▀
Hostname: {{ ansible_hostname }}
Distribution: {{ ansible_distribution }} {{ ansible_distribution_version }}
Kernel: {{ ansible_kernel }}