diff --git a/molecule/resources/playbooks/prepare.yml b/molecule/resources/playbooks/prepare.yml index f8309259a37519a1b54651bb5facda68d1d976ff..5e89224b7c11cba4f4040e4050a05e6a96ec549f 100644 --- a/molecule/resources/playbooks/prepare.yml +++ b/molecule/resources/playbooks/prepare.yml @@ -107,6 +107,10 @@ become: true when: pki.failed is false changed_when: false + - name: create .cshrc file + ansible.builtin.file: + path: "/exlibris/dps/.cshrc" + state: touch roles: - { role: "ansible_lza_install_common", become: true } diff --git a/tasks/rosetta/configure_shell.yml b/tasks/rosetta/configure_shell.yml index 06ec572a1284cfa6f0c52c0e624b0615e6fb45c7..b60a83acd3ff6e256ce9a0898587bbd55c178aa5 100644 --- a/tasks/rosetta/configure_shell.yml +++ b/tasks/rosetta/configure_shell.yml @@ -1,8 +1,29 @@ --- -- name: add aliases for Rosetta user +- name: Add aliases for Rosetta user. ansible.builtin.blockinfile: path: "/exlibris/dps/.cshrc" marker: "# {mark} ANSIBLE MANAGED BLOCK - SLUB extras" block: | alias dps_multitail 'cd $op_dir/logs/; multitail --mergeall sdvlzarosappprod01/server.log sdvlzarosappprod02/server.log sdvlzarosappprod03/server.log' when: "'prod0' in ansible_hostname" + +- name: > + Remove default locale (as suggested in ExLibris case 07844382) + (https://support.proquest.com/500QO00000PNI2fYAH). + ansible.builtin.lineinfile: + path: "/exlibris/dps/.cshrc" + regexp: "{{ item }}" + state: absent + loop: + - "setenv LANG C" + - "setenv LC_ALL C" + +- name: > + Set locale (as suggested in ExLibris case 07844382) + (https://support.proquest.com/500QO00000PNI2fYAH). + ansible.builtin.blockinfile: + path: "/exlibris/dps/.cshrc" + marker: "# {mark} ANSIBLE MANAGED BLOCK - SC 07844382" + block: | + setenv LANG en_US.UTF-8 + setenv LC_ALL en_US.UTF-8