Since Ubuntu is using Upstart and there's some problems with service module, workaround with the 'restart' command.
This commit is contained in:
parent
bb2a98892f
commit
1b21908dc6
@ -26,7 +26,6 @@
|
||||
state: present
|
||||
|
||||
- name: Restarting NTP service
|
||||
service:
|
||||
name: ntp
|
||||
state: restarted
|
||||
shell: restart ntp
|
||||
sudo: yes
|
||||
when: cfg_ntp|changed
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user