Skip to content

Commit

Permalink
Remove enable_docker parameter (#503)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Oct 3, 2024
1 parent 5e735b3 commit bee9c20
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 45 deletions.
14 changes: 0 additions & 14 deletions playbooks/generic/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
---
- name: Group hosts based on configuration
hosts: "{{ hosts_default_group|default('generic') }}"
gather_facts: false

tasks:
- name: Group hosts based on enabled services
ansible.builtin.group_by:
key: "{{ item }}"
with_items:
- enable_docker_{{ enable_docker | default('true') | bool }}
tags: always
changed_when: false

- name: Apply role docker_compose
hosts:
- "{{ hosts_docker|default('docker') }}"
- "&enable_docker_True"
serial: "{{ osism_serial['docker_compose']|default('0') }}"
strategy: "{{ osism_strategy|default('linear') }}"

Expand Down
16 changes: 0 additions & 16 deletions playbooks/generic/docker-login.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
---
- name: Group hosts based on configuration
hosts: "{{ hosts_default_group|default('generic') }}"
gather_facts: false

tasks:
- name: Group hosts based on enabled services
ansible.builtin.group_by:
key: "{{ item }}"
with_items:
- enable_docker_{{ enable_docker | default('true') | bool }}
- enable_docker_login_{{ enable_docker_login | default('true') | bool }}
tags: always
changed_when: false

- name: Apply role docker_login
hosts:
- "{{ hosts_docker|default('docker') }}"
- "&enable_docker_True"
- "&enable_docker_login_True"
serial: "{{ osism_serial['docker_login']|default('0') }}"
strategy: "{{ osism_strategy|default('linear') }}"

Expand Down
15 changes: 0 additions & 15 deletions playbooks/generic/docker.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
---
- name: Group hosts based on configuration
hosts: "{{ hosts_default_group|default('generic') }}"
gather_facts: false

tasks:
- name: Group hosts based on enabled services
ansible.builtin.group_by:
key: "{{ item }}"
with_items:
- enable_docker_{{ enable_docker | default('true') | bool }}
tags: always
changed_when: false

- name: Apply role docker
hosts:
- "{{ hosts_docker|default('docker') }}"
- "&enable_docker_True"
serial: "{{ osism_serial['docker']|default('1') }}"
strategy: "{{ osism_strategy|default('linear') }}"

Expand All @@ -25,7 +11,6 @@
- name: Apply role docker_compose
hosts:
- "{{ hosts_docker|default('docker') }}"
- "&enable_docker_True"
serial: "{{ osism_serial['docker_compose']|default('0') }}"

roles:
Expand Down

0 comments on commit bee9c20

Please sign in to comment.