complete pihole role
This commit is contained in:
parent
2bd0ecd211
commit
54544a16f8
@ -6,3 +6,4 @@
|
|||||||
append: true
|
append: true
|
||||||
with_items: "{{ docker_users }}"
|
with_items: "{{ docker_users }}"
|
||||||
register: adduser
|
register: adduser
|
||||||
|
become: yes
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user