mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-05 02:28:06 +01:00
refactored and solved bugs in restart docker role
This commit is contained in:
parent
85816d702a
commit
8481b3ddfe
@ -9,29 +9,25 @@
|
||||
copy:
|
||||
src: restart-docker.py
|
||||
dest: "{{restart_docker_script}}"
|
||||
when: run_once_restart_docker is not defined
|
||||
|
||||
- name: configure restart-docker.cymais.service
|
||||
template:
|
||||
src: restart-docker.service.j2
|
||||
dest: /etc/systemd/system/restart-docker.cymais.service
|
||||
notify: "reload restart-docker.cymais.service"
|
||||
when: run_once_restart_docker is not defined
|
||||
|
||||
- name: set service_name to the name of the current role
|
||||
set_fact:
|
||||
service_name: "{{ role_name }}"
|
||||
when: run_once_restart_docker is not defined
|
||||
when: run_once_restart_docker is not defined
|
||||
|
||||
- name: "include role for systemd-timer for {{service_name}}"
|
||||
include_role:
|
||||
name: systemd-timer
|
||||
vars:
|
||||
on_calendar: "{{on_calendar_restart_docker}}"
|
||||
when: run_once_restart_docker is not defined
|
||||
- name: "include role for systemd-timer for {{service_name}}"
|
||||
include_role:
|
||||
name: systemd-timer
|
||||
vars:
|
||||
on_calendar: "{{on_calendar_restart_docker}}"
|
||||
|
||||
- name: run the restart_docker_volumes tasks once
|
||||
set_fact:
|
||||
run_once_restart_docker: true
|
||||
|
||||
- name: run the restart_docker_volumes tasks once
|
||||
set_fact:
|
||||
run_once_restart_docker: true
|
||||
when: run_once_restart_docker is not defined
|
Loading…
Reference in New Issue
Block a user