Coder Social home page Coder Social logo

sys-ops's Introduction

sys-ops's People

Contributors

bladecoates avatar

Watchers

 avatar

sys-ops's Issues

ZSH Shell Not correct location

Current Issue:

❯ ansible-playbook -i local, install.yml --ask-become-pass

[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 2.7.17 (default, Jul 20 2020,
15:37:01) [GCC 7.5.0]. This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.
BECOME password:

PLAY [Install RMS Ops Tooling] **************************************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************
ok: [localhost]

TASK [sys.ops.direnv : set direnv.shell.config content fact] ********************************************************************************************************
ok: [localhost]

TASK [sys.ops.direnv : set direnv.base.config content fact] *********************************************************************************************************
ok: [localhost]

TASK [sys.ops.direnv : install direnv] ******************************************************************************************************************************
ok: [localhost]

TASK [sys.ops.direnv : create direnv.base.config directory] *********************************************************************************************************
ok: [localhost]

TASK [sys.ops.direnv : copy direnv.base.config to remote] ***********************************************************************************************************
ok: [localhost]

TASK [sys.ops.direnv : add direnv to bashrc] ************************************************************************************************************************

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Path does not exist !", "rc": 257}

PLAY RECAP **********************************************************************************************************************************************************

alias getinstances="aws ec2 describe-instances --query 'sort_by(Reservations, &(Instances[0].Tags[?Key == `Name`] | [0].Value||`none`))[].Instances[].{Instancelocalhost : ok=6 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

❯ grep -r bashrc
roles/direnv/tasks/main.yml: - name: add direnv to bashrc
roles/direnv/tasks/main.yml: path: "{% if ansible_user_shell == '/bin/bash' %}/.bashrc{% elif ansible_user_shell == 'zsh'%}/.zshrc{% endif %}"
roles/direnv/tasks/main.yml: - name: add direnv to bashrc
roles/direnv/tasks/main.yml: - name: remove direnv from bashrc
roles/direnv/tasks/main.yml: path: "{% if ansible_user_shell == '/bin/bash' %}/.bashrc{% elif ansible_user_shell == 'zsh'%}/.zshrc{% endif %}"
roles/direnv/tasks/main.yml: - name: remove direnv from bashrc
roles/pyenv/tasks/main.yml:- name: set pyenv bashrc content fact
roles/pyenv/tasks/main.yml: - name: add pyenv to bashrc
roles/pyenv/tasks/main.yml: path: "{% if ansible_user_shell == '/bin/bash' %}/.bashrc{% elif ansible_user_shell == 'zsh'%}/.zshrc{% endif %}"
roles/pyenv/tasks/main.yml: - name: add pyenv to bashrc
roles/pyenv/tasks/main.yml: - name: remove pyenv from bashrc
roles/pyenv/tasks/main.yml: path: "{% if ansible_user_shell == '/bin/bash' %}/.bashrc{% elif ansible_user_shell == 'zsh'%}/.zshrc{% endif %}"
roles/pyenv/tasks/main.yml: - name: remove pyenv from bashrc
❯ cd roles/direnv/tasks/

Resolved by replacing zsh with /usr/bin/zsh

❯ echo $SHELL
/usr/bin/zsh

❯ ansible-playbook -i local, install.yml --ask-become-pass

[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 2.7.17 (default, Jul 20 2020,
15:37:01) [GCC 7.5.0]. This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.
BECOME password:

PLAY [Install RMS Ops Tooling] **************************************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************
ok: [localhost]

TASK [sys.ops.direnv : set direnv.shell.config content fact] ********************************************************************************************************
ok: [localhost]

TASK [sys.ops.direnv : set direnv.base.config content fact] *********************************************************************************************************
ok: [localhost]

TASK [sys.ops.direnv : install direnv] ******************************************************************************************************************************
ok: [localhost]

TASK [sys.ops.direnv : create direnv.base.config directory] *********************************************************************************************************
ok: [localhost]

TASK [sys.ops.direnv : copy direnv.base.config to remote] ***********************************************************************************************************
ok: [localhost]

block:

TASK [sys.ops.direnv : add direnv to bashrc] ************************************************************************************************************************
changed: [localhost]

TASK [sys.ops.direnv : add direnv to bashrc] ************************************************************************************************************************
skipping: [localhost]

TASK [sys.ops.pyenv : install pyenv requirements] *******************************************************************************************************************
changed: [localhost]

TASK [sys.ops.pyenv : set pyenv bashrc content fact] ****************************************************************************************************************
ok: [localhost]

TASK [sys.ops.pyenv : set pyenv begin.profile content fact] *********************************************************************************************************
ok: [localhost]

TASK [sys.ops.pyenv : set pyenv end.profile content fact] ***********************************************************************************************************
ok: [localhost]

TASK [sys.ops.pyenv : install pyenv] ********************************************************************************************************************************
ok: [localhost]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.