Files
@ 5bc6b7fb4cb5
Branch filter:
Location: majic-ansible-roles/roles/backup_server/playbook.yml - annotation
5bc6b7fb4cb5
1.2 KiB
text/x-yaml
MAR-127: Implemented time synchronisation set-up in common role:
- Added new parameter ntp_servers for defining list of servers to use.
- Deploy ntp and ntpdate packages and relevant configuration files.
- Updated tests, fixing expected restriction lines in ntp
configuration, and adding an additional test to make sure the ntp
daemon has reread its configuration.
- Added new parameter ntp_servers for defining list of servers to use.
- Deploy ntp and ntpdate packages and relevant configuration files.
- Updated tests, fixing expected restriction lines in ntp
configuration, and adding an additional test to make sure the ntp
daemon has reread its configuration.
ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 8f33126c7555 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 ec2d038c9332 | ---
- hosts: all
tasks:
- name: Update all caches to avoid errors due to missing remote archives
apt:
update_cache: yes
changed_when: False
- hosts: parameters-mandatory
roles:
- role: backup_server
backup_host_ssh_private_keys:
dsa: "{{ lookup('file', 'tests/data/ssh/server_dsa') }}"
rsa: "{{ lookup('file', 'tests/data/ssh/server_rsa') }}"
ed25519: "{{ lookup('file', 'tests/data/ssh/server_ed25519') }}"
ecdsa: "{{ lookup('file', 'tests/data/ssh/server_ecdsa') }}"
- hosts: parameters-optional
roles:
- role: backup_server
backup_host_ssh_private_keys:
dsa: "{{ lookup('file', 'tests/data/ssh/server_dsa') }}"
rsa: "{{ lookup('file', 'tests/data/ssh/server_rsa') }}"
ed25519: "{{ lookup('file', 'tests/data/ssh/server_ed25519') }}"
ecdsa: "{{ lookup('file', 'tests/data/ssh/server_ecdsa') }}"
backup_clients:
- server: client1.backup
ip: 10.31.127.1
public_key: "{{ lookup('file', 'tests/data/ssh/client1.pub') }}"
- server: client2-backup
uid: 5001
ip: 10.31.127.3
public_key: "{{ lookup('file', 'tests/data/ssh/client2.pub') }}"
|