Skip to content
Snippets Groups Projects
main.yml 541 B
Newer Older
  • Learn to ignore specific revisions
  • ---
    # file: roles/mysql-client/tasks/main.yml
    
    - name: "MySQL Client | Install required packages"
      apt: pkg={{item}} state=installed
      with_items:
        - mysql-client
        - mytop
    
    - name: "MySQL Client | Config for easy access for admins"
      template:
        src=admin_my_cnf
        dest=/home/{{ item }}/.my.cnf
        owner={{ item }}
        group=root
        mode=644
    
      with_items: '{{ admins }}'
    
    
    - name: "MySQL Client | Config for easy access for root"
      template:
        src=admin_my_cnf
        dest=/root/.my.cnf
        owner=root
        group=root
        mode=644