main.yaml 474 B

123456789101112131415161718192021222324
  1. ---
  2. # environment configuration 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. when: ansible_pkg_mgr == "yum"
  16. - name: Bash Completion
  17. dnf:
  18. pkg: bash-completion
  19. state: installed
  20. when: ansible_pkg_mgr == "dnf"