Skip to content
Snippets Groups Projects
Select Git revision
  • 6b724c8fce31d5e70eae4eacc1a7d32b3e73b6a7
  • noblogs default
  • noblogs-5.7.1
  • upstream
  • noblogs-5.7
  • noblogs-5.6new
  • upstream5.5.1
  • noblogs28dic
  • upstream28dic
  • noblogs-5.5.1
  • noblogs-5.4.2
  • noblogs-5.4_seconda
  • noblogs-5.4
  • noblogs-7c
  • wp5.2.3p3
  • mergedbconf
  • noblogs-5.7.1
  • noblogs.5.7.0p1
  • noblogs-5.7.0
  • noblogs-5.6p3
  • noblogs5.6p2
  • noblogs-5.6p1
  • noblogs-5.6
  • noblogs-5.4.2p1
  • noblogs-5.4.2
  • noblogs-5.4.1
  • noblogs-5.4
  • noblogs-p5.4
  • noblogs-5.3.2p2
  • noblogs-5.3.2p1
  • noblogs-5.3.2
  • noblogs-5.3
  • noblogs-5.2.3p4
  • noblogs-5.2.3p3
  • noblogs-5.2.3p2
  • noblogs-5.2.3p1
36 results

comment.js

Blame
  • ansible-buster.patch 1.24 KiB
    Patch for the ansible version in Debian stable (buster) 2.7.7+dfsg-1
    that fixes the issues with MySQL user permissions and recent MariaDB
    packages.
    
    To apply, run:
    
        sudo patch -p0 -d /usr/lib/python3/dist-packages/ansible < ansible-buster.patch
    
    --- modules/database/mysql/mysql_user.py.orig	2019-02-18 16:21:54.000000000 +0000
    +++ modules/database/mysql/mysql_user.py	2020-08-07 23:02:15.152716471 +0100
    @@ -427,14 +427,14 @@
                 return x
     
         for grant in grants:
    -        res = re.match("GRANT (.+) ON (.+) TO '.*'@'.*'( IDENTIFIED BY PASSWORD '.+')? ?(.*)", grant[0])
    +        res = re.match("""GRANT (.+) ON (.+) TO (['`"]).*\\3@(['`"]).*\\4( IDENTIFIED BY PASSWORD (['`"]).+\\6)? ?(.*)""", grant[0])
             if res is None:
                 raise InvalidPrivsError('unable to parse the MySQL grant string: %s' % grant[0])
             privileges = res.group(1).split(", ")
             privileges = [pick(x) for x in privileges]
    -        if "WITH GRANT OPTION" in res.group(4):
    +        if "WITH GRANT OPTION" in res.group(7):
                 privileges.append('GRANT')
    -        if "REQUIRE SSL" in res.group(4):
    +        if "REQUIRE SSL" in res.group(7):
                 privileges.append('REQUIRESSL')
             db = res.group(2)
             output[db] = privileges