Commit Graph

42 Commits

Author SHA1 Message Date
bfe28b5753
fix 2023-10-15 09:26:22 +00:00
6be9cd0d48
fix 2023-10-15 09:19:05 +00:00
f416e38e24
fix 2023-10-15 09:16:22 +00:00
63ec452342
add AltLinux support 2023-10-15 09:09:18 +00:00
Jeff Geerling
928fe893e9 PR #370: Style cleanup. 2022-09-05 21:32:10 -05:00
Kevin Fardel
0884ae21b8 reset ssh connection to allow user changes to affect 'current login user'
Why:
Without this modification, we can't use docker with docker_users in same
playbook than the one which install docker.

How:
Check that docker_users are set and not in docker group before include
docker-users.yml. In docker-users.yml we call reset_connection from
ansible.builtin.meta collection after docker-users are added to docker
group.

Manual success tests:
* Try to install docker with only one user in docker-users and not in
  docker group => docker-users.yml include
* Try to install docker with only one user in docker-users but the user
  is in docker group => docker-users.yml not include
* Try to install docker with 2 users in docker-users, one user in docker
  group and the second not => docker-users.yml include
* Try to install docker with 2 users in docker-users, both are in docker
  group => docker-users.yml not include
* Try to install docker with 2 users in docker-users, both are not in
  docker group => docker-users.yml include
2022-08-24 17:07:45 +02:00
Jeff Geerling
53c5490523 PR #320: Use main.yml instead of default.yml for vars defaults. 2022-08-19 14:13:01 -05:00
Jeff Geerling
d3fcc22713
Merge pull request #320 from adamus1red/adamus1red/os-vars
Add OS specific variable overrides.
2022-08-19 14:09:16 -05:00
Jeff Geerling
93eef333bc
Update tasks/main.yml 2022-08-19 14:09:04 -05:00
Jeff Geerling
f78eb9d639
Update tasks/main.yml 2022-08-19 14:09:00 -05:00
Jeff Geerling
11345ab410
Merge pull request #365 from j-koehler/i205-install-docker-packages-explicitly
#205 - install Docker packages explicitly
2022-08-01 10:01:25 -05:00
Jeff Geerling
ccf6905017
Merge pull request #364 from kaysond/master
Add installation of docker plugin from docker's repo
2022-08-01 09:56:30 -05:00
Jeff Geerling
da9b7f78ee
Merge pull request #340 from jwhb/feature-service-manage
Allow skipping of service management
2022-08-01 09:55:50 -05:00
j.koehler
99e501c366 #205 - install Docker packages explicitly
following official Docker engine installation instructions
2022-07-14 12:16:39 +02:00
Aram Akhavan
028a764e83 add installation of docker plugin from repo 2022-07-05 19:39:39 -07:00
Andreas Motl
887eee43c7 Fix package downgrading for non-{RedHat,Debian} systems
Not all package install handlers implement the `allow_downgrade` option.
For example, using Ansible >= 2.12 on Arch Linux would croak like:

    Unsupported parameters for (ansible.legacy.pacman) module: allow_downgrade.
2022-05-24 23:29:09 +02:00
jwhb
83e2c066c1 Allow skipping of service management 2022-04-07 11:23:29 +02:00
Andreas Motl
5fe0726d52 Allow package downgrading
For the "package" task, add "allow_downgrade: true" to support this
scenario.

Because this option is only available starting with `ansible-core>=2.12`
for apt-based systems, we need conditional dispatching here.
2022-03-30 20:06:17 +02:00
adamus1red
e60f04337d Add OS specific variable overrides.
Specifically Alpine official repo uses `docker` rather than `docker-ce` or `docker-ee`
2021-12-31 15:38:08 +00:00
Jeff Geerling
7afdc965a1
Merge pull request #256 from Zempashi/issue-90
Ability to configure Docker daemon options
2021-07-16 17:27:47 -05:00
Julien Girardin
47a271e39a Do not touch docker.json if not option provided 2021-07-16 23:29:40 +02:00
Eric Engstrom
cc1171a9f7
Add check and ignore installation errors in --check mode
- addresses #280
2021-05-19 11:39:47 -05:00
Eric Engstrom
150a7ce135
ignore likely errors if in ansible_check_mode 2021-04-20 11:16:09 -05:00
Jeff Geerling
c59e9df561 Fixes #180: Remove systemd 18.09.0 compatibility shim. 2019-12-16 10:34:30 -06:00
Jeff Geerling
f17b399521 PR #146: Check list length instead of casting to bool. 2019-08-23 12:36:34 -05:00
Dan Bohea
fa759bdc03 Fixes deprecation warnings about evaluating bare variables 2019-06-06 13:40:30 +01:00
Jeff Geerling
d8a4438b3c Fixes #97, Triggers #98, Makes me sad: Fix Docker 18.09.0 startup issue on systemd systems. 2018-11-12 21:14:20 -06:00
Ricky Kwan
0df75aea53
Capitalize 'docker' in the task name
Since most other instances are capitalized
2018-10-08 22:07:15 -04:00
Ricky Kwan
33afdbb0f8 Ability to configure Docker daemon options 2018-10-08 18:53:22 +00:00
George Brighton
470554872f
Remove docker_restart_on_package_change option to correct warning; fixes #79 2018-07-22 22:13:02 +01:00
Jeff Geerling
abd8e3625e Fixes #42: Allow control over docker_service state. 2018-05-18 16:58:50 -05:00
Jeff Geerling
1a05e3ae72 PR #26 follow-up: Docs tidy. 2018-05-06 17:47:34 -05:00
Jeff Geerling
db8265990b
Merge pull request #26 from jamesla/master
Add a docker_users variable
2018-05-06 17:45:53 -05:00
Jeff Geerling
07e05ef00f Fixes #21: DOCKER iptables chain problem when used with geerlingguy.firewall. 2018-05-01 21:18:30 -05:00
Pascal Armand
f3076bad55
'include' for tasks has been deprecated
The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions.
2017-11-27 16:40:27 +01:00
James McCallum
4f1a0f3d91 Change include_task to depreciated include due to what looks like incompatibility with test harness 2017-09-26 05:14:53 +10:00
James McCallum
e68f0cbd16 Fix docker group to append group rather than set it 2017-09-26 05:09:58 +10:00
James McCallum
8c63471573 include docker-users to main 2017-09-03 19:38:50 +10:00
Thibaud Leprêtre
df3fb0a528
Add var to customize docker pkg state
By default var will be `present` to do not break legacy.

Fixes #14
2017-07-20 09:04:08 +02:00
Jeff Geerling
d072a187e4 Fixes #2: Allow for Docker Compose version upgrades. 2017-05-03 10:51:04 -05:00
Jeff Geerling
cdb27879e7 Fixes #1: Add Docker Compose. 2017-02-25 08:48:30 -06:00
Jeff Geerling
da3eb9cf1c Initial commit. 2017-02-23 22:08:18 -06:00