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.

82 lines
1.8 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. - python-firewall
  25. # need to get anaconda install class for TigerOS possibly
  26. #- letsencrypt
  27. - name: Allow HTTPS (nginx)
  28. firewalld:
  29. service: https
  30. permanent: true
  31. state: enabled
  32. - name: Allow HTTP (nginx)
  33. firewalld:
  34. service: http
  35. permanent: true
  36. state: enabled
  37. - name: Allow SSH access
  38. firewalld:
  39. service: ssh
  40. permanent: true
  41. state: enabled
  42. - name: Allow 8080 (Jenkins)
  43. firewalld:
  44. port: 8080/tcp
  45. permanent: true
  46. state: enabled
  47. - name: Allow Cockpit
  48. firewalld:
  49. service: cockpit
  50. permanent: true
  51. state: enabled
  52. - name: Enable nginx service
  53. systemd:
  54. name: nginx
  55. enabled: yes
  56. state: started
  57. - name: Enable Jenkins service
  58. systemd:
  59. name: jenkins
  60. enabled: yes
  61. state: started
  62. - name: Enable Cockpit service
  63. systemd:
  64. name: cockpit
  65. enabled: yes
  66. state: started
  67. - name: Enable sshd (openssh-server) service
  68. systemd:
  69. name: sshd
  70. enabled: yes
  71. state: started
  72. - name: Enable fail2ban service
  73. systemd:
  74. name: fail2ban
  75. enabled: yes
  76. state: started
  77. - name: Reload Firewall
  78. command: firewall-cmd --reload
  79. become: true
  80. - name: Update packages
  81. command: dnf update
  82. become: true