--- # tasks file for profile_settings - name: Make scripts dir file: path: "{{ ansible_env.HOME }}/scripts" state: directory - name: Copy bt_reconnect script copy: src: bt_reconnect.sh dest: "{{ ansible_env.HOME }}/scripts/" - name: Copy .gitconfig copy: src: .gitconfig dest: "{{ ansible_env.HOME }}/.gitconfig" - name: Make secret dir file: path: "{{ ansible_env.HOME }}/secrets" state: directory - name: Make bin dir file: path: "{{ ansible_env.HOME }}/bin" state: directory - name: Create a symbolic link on terraform ansible.builtin.file: src: "~/.tfenv/bin/terraform" dest: "~/.local/bin/terraform" state: link - name: Copy remmina config for rdfarm copy: src: group_rdp_rdfarm-ams2-1-offilan-com_rdfarm-ams2-1-offilan-com.remmina dest: "{{ ansible_env.HOME }}/.local/share/remmina/" - name: Copy remmina config for ts0 copy: src: group_rdp_stg-msk-ts0-telecontact-su_stg-msk-ts0-telecontact-su.remmina dest: "{{ ansible_env.HOME }}/.local/share/remmina/" - name: Copy remmina config for rds6 copy: src: group_rdp_tc-mix-rds6-telecontact-ru_tc-mix-rds6-telecontact-ru.remmina dest: "{{ ansible_env.HOME }}/.local/share/remmina/" - name: Copy remmina pref copy: src: remmina.pref dest: "{{ ansible_env.HOME }}/.config/remmina/" - name: Create a symbolic link on keepassxc ansible.builtin.file: src: "/opt/apps/keepassxc/keepassxc" dest: "~/.local/bin/keepassxc" state: link - name: Copy keepassxc config copy: src: keepassxc.ini dest: "{{ ansible_env.HOME }}/.config/keepassxc/" - name: Create a symbolic link on nextcloud ansible.builtin.file: src: "/opt/apps/nextcloud/nextcloud" dest: "~/.local/bin/nextcloud" state: link - name: Create a symbolic link on telegram ansible.builtin.file: src: "/opt/apps/Telegram/Telegram" dest: "~/.local/bin/telegram" state: link - name: Make cybrnx dir file: path: "{{ ansible_env.HOME }}/Projects/c/cybrnx/" state: directory recurse: true - name: Clone git repository terraform-applications ansible.builtin.git: repo: 'git@github.com:cybrnx/terraform-applications.git' dest: "{{ ansible_env.HOME }}/Projects/c/cybrnx/terraform-applications" update: no - name: Clone git repository terraform-bootstrap ansible.builtin.git: repo: 'git@github.com:cybrnx/terraform-bootstrap.git' dest: "{{ ansible_env.HOME }}/Projects/c/cybrnx/terraform-bootstrap" update: no - name: Clone git repository terraform-modules ansible.builtin.git: repo: 'git@github.com:cybrnx/terraform-modules.git' dest: "{{ ansible_env.HOME }}/Projects/c/cybrnx/terraform-modules" update: no - name: Clone git repository terraform-operations ansible.builtin.git: repo: 'git@github.com:cybrnx/terraform-operations.git' dest: "{{ ansible_env.HOME }}/Projects/c/cybrnx/terraform-operations" update: no - name: Clone git repository terraform-organization ansible.builtin.git: repo: 'git@github.com:cybrnx/terraform-organization.git' dest: "{{ ansible_env.HOME }}/Projects/c/cybrnx/terraform-organization" update: no - name: Clone git repository terraform-organizatiom for VSCode ansible.builtin.git: repo: 'https://github.com/hariscodes/vscode-language-terraform' dest: "{{ ansible_env.HOME }}/.vscode/extensions/vscode-language-terraform" update: no # Setting oh-my-zsh - name: Clone git repository terraform-organizatiom for VSCode ansible.builtin.git: repo: 'https://github.com/ohmyzsh/ohmyzsh' dest: "{{ ansible_env.HOME }}/.oh-my-zsh/" - name: Copy .zshrc copy: src: .zshrc dest: "{{ ansible_env.HOME }}/.zshrc" - name: Copy .tmux.conf copy: src: .tmux.conf dest: "{{ ansible_env.HOME }}/.tmux.conf" - name: change user shell to zsh become: yes user: name: "vakhtang" shell: /bin/zsh - name: change user shell to zsh become: yes user: name: "vgvenetadze" shell: /bin/zsh - name: Copy krb5.conf copy: src: krb5.conf dest: "/etc/krb5.conf" become: yes # Apply profile - name: Apply profile shell: source ~/.profile args: executable: /bin/bash # - name: Run Oh My Zsh installation script # command: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" --unattended # register: ohmyzsh_result # failed_when: "'FAILED' in ohmyzsh_result.stderr"