This is my first post here, sorry if it is the wrong section, if so just tell me and i will ask in another section.
I need to be able to restart my zimbra services throug an ansible task:
The task is this:
Code: Select all
- name: 'Restart Zimbra'
become: true
become_user: zimbra
command: './zmcontrol restart'
args:
chdir: '/opt/zimbra/bin/'
if i run the same command ( even more than one time ) manually it works flawlessy.Host myhost.com
Starting zmconfigd...Done.
Starting mailbox...Done.
Starting snmp...Failed.
creating /opt/zimbra/conf/snmpd.conf
creating /opt/zimbra/conf/swatchrc
Starting swatch...failed.
Starting stats...Done.
Starting zimbra webapp...Done.
Starting zimbraAdmin webapp...Done.
Starting zimlet webapp...Done.
Do some of you have some ideas of why this happens ?
I tried searching in the /var/log/zimbra.log but it shows no errors
Thank You
my zimbra version is Release 8.7.9_GA_1794.RHEL7_64_20170505054622 RHEL7_64 NETWORK edition
my OS is centOS 7