Skip to content

Commit

Permalink
use synchronize module instead of getting key contents
Browse files Browse the repository at this point in the history
Signed-off-by: ahmadali shafiee <mail@ahmadalli.net>
  • Loading branch information
ahmadalli committed Jun 19, 2021
1 parent 4f9bfeb commit e4f5b32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
14 changes: 0 additions & 14 deletions roles/percona/xtradb/configure/tasks/copy-key.yaml

This file was deleted.

7 changes: 4 additions & 3 deletions roles/percona/xtradb/configure/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
- name: set comman facts
ansible.builtin.include_vars: common.yaml
- name: copy keys
include_tasks: copy-key.yaml
synchronize:
src: /var/lib/mysql/{{ item }}
dest: /var/lib/mysql/{{ item }}
delegate_to: "{{ groups[percona_xtradb_cluster_inventory_group_name][0] }}"
loop:
- ca-key.pem
- ca.pem
- server-key.pem
- server-cert.pem
loop_control:
loop_var: _key
- name: write mysqld configuration files
template:
src: mysqld-{{ percona_xtradb_cluster_version }}.conf.j2
Expand Down

0 comments on commit e4f5b32

Please sign in to comment.