Skip to content

Commit

Permalink
Merge pull request #173 from konstruktoid/issue170
Browse files Browse the repository at this point in the history
add service restart variable
  • Loading branch information
konstruktoid authored Jun 28, 2023
2 parents ed94490 + 4d8c544 commit aea93f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ docker_bash_completion_shasum: "cd9c70120bc5f7e6772b6a5350abf63099004c357814abc8
docker_compose_bash_completion_shasum: "9926c945b466fad570ad574089d6a90f7d9ba452a2d6a8ba67611a664707f0de"
docker_rootful: false
docker_rootful_enabled: false
docker_service_restart: true
docker_rootful_opts: >
--live-restore --icc=false --default-ulimit nproc=512:1024 --default-ulimit nofile=100:200 -H fd://
docker_url: "https://download.docker.com/linux/static/stable/x86_64"
Expand All @@ -54,7 +55,6 @@ docker_user_bashrc: false
docker_allow_privileged_ports: false
docker_allow_ping: false
docker_compose: false
...
```
Before using this role you first have to decide if you want to install Docker
Expand All @@ -69,6 +69,9 @@ a manual install, not requiring any `root` permissions.
If `docker_rootful: true`, then `docker_rootful_enabled` will decide if the
daemon should be enabled as a service or not.

`docker_service_restart` will restart the rootless service after the Docker
binaries has been extracted.

Using `docker_rootful: true` and `docker_rootful_enabled: true`, will result in
a standard Docker installation, with an additional Docker daemon, running as a
non-root user.
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ docker_user_bashrc: false
docker_allow_privileged_ports: false
docker_allow_ping: false
docker_compose: false
docker_service_restart: true
...
1 change: 1 addition & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
name: docker.service
state: restarted
scope: user
when: docker_service_restart
...

0 comments on commit aea93f1

Please sign in to comment.