Fedora Remix maintained by the Rochester Institute of Technology (RIT) Linux Users Group, targeted at users new to Linux and RIT students, faculty, and staff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.7 KiB

  1. ---
  2. - hosts: 127.0.0.1
  3. tasks:
  4. - name: Install packages
  5. dnf: name="{{ item }}" state=present
  6. become: true
  7. with_items:
  8. - nginx
  9. - jenkins
  10. - mock
  11. - git
  12. - openssh-server
  13. - pungi
  14. - rpm-sign
  15. - certbot
  16. - fedora-packager
  17. - fedpkg
  18. - fail2ban
  19. - fail2ban-server
  20. - iptables
  21. - dnf-automatic
  22. - mosh
  23. - vim
  24. # need to get anaconda install class for TigerOS possibly
  25. #- letsencrypt
  26. - name: Allow HTTPS (nginx)
  27. firewalld:
  28. service: https
  29. permanent: true
  30. state: enabled
  31. - name: Allow HTTP (nginx)
  32. firewalld:
  33. service: http
  34. permanent: true
  35. state: enabled
  36. - name: Allow SSH access
  37. firewalld:
  38. service: ssh
  39. permanent: true
  40. state: enabled
  41. - name: Allow 8080 (Jenkins)
  42. firewalld:
  43. port: 8080/tcp
  44. permanent: true
  45. state: enabled
  46. - name: Allow Cockpit
  47. firewalld:
  48. service: cockpit
  49. permanent: true
  50. state: enabled
  51. - name: Enable nginx service
  52. systemd:
  53. name: nginx
  54. enabled: yes
  55. state: started
  56. - name: Enable Jenkins service
  57. systemd:
  58. name: jenkins
  59. enabled: yes
  60. state: started
  61. - name: Enable Cockpit service
  62. systemd:
  63. name: cockpit
  64. enabled: yes
  65. state: started
  66. - name: Enable sshd (openssh-server) service
  67. systemd:
  68. name: sshd
  69. enabled: yes
  70. state: started
  71. - name: Enable fail2ban service
  72. systemd:
  73. name: fail2ban
  74. enabled: yes
  75. state: started
  76. - name: Reload Firewall
  77. command: firewall-cmd --reload
  78. become: true