소스 검색

Fix: Restrict a Debian-specific task to Debian OS.

Since commit b9753635 the task 'Ensure docker-ce is installed (Debian)' fails with an error on CentOS although it should not even run on this OS.
pull/311/head
Hardy Erlinger 6 년 전
부모
커밋
eb7391d373
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      roles/matrix-base/tasks/setup_server_base.yml

+ 1
- 1
roles/matrix-base/tasks/setup_server_base.yml 파일 보기

@@ -75,7 +75,7 @@
- docker-ce
state: latest
update_cache: yes
when: "'docker.io' not in ansible_facts.packages"
when: ansible_os_family == 'Debian' and 'docker.io' not in ansible_facts.packages

- name: Ensure Docker is started and autoruns
service:


불러오는 중...
취소
저장