{"action":"created","issue":{"url":"https://api.github.com/repos/cucyberdefense/defense-hackpack/issues/17","labels_url":"https://api.github.com/repos/cucyberdefense/defense-hackpack/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/cucyberdefense/defense-hackpack/issues/17/comments","events_url":"https://api.github.com/repos/cucyberdefense/defense-hackpack/issues/17/events","html_url":"https://github.com/cucyberdefense/defense-hackpack/issues/17","id":103625209,"number":17,"title":"Backups for Linux","user":{"login":"robertu94","id":7604212,"avatar_url":"https://avatars.githubusercontent.com/u/7604212?v=3","gravatar_id":"","url":"https://api.github.com/users/robertu94","html_url":"https://github.com/robertu94","followers_url":"https://api.github.com/users/robertu94/followers","following_url":"https://api.github.com/users/robertu94/following{/other_user}","gists_url":"https://api.github.com/users/robertu94/gists{/gist_id}","starred_url":"https://api.github.com/users/robertu94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertu94/subscriptions","organizations_url":"https://api.github.com/users/robertu94/orgs","repos_url":"https://api.github.com/users/robertu94/repos","events_url":"https://api.github.com/users/robertu94/events{/privacy}","received_events_url":"https://api.github.com/users/robertu94/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cucyberdefense/defense-hackpack/labels/backups","name":"backups","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"fkmclane","id":298109,"avatar_url":"https://avatars.githubusercontent.com/u/298109?v=3","gravatar_id":"","url":"https://api.github.com/users/fkmclane","html_url":"https://github.com/fkmclane","followers_url":"https://api.github.com/users/fkmclane/followers","following_url":"https://api.github.com/users/fkmclane/following{/other_user}","gists_url":"https://api.github.com/users/fkmclane/gists{/gist_id}","starred_url":"https://api.github.com/users/fkmclane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fkmclane/subscriptions","organizations_url":"https://api.github.com/users/fkmclane/orgs","repos_url":"https://api.github.com/users/fkmclane/repos","events_url":"https://api.github.com/users/fkmclane/events{/privacy}","received_events_url":"https://api.github.com/users/fkmclane/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-08-28T01:06:24Z","updated_at":"2016-01-22T17:29:23Z","closed_at":null,"body":"Examples of how to conduct remote, periodic, automatic, incremental and full backups."},"comment":{"url":"https://api.github.com/repos/cucyberdefense/defense-hackpack/issues/comments/173985927","html_url":"https://github.com/cucyberdefense/defense-hackpack/issues/17#issuecomment-173985927","issue_url":"https://api.github.com/repos/cucyberdefense/defense-hackpack/issues/17","id":173985927,"user":{"login":"robertu94","id":7604212,"avatar_url":"https://avatars.githubusercontent.com/u/7604212?v=3","gravatar_id":"","url":"https://api.github.com/users/robertu94","html_url":"https://github.com/robertu94","followers_url":"https://api.github.com/users/robertu94/followers","following_url":"https://api.github.com/users/robertu94/following{/other_user}","gists_url":"https://api.github.com/users/robertu94/gists{/gist_id}","starred_url":"https://api.github.com/users/robertu94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertu94/subscriptions","organizations_url":"https://api.github.com/users/robertu94/orgs","repos_url":"https://api.github.com/users/robertu94/repos","events_url":"https://api.github.com/users/robertu94/events{/privacy}","received_events_url":"https://api.github.com/users/robertu94/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T17:29:23Z","updated_at":"2016-01-22T17:29:23Z","body":"```yaml\r\n---\r\n- name: group\r\n  group: name=admin state=present\r\n- name: create user for backups\r\n  user: name=flynn groups=admin ssh_key_bits=2048 ssh_key_file=.ssh/id_rsa state=present\r\n- name: send the newly created key\r\n  authorized_key: user=flynn key key=\"{{ lookup('file', '/home/flynn/.ssh/id_rsa.pub'}}\"\r\n- name: Give admin to root privileges while running rsnapshot via sudo\r\n  lineinfile: dest=/etc/sudoers after=\"root ALL=(ALL) ALL\" line=\"%admin ALL=(ALL) /usr/local/bin/rsnapshot\"\r\n```\r\n\r\nSomething like this ought to to get you started. **disclaimer** I hadn't tested this play yet so use at your own risk."}}