main.yaml 661 B

123456789101112131415161718192021222324252627282930313233
  1. ---
  2. # basic role, configures irbrc, vimrc
  3. - name: Ensure irbrc is installed for user root
  4. copy:
  5. src: irbrc
  6. dest: /root/.irbrc
  7. - name: Ensure vimrc is installed for user root
  8. copy:
  9. src: vimrc
  10. dest: /root/.vimrc
  11. - name: Bash Completion
  12. yum:
  13. pkg: bash-completion
  14. state: installed
  15. - name: Install firewalld
  16. yum:
  17. pkg: firewalld
  18. state: installed
  19. - name: start and enable firewalld service
  20. service:
  21. name: firewalld
  22. state: started
  23. enabled: yes
  24. register: result
  25. - name: need to pause here, otherwise the firewalld service starting can sometimes cause ssh to fail
  26. pause: seconds=10
  27. when: result | changed