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
|
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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user