Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system task does not check if docker group exists #3

Open
mofrisch opened this issue Jan 12, 2024 · 2 comments
Open

system task does not check if docker group exists #3

mofrisch opened this issue Jan 12, 2024 · 2 comments

Comments

@mofrisch
Copy link

the following should be added before task "Create docker directory"

  • name: Ensure group "docker" exists
    group:
    name: docker
    state: present
@andi-blafasl
Copy link

I'm also facing the problem with the docker directory. I think creating the directory before installing docker with the role from 'geerlingguy.docker' is wrong.
The initial-setup.yml is stoping after the error with the missing group and docker is never installed on my test system.
Fixing this in a proper way would be nice.

@diankov
Copy link

diankov commented Feb 23, 2024

A added a task to create the group docker right before the task which creates the directory:

# roles/system/tasks/main.yml
- name: Create docker group
  group:
    name: docker
    state: present
  become: true
  become_method: sudo
  tags: [ always ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants