You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
374 B
13 lines
374 B
- name: initialize mysql connection on ansible controller
|
|
block:
|
|
- name: get ansible controller os distribution
|
|
setup:
|
|
gather_subset:
|
|
- distribution
|
|
|
|
|
|
- name: install pymysql
|
|
package:
|
|
name: "{{ { 'alpine': 'py3-pymysql', 'debian': 'python3-pymysql' }[ansible_distribution | lower] | d('pymysql') }}"
|
|
|
|
delegate_to: localhost
|
|
|