da38af7d2d
These are a set of tasks to help facilitate backup and restore operations. This includes preparing an external backup host, configuring SSH for rsync, and some initial tasks for backing up and restoring a containerized galera cluster. This should lay the foundation for further backup and restore tasks. Change-Id: If5c11956291205cd04a6ef9bdb3d221fcd970f24
12 lines
460 B
YAML
12 lines
460 B
YAML
- name: Remove Backup Host authorized key on the OpenStack nodes
|
|
authorized_key:
|
|
user: root
|
|
state: absent
|
|
key: "{{ hostvars[groups[backup_server_hostgroup][0]]['backup_ssh_key']['content'] | b64decode }}"
|
|
|
|
- name: Remove temporary SSH config for each OpenStack node on Backup Host
|
|
file:
|
|
path: /var/tmp/{{ ansible_hostname }}_config
|
|
state: absent
|
|
delegate_to: "{{ hostvars[groups[backup_server_hostgroup][0]]['inventory_hostname'] }}"
|