Since Ubuntu is using Upstart and there's some problems with service module, workaround with the 'restart' command.

This commit is contained in:
Emiliano Vavassori 2015-09-14 03:45:35 +02:00
parent bb2a98892f
commit 1b21908dc6
2 changed files with 6 additions and 9 deletions

View File

@ -26,7 +26,6 @@
state: present
- name: Restarting NTP service
service:
name: ntp
state: restarted
shell: restart ntp
sudo: yes
when: cfg_ntp|changed

View File

@ -16,15 +16,13 @@
replace: '@{HOMEDIRS}=/home/ /home/{{ domainshort }}/'
- name: SAMBA restart
service:
name: smbd
state: restarted
shell: restart smbd
sudo: yes
when: cfg_samba|changed
- name: Winbind restart
service:
name: winbind
state: restarted
service: restart winbind
sudo: yes
when: cfg_samba|changed
- name: Creating home base