Skip to content
Snippets Groups Projects
Commit 74b34ef4 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#85 Linting

parent 375555e1
No related branches found
No related tags found
No related merge requests found
mysql_root_password: 'root'
mysql_root_password: root
---
# file: roles/mysql-client/tasks/main.yml
- name: "MySQL Client Role"
set_fact: role_mysql_client_started=true
tags: 'always'
- name: MySQL Client Role
set_fact:
role_mysql_client_started: yes
tags:
- always
- block:
- name: "MySQL Client | Install required packages"
- name: MySQL Client | Install required packages
apt: pkg={{ packages }} state=present
vars:
packages:
- mysql-client
- mytop
- name: "MySQL Client | Config for easy access for admins"
- name: MySQL Client | Config for easy access for admins
template:
src=admin_my_cnf
dest=/home/{{ item }}/.my.cnf
......@@ -23,7 +25,7 @@
mode='644'
with_items: '{{ admins }}'
- name: "MySQL Client | Config for easy access for root"
- name: MySQL Client | Config for easy access for root
template:
src=admin_my_cnf
dest=/root/.my.cnf
......@@ -31,4 +33,4 @@
group=root
mode='644'
when: '"mysql-client" not in excluded_roles'
when: not excluded_roles or "mysql-client" not in excluded_roles
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment