https://www.jeffgeerling.com/blog/2018/reboot-and-wait-reboot-complete-ansible-playbook and https://stackoverflow.com/questions/29955605/how-to-reboot-centos-7-with-ansible
Read MoreWhen an issue such as "Timeout, waiting for priviledged escalation" happens Run the playbook as follows: 1ansible-playbook -c paramiko ansible/ansible-usermgr.yml -i "cool.example.com, " -vvv suggested in https://github.com/ansible/ansible/issues/14426
Read More1ansible-playbook ansible/web-apache-ubuntu.yml -u root --private-key ~/.ssh/ansible-only.ppk -i "67.217.89.118, " -vvv
Read MoreTest playbook: 1[root@lampp lampp]# cat test.yml 2--- 3- name: LAMPP Dev (MySQL/CentOS7) 4hosts: 127.0.0.1 5connection: local 6become: true 78tasks: 9- name: Get the mysql root default password 10command: awk '/temporary password/ {print $NF}' /var/log/mysqld.log 11register: command_output 1213- set_fact: …
Read More1- name: Display Result In Loop 2debug: msg="Version is {{ result.stdout[:5] }}" See https://stackoverflow.com/questions/32091667/ansible-fetch-first-few-character-of-a-register-value
Read More1root@xxx:/var/log# ufw status 2Status: active 34To Action From 5-- ------ ---- 622 LIMIT Anywhere 780 ALLOW Anywhere 8443 ALLOW Anywhere 9??41908/tcp ALLOW Anywhere 10Anywhere ALLOW 115.85.11.98 1125/tcp ALLOW Anywhere 124444/tcp ALLOW Anywhere 134444/udp ALLOW Anywhere 1422 (v6) LIMIT Anywhere (v6) 1580 (v6) ALLOW …
Read MoreIf you need to merge a remote repo's (e.g. acquia) branch to your local branch: 1git pull acquia master
Read More
If you need less keystrokes in updating your git code specially if it's very minimal change, do the following: 1git clone https://<github_token_here>@github.com/icasimpan/quicktasks-git 2cd quicktasks-git 3git config user.name "Ismael Casimpan" 4git config user.email "ismael.angelo@casimpan.com"
Read More1slow_query_log = 1 2long_query_time = 1 3slow_query_log_file = /var/log/mariadb/slow-query.log 4log_queries_not_using_indexes See details in https://www.cyberciti.biz/faq/how-to-set-and-enable-mariadb-slow-query-log-linux-unix/
Read More