--- - name: Copy file bash_profile copy: src: /home/aschwarz/.bash_profile dest: /home/aschwarz/.bash_profile_orig owner: aschwarz group: aschwarz mode: '0644' - name: Extents the profile aschwarz blockinfile: path: /home/aschwarz/.bash_profile block: | echo $DISPLAY > ~/display sudo chmod 777 ~/display sudo chown oracle:dba display sudo cp ~/.Xauthority /home/oracle/ sudo cp ~/display /home/oracle clear echo echo "Verfuegbare Umgebungen" echo echo 1 - ORACLE echo 2 - ROOT echo 3 - USER echo read -p "Bitte Eingabe machen: " option case "$option" in 1) clear sudo -u oracle -i exit;; 2) sudo -i exit;; 3) ;; esac # - name: Chanddge passwd for oracle # user: # state: "present" # user: "oracle" # password: - name: Creates directory /opt/oracle file: path: /opt/oracle state: directory recurse: yes owner: oracle group: dba - name: Creates directory /oradata file: path: /oradata state: directory recurse: yes owner: oracle group: dba - name: Creates directory /oraarch file: path: /oraarch state: directory recurse: yes owner: oracle group: dba