hm. adding a become: yes makes the TASK go through, so the hint was good, thx.
However the line is not being replaced.
can it be the regexp: 'MYHOME=/opt/db/mysql/mariadb-10.0.23-linux-x86_64’ does not identify the line to be changed correctly?
that would explain that behavior somewhat.
You have a space on either end of your “path:” parameter. Change
path: " {{ mariadb_base }}/bin/.myenv "
to
path: “{{ mariadb_base }}/bin/.myenv”
and see if that works better.
You have a space on either end of your “path:” parameter. Change
path: " {{ mariadb_base }}/bin/.myenv "
to
path: “{{ mariadb_base }}/bin/.myenv”
and see if that works better.