Skip to content

Commit

Permalink
Add variable which allows skipping labels task
Browse files Browse the repository at this point in the history
  • Loading branch information
yukiisbored committed May 22, 2020
1 parent 579f802 commit 1f34ff7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ Listen port for the Swarm raft API.
skip_engine: false
skip_cli: false
skip_swarm: false
skip_swarm_labels: false
skip_group: false
skip_docker_py: false
skip_docker_compose: false
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ skip_containerd: false # if true, skips the setup of containerd
skip_engine: false # if true, skips the docker engine installation
skip_cli: false # if true, skips the docker cli installation
skip_swarm: false # if true, skips the swarm setup
skip_swarm_labels: false # if true, skips the swarm labels assignment
skip_group: false # if true, does not add the docker_admin_users to the docker_group_name
skip_docker_py: false # if true, skips the installation of docker-py
skip_docker_compose: false # if true, skips the installation of docker-compose
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
- block:
- include_tasks: setup-swarm-cluster.yml
- include_tasks: setup-swarm-labels.yml
when: not skip_swarm_labels
when: not skip_swarm

# Adds the Docker admin users to the Docker group
Expand Down

0 comments on commit 1f34ff7

Please sign in to comment.