complete pihole role

This commit is contained in:
vincent 2020-07-05 12:12:10 +02:00
parent 2bd0ecd211
commit 54544a16f8
2 changed files with 4 additions and 0 deletions

View File

@ -6,3 +6,4 @@
append: true append: true
with_items: "{{ docker_users }}" with_items: "{{ docker_users }}"
register: adduser register: adduser
become: yes

View File

@ -6,13 +6,16 @@
- docker-compose - docker-compose
state: present state: present
notify: restart docker notify: restart docker
become: true
- name: Ensure Docker is started and enabled at boot. - name: Ensure Docker is started and enabled at boot.
service: service:
name: docker name: docker
state: "{{ docker_service_state }}" state: "{{ docker_service_state }}"
enabled: "{{ docker_service_enabled }}" enabled: "{{ docker_service_enabled }}"
become: true
- include_tasks: docker-users.yml - include_tasks: docker-users.yml
when: docker_users | length > 0 when: docker_users | length > 0