all changes to make it work on Debian
This commit is contained in:
parent
392014dbd8
commit
3f9bac7f35
3 changed files with 8 additions and 17 deletions
|
@ -1,4 +0,0 @@
|
||||||
nameserver 192.168.30.1
|
|
||||||
nameserver 1.1.1.1
|
|
||||||
nameserver 1.0.0.1
|
|
||||||
search lan
|
|
|
@ -9,16 +9,6 @@
|
||||||
file:
|
file:
|
||||||
path: "{{ base_service_dir }}"
|
path: "{{ base_service_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
- name: Disable systemd-resolved
|
|
||||||
systemd:
|
|
||||||
name: systemd-resolved
|
|
||||||
enabled: false
|
|
||||||
state: stopped
|
|
||||||
- name: Copy resolv.conf
|
|
||||||
copy:
|
|
||||||
src: "{{ role_path }}/files/resolv.conf"
|
|
||||||
dest: /etc/resolv.conf
|
|
||||||
follow: true
|
|
||||||
- name: Add dataserver to known hosts
|
- name: Add dataserver to known hosts
|
||||||
known_hosts:
|
known_hosts:
|
||||||
name: "lewis.lan"
|
name: "lewis.lan"
|
||||||
|
|
|
@ -8,11 +8,12 @@
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- name: Add Docker APT key
|
- name: Add Docker APT key
|
||||||
apt_key:
|
apt_key:
|
||||||
url: https://download.docker.com/linux/ubuntu/gpg
|
url: https://download.docker.com/linux/debian/gpg
|
||||||
keyring: /etc/apt/keyrings/docker.gpg
|
state: present
|
||||||
- name: Add Docker repository
|
- name: Add Docker repository
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: "deb [signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
|
repo: "deb https://download.docker.com/linux/debian bullseye stable"
|
||||||
|
state: present
|
||||||
register: apt_repository
|
register: apt_repository
|
||||||
- name: Update APT cache
|
- name: Update APT cache
|
||||||
apt:
|
apt:
|
||||||
|
@ -30,6 +31,10 @@
|
||||||
name:
|
name:
|
||||||
- docker
|
- docker
|
||||||
- docker-compose
|
- docker-compose
|
||||||
|
- name: Create /etc/docker directory
|
||||||
|
file:
|
||||||
|
path: "/etc/docker"
|
||||||
|
state: directory
|
||||||
- name: Copy daemon.json
|
- name: Copy daemon.json
|
||||||
copy:
|
copy:
|
||||||
src: "{{ role_path }}/files/daemon.json"
|
src: "{{ role_path }}/files/daemon.json"
|
||||||
|
|
Reference in a new issue