There are a lot of ways on doing it. One of it is as follows: 1tasks: 2- name: "shut down CentOS 6 and Debian 7 systems" 3command: /sbin/shutdown -t now 4when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "6") or …
Read More1- name: Download drush phar file (8.3.0) 2become: yes 3get_url: 4url: https://github.com/drush-ops/drush/releases/download/8.3.0/drush.phar 5dest: /usr/local/bin 6mode: +x 7checksum: sha256:ddfe6d529e44e98c2cf74c143c1fcdf67c927d6f9a5eb2ae10fbe47ef9b8eaf0 8group: root 9owner: root See get_url module in …
Read MoreSubmodules is quite a pain to manage. To make it easy, just use this command: 1git clone --recursive <repo_full_path> Failure to use --recursive would mean using a lot of commands later. See detailed git submodules commands in https://www.vogella.com/tutorials/GitSubmodules/article.html
Read MoreSolr is already up and accessible from browser and within the drupal server but when connected through proper drupal admin settings, it says cannot connect to server. Solution is to create solr core. See https://ismael.casimpan.com/quicktasks-solr/post/create-solr-core-with-config/ or …
Read MoreGet the commit-hash (e.g. of last commit) 1git log -1 Show the files changed only in commit 1git show --stat <commit-hash> See details in https://stackoverflow.com/questions/424071/how-to-list-all-the-files-in-a-commit
Read MoreMariaDB seems to have this issue and can't start as shown in /var/log/mariadb/mariadb.log 12020-02-19 15:18:49 0 [ERROR] mysqld: Can't create/write to file '/var/run/mariadb/mariadb.pid' (Errcode: 2 "No such file or directory") I was able to fix one instance of this issue by doing: 1sudo mkdir …
Read MoreWas seeing some session issue as follows: 1[me@example default]$ cd /var/www/example.com/docroot 2[me@example docroot]$ drush st 34session_set_save_handler(): Cannot change save handler when headers already sent session.inc:242 [warning] 5session_id(): Cannot change session id when headers already sent session.inc:266 …
Read MoreIf you're seeing an error in your log: 1PHP Fatal error: Maximum execution time of 240 seconds exceeded in </path/to/any_file.php> on line xx Then you may need to edit your php.ini and update the variable 'maximum_execution_time'. Don't forget to restart your web service. If issue persist, then overrides is being …
Read MoreUse the query below and replace "database_name" with the correct db name. 1SELECT table_name AS "Table", 2ROUND(((data_length + index_length) / 1024 / 1024), 2) AS "Size (MB)" 3FROM information_schema.TABLES 4WHERE table_schema = "database_name" 5ORDER BY (data_length + index_length) …
Read MoreAt the end of composer install, the following was shown: 1In UpdateDBCommands.php line 109: 23Drupal removed its automatic entity-updates API in 8.7. See https://www.dru 4pal.org/node/3034742. 567entity:updates [--cache-clear [CACHE-CLEAR]] [--no-cache-clear] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] …
Read More