ansible-borgbackup/molecule/generic_files/prepare.yml

30 lines
730 B
YAML
Raw Normal View History

2018-08-30 21:34:04 +00:00
---
- name: prepare servers - Debian only
hosts: borgbackup_servers
gather_facts: true
tasks:
- name: start ssh - Debian Server
command: service ssh start
# note: https://forums.docker.com/t/any-simple-and-safe-way-to-start-services-on-centos7-systemd/5695/8
# needs to be implemented
# - name: start sshd
# command: service sshd start
- name: prepare all
hosts: all:!borgbackup_servers:!centos
2018-08-30 21:34:04 +00:00
tasks:
- name: Install required packages
apt:
2019-03-10 21:49:12 +00:00
name:
- apache2
- mysql-server
- automysqlbackup
state: present
notify: start mysql
handlers:
- name: start mysql
service:
name: mysql
state: started
2019-03-10 21:58:30 +00:00
enabled: true