ansible-borgbackup/molecule/generic_files/prepare.yml

54 lines
1.1 KiB
YAML
Raw Normal View History

2018-08-30 21:34:04 +00:00
---
- name: prepare debian-based systems
hosts: all:!centos
gather_facts: false
tasks:
- name: install required packages
apt:
name:
- bash
- ca-certificates
- cron
- iputils-ping
- openssh-client
- name: prepare centos-based systems
hosts: centos
gather_facts: false
tasks:
- name: install required packages
yum:
name:
- anacron
- iputils
- openssh-clients
- name: prepare debian-based backupservers
2018-08-30 21:34:04 +00:00
hosts: borgbackup_servers
gather_facts: false
2018-08-30 21:34:04 +00:00
tasks:
- name: install required packages
apt:
name:
- openssh-server
2018-08-30 21:34:04 +00:00
- name: start ssh - Debian Server
command: service ssh start
- name: prepare lamp
hosts: lamp
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