Can anyone help me to set umask 0022.
I’m always getting 0027 after executing playbook run.
Error:
fatal: [********]: FAILED! => {"changed": true, "cmd": "./installer-binary.run --mode text --disable_glibcxx_version_check 1", "delta": "0:00:30.128584", "end": "2020-01-08 18:53:55.234070", "msg": "command exceeded timeout", "rc": null, "start": "2020-01-08 18:53:25.105486", "stdout": "\r\r\nError: There has been an error.\r\r\nThe installation has detected that the current umask is set to permissions of \r\r\n0027, the installation is now exiting. You should modify your umask to at least \r\r\n0022 before launching the installer. After the installation has completed, reset \r\r\nthe umask permissions to your original values.\r\r\nPress [Enter] to continue:", "stdout_lines": ["", "", "Error: There has been an error.", "", "The installation has detected that the current umask is set to permissions of ", "", "0027, the installation is now exiting. You should modify your umask to at least ", "", "0022 before launching the installer. After the installation has completed, reset ", "", "the umask permissions to your original values.", "", "Press [Enter] to continue:"]}
here’s my task(s):
- name: Change Umask to 0022 to make installer working
shell: umask 0022 && umask
- name: Generic question with multiple different responses
expect:
echo: yes
command: ./{{ version }} --mode text --disable_glibcxx_version_check 1
chdir: /home/app/installers/
responses:
Question:
'Please choose an option': '2'
'\[\/opt\/app\]': '\n'
'Backup Directory \[\/opt\/app\]': '/home/app/backup/'
'Password ': 'Password'
'Do you want to continue\? \[Y\/n\]': 'y'