environment.yml 639 B

123456789101112131415161718192021
  1. ---
  2. - name: Ensure locales are generated
  3. locale_gen: name={{ item }}
  4. with_items:
  5. - en_US.UTF-8
  6. - de_DE.UTF-8
  7. - en_US
  8. - name: Ensure default locale is set to en_US.UTF-8
  9. copy: content='LANG="en_US.UTF-8"\n' dest=/etc/default/locale
  10. - name: Install custom bash skeleleton
  11. copy: src=skel dest=/etc/
  12. - name: Ensure root bash config is unchanged
  13. shell: "diff -q /etc/skel/{{ item }} /root/{{ item }} || cp /etc/skel/{{ item }} /root/{{ item }}"
  14. register: shell_result
  15. changed_when: "shell_result.stdout != '' and shell_result.rc == 0"
  16. failed_when: "shell_result.rc != 0"
  17. with_items:
  18. - .bashrc
  19. - .profile