- restart "apache2"
when: php5_apcu_is_available.rc != 0
-- name: ensure service "apache2" is enabled and running
+- name: ensure service "apache2" is enabled and started
tags:
- apache
- services
service: >
enabled=yes
name=apache2
- state=running
+ state=started
notify:
- restart "apache2"
-- name: ensure service "apache2" is enabled and running
+- name: ensure service "apache2" is enabled and started
tags:
- apache
- services
service: >
enabled=yes
name=apache2
- state=running
+ state=started
name=autofs
state=installed
-- name: ensure service "autofs" is enabled and running
+- name: ensure service "autofs" is enabled and started
tags:
- autofs
- services
service: >
enabled=yes
name=autofs
- state=running
+ state=started
- packages
- systemd
-- name: ensure "check_mk.socket" is enabled and running
+- name: ensure "check_mk.socket" is enabled and started
tags:
- check_mk
- monitoring
service: >
enabled=yes
name=check_mk.socket
- state=running
+ state=started
when: "ansible_distribution_major_version >= '8'"
- mysqltuner
- python-mysqldb
-- name: ensure service "mysql" is enabled and running
+- name: ensure service "mysql" is enabled and started
tags:
- services
- mysql
service: >
enabled=yes
name=mysql
- state=running
+ state=started
- name: setup MySQL "ansible" account
tags:
name=nfs-common
state=installed
-- name: ensure service "nfs-common" is enabled and running
+- name: ensure service "nfs-common" is enabled and started
tags:
- nfs
- services
service: >
enabled=yes
name=nfs-common
- state=running
+ state=started
- ntpdate
- ntp
-- name: ensure service "ntp" is enabled and running
+- name: ensure service "ntp" is enabled and started
tags:
- ntpd
- services
service: >
enabled=yes
name=ntp
- state=running
+ state=started
notify:
- restart "postfix"
-- name: ensure service "postfix" is enabled and running
+- name: ensure service "postfix" is enabled and started
tags:
- mail
- postfix
service: >
enabled=yes
name=postfix
- state=running
+ state=started
- ssh
when: "ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'"
-- name: ensure service "ssh" is enabled and running
+- name: ensure service "ssh" is enabled and started
tags:
- services
- sshd
service: >
enabled=yes
name=ssh
- state=running
+ state=started
when: "ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'"
-- name: ensure service "sshd" is enabled and running
+- name: ensure service "sshd" is enabled and started
tags:
- services
- sshd
service: >
enabled=yes
name=sshd
- state=running
+ state=started
when: "ansible_distribution != 'Debian' and ansible_distribution != 'Ubuntu'"
- restart "zabbix-agent"
when: (zabbix_agent_server != "" or zabbix_agent_server_active != "")
-- name: ensure service "zabbix-agent" is enabled and running
+- name: ensure service "zabbix-agent" is enabled and started
tags:
- monitoring
- services
service: >
enabled=yes
name=zabbix-agent
- state=running
+ state=started
when: (zabbix_agent_server != "" or zabbix_agent_server_active != "")