Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. ---
  2. - name: Install Python MySQLdb
  3. yum: name=MySQL-python state=latest
  4.  
  5. - name: Create the Drupal database
  6. mysql_db: db={{ db_name }} state=present
  7.  
  8. - name: Create the Drupal user
  9. mysql_user: >
  10. name={{ db_user }}
  11. password={{ db_password }}
  12. priv={{ db_name }}.*:ALL
  13. host=localhost
  14.  
  15. ---
  16.  
  17. - name: Install MySQL server
  18. yum: name=mariadb-server state=latest
  19.  
  20. - name: Install php apache modules
  21. yum: name=php-gd state=latest
  22.  
  23. - name: Install php apache modules
  24. yum: name=php-ldap state=latest
  25.  
  26. - name: Install php apache modules
  27. yum: name=php-odbc state=latest
  28.  
  29. - name: Install php apache modules
  30. yum: name=php-pear state=latest
  31.  
  32. - name: Install php apache modules
  33. yum: name=php-xml state=latest
  34.  
  35. - name: Install php apache modules
  36. yum: name=php-xmlrpc state=latest
  37.  
  38. - name: Install php apache modules
  39. yum: name=php-mbstring state=latest
  40.  
  41. - name: Install php apache modules
  42. yum: name=php-snmp state=latest
  43.  
  44. - name: Install php apache modules
  45. yum: name=php-soap state=latest
  46.  
  47. - name: Install php apache modules
  48. yum: name=curl state=latest
  49.  
  50. - name: Install php apache modules
  51. yum: name=curl-devel state=latest
  52.  
  53. - name: Install MySQL module for PHP
  54. yum: name=php-mysql state=latest
  55.  
  56. TASK: [mysql | Install MySQL server] ******************************************
  57. ok: [ansiblev1]
  58.  
  59. TASK: [mysql | Install php apache modules] ************************************
  60. ok: [ansiblev1]
  61.  
  62. TASK: [mysql | Install php apache modules] ************************************
  63. changed: [ansiblev1]
  64.  
  65. TASK: [mysql | Install php apache modules] ************************************
  66. changed: [ansiblev1]
  67.  
  68. TASK: [mysql | Install php apache modules] ************************************
  69. changed: [ansiblev1]
  70.  
  71. TASK: [mysql | Install php apache modules] ************************************
  72. ok: [ansiblev1]
  73.  
  74. TASK: [mysql | Install php apache modules] ************************************
  75. changed: [ansiblev1]
  76.  
  77. TASK: [mysql | Install php apache modules] ************************************
  78. changed: [ansiblev1]
  79.  
  80. TASK: [mysql | Install php apache modules] ************************************
  81. changed: [ansiblev1]
  82.  
  83. TASK: [mysql | Install php apache modules] ************************************
  84. changed: [ansiblev1]
  85.  
  86. TASK: [mysql | Install php apache modules] ************************************
  87. ok: [ansiblev1]
  88.  
  89. TASK: [mysql | Install php apache modules] ************************************
  90. changed: [ansiblev1]
  91.  
  92. TASK: [mysql | Install MySQL module for PHP] **********************************
  93. changed: [ansiblev1]
  94.  
  95. TASK: [mysql | Install Python MySQLdb] ****************************************
  96. changed: [ansiblev1]
  97.  
  98. TASK: [mysql | Create the Drupal database] ************************************
  99. failed: [ansiblev1] => {"failed": true}
  100. msg: unable to connect, check login_user and login_password are correct, or alternatively check ~/.my.cnf contains credentials
  101.  
  102. FATAL: all hosts have already failed -- aborting
  103.  
  104. PLAY RECAP ********************************************************************
  105. to retry, use: --limit @/home/bbusari/site.retry
  106.  
  107. ansiblev1 : ok=18 changed=10 unreachable=0 failed=1
  108.  
  109. - name: Set MariaDB to start now and on boot
  110. service: name=mysql state=started enabled=yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement