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 state: present
- name: Restarting NTP service - name: Restarting NTP service
service: shell: restart ntp
name: ntp sudo: yes
state: restarted
when: cfg_ntp|changed when: cfg_ntp|changed

View File

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