main.yml 712 B

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. - name: Hardening RIPE NCC Atlas SW probe service
  3. become: true
  4. template:
  5. src: templates/ripe-atlas.service.j2
  6. dest: "/lib/systemd/system/ripe-atlas.service"
  7. mode: 0644
  8. - name: Reload RIPE NCC Atlas SW probe service
  9. become: true
  10. systemd:
  11. daemon_reload: true
  12. - name: Enable RIPE Atlas
  13. become: true
  14. systemd:
  15. name: ripe-atlas.service
  16. state: restarted
  17. enabled: true
  18. masked: false
  19. - name: Getting key
  20. become: true
  21. command:
  22. cmd: cat /etc/ripe-atlas/probe_key.pub
  23. register: sshkey
  24. - name: "IMPORTANT: Add this key to your ripe atlas account!!!"
  25. debug:
  26. msg: "{{ sshkey.stdout }}"
  27. - name: Pause for adding key
  28. pause:
  29. prompt: "Enter to continue."