1- name: Move foo to bar 2command: mv /path/to/foo /path/to/bar or check first and do a copy if it exist 1- name: stat foo 2stat: path=/path/to/foo 3register: foo_stat 45- name: Move foo to bar 6command: mv /path/to/foo /path/to/bar 7when: foo_stat.stat.exists and, for ansible 2.0+, you can do: 1- name: Copy files from …
Read More1--- 2- hosts: localhost 3become: true 45tasks: 6- name: Create directory 7file: 8path: /tmp/yallo_dir 9state: directory Ref http://docs.ansible.com/ansible/latest/file_module.html
Read More1--- 2- hosts: localhost 3become: true 45tasks: 6- name: Create file 7file: 8path: /tmp/yallo 9state: touch Ref http://docs.ansible.com/ansible/latest/file_module.html An alternative is to use 'lineinfile' module. In my example below, Ubuntu 18.x no longer has the /etc/rc.local but it still works. See below 1## NOTE : …
Read More12[dev_server] 3... 4... 5... 67[devtools_internal] 8... 9... 10... 1112[dev_needed:children] 13dev_server 14devtools_internal
Read MoreMost probably caused by CSS/JS Aggreggation. Disable it by doing the following: Can edit settings.php - add the following: 1$config['system.performance']['css']['preprocess'] = FALSE; 2$config['system.performance']['js']['preprocess'] = FALSE; In Drupal Admin …
Read MoreDrupal 8: Entities neeeds to be deleted before importing error
The following was seen during configuration import (drush cim) 1The import failed due to the following reasons: 2Entities exist of type <em class="placeholder">Shortcut link</em> and <em class="placeholder">Shortcut set</em> <em …
Read More