Add default file for root necessary since using venv instead of docker

This commit is contained in:
Laurent Indermuehle 2022-12-09 14:10:35 +01:00
commit 8c5806848f
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
7 changed files with 48 additions and 12 deletions

View file

@ -1,9 +1,9 @@
- set_fact:
db_to_create: testdb1
config_file: "/root/.my1.cnf"
config_file: "{{ playbook_dir }}/.my1.cnf"
fake_port: 9999
fake_host: "blahblah.local"
include_dir: "/root/mycnf.d"
include_dir: "{{ playbook_dir }}/mycnf.d"
- name: Create custom config file
shell: 'echo "[client]" > {{ config_file }}'

View file

@ -24,7 +24,7 @@
dump_file2: "{{ tmp_dir }}/{{ file3 }}"
db_user: "test"
db_user_unsafe_password: "pass!word"
config_file: "/root/.my.cnf"
config_file: "{{ playbook_dir }}/root/.my.cnf"
- name: create custom config file
shell: 'echo "[client]" > {{ config_file }}'