More lint and fixes

This commit is contained in:
Sam A. 2022-12-26 01:19:54 +01:00
parent 54728a8acb
commit db1210697d
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
4 changed files with 24 additions and 20 deletions

View file

@ -0,0 +1,21 @@
# vim: ft=yaml.ansible
---
- name: Copy Docker daemon config file
template:
src: daemon.json.j2
dest: /etc/docker/daemon.json
owner: root
mode: u=rw,g=r,o=r
register: daemon_config
- name: (Disable and) start Docker daemon
service:
name: "{{ item }}"
enabled: false
state: "{{ 'restarted' if daemon_config.changed else 'started' }}"
loop:
- docker.socket
- docker.service
- name: Set up Docker services
import_tasks: services.yml

View file

@ -37,8 +37,8 @@
- docker
- docker-compose
- name: Set up Docker services
import_tasks: services.yml
- name: Set up Docker
import_tasks: docker.yml
tags:
- reboot
- services

View file

@ -1,22 +1,5 @@
# vim: ft=yaml.ansible
---
- name: Copy Docker daemon config file
template:
src: daemon.json.j2
dest: /etc/docker/daemon.json
owner: root
mode: u=rw,g=r,o=r
register: daemon_config
- name: (Disable and) start Docker daemon
service:
name: "{{ item }}"
enabled: false
state: "{{ 'restarted' if daemon_config.changed else 'started' }}"
loop:
- docker.socket
- docker.service
- name: Create base directory for Docker volumes
file:
name: "{{ base_volume }}"

View file

@ -49,7 +49,7 @@
filter:
- ansible_mounts
- ansible_swaptotal_mb
when: reboot.rebooted
when: not reboot.skipped and reboot.rebooted
- name: Clone apt-update-push
git: