Skip to main content

Posts

Showing posts with the label Ansible

Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user

<<Back to Ansible Main Page Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user TASK [ora_gi_si_install : Configure Listener] ************************************************************************************************************************************************************************************************ fatal: [192.9.1.6]: FAILED! => {"msg": "Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user (rc: 1, err: chown: invalid user: ‘/u01/oragrid/12.2.0.1/grid’\n}). For information on working around this, see https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user"}         to retry, use: --limit @/home/opc/ansible/playbooks/si_gi_install.retry PLAY RECAP *****************************************************************************************************************************************************...

How to Create Directoris Using Ansible File Module

<<Back to Ansible Main Page Creating Directories on Linux Using Ansible File Module With Item Command - name:  create dirs   become: True   file:     path: "{{ item }}"     state: directory     owner: oragrid     group: oinstall     mode: 0755   with_items:      - "{{ oracle_gh }}"   OR Without Item Command - name:  create dirs   become: True   file:     path: /u01/oragrid/12.2.0.1/grid     state: directory     owner: oragrid     group: oinstall     mode: 0755