Skip to content
Snippets Groups Projects
Commit 573f18c3 authored by Alexander Weidinger's avatar Alexander Weidinger
Browse files

cmd.run: use 'runas' instead of 'user'

parent 5274140a
Branches
Tags
No related merge requests found
......@@ -84,7 +84,7 @@ mysql_install_datadir:
{% else %}
- name: mysql_install_db --user=mysql --basedir=/usr --datadir={{ mysql_datadir }}
{% endif %}
- user: root
- runas: root
- creates: {{ mysql_datadir }}/mysql/user.frm
- env:
- TMPDIR: '/tmp'
......@@ -110,7 +110,7 @@ mysqld-packages:
mysql_initialize:
cmd.run:
- name: mysqld --initialize-insecure --user=mysql --basedir=/usr --datadir={{ mysql_datadir }}
- user: root
- runas: root
- creates: {{ mysql_datadir}}/mysql/
- require:
- pkg: {{ mysql.serverpkg }}
......@@ -132,7 +132,7 @@ mysql_initialize:
mysql_initialize:
cmd.run:
- name: emerge --config {{ mysql.serverpkg }}
- user: root
- runas: root
- creates: {{ mysql_datadir}}/mysql/
- require:
- pkg: {{ mysql.serverpkg }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment