# create backup copies of system files on control node # # https://www.freekb.net/Article?id=759 # https://docs.ansible.com/ansible/latest/collections/ansible/builtin/copy_module.html # https://docs.ansible.com/ansible/latest/collections/ansible/builtin/file_module.html # https://docs.ansible.com/ansible/latest/collections/ansible/builtin/copy_module.html # https://phoenixnap.com/kb/ansible-check-if-file-exists # https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_variables.html#registering-variables # https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_conditionals.html # # https://www.howtouselinux.com/post/ansible-copy-module-examples-to-copy-file-to-remote-server # # # had to run the command like so: # # ansible-playbook 10-playbook-copy-system-files-on-node.yml --ask-become-pass # # -or- # # ansible-playbook 10-playbook-copy-system-files-on-node.yml -K # # -or- # # ansible-playbook 10-playbook-copy-system-files-on-node.yml --become -K #