1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_dotfiles.git synced 2024-08-16 16:09:49 +02:00

Update gitsuball alias

This commit is contained in:
L3D 2020-09-18 15:10:56 +02:00
parent 1246e5e23c
commit 5f8ddc5622
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
3 changed files with 4 additions and 2 deletions

View file

@ -14,6 +14,7 @@
register: playbook_version register: playbook_version
when: submodules_versioncheck|bool when: submodules_versioncheck|bool
ignore_errors: yes ignore_errors: yes
failed_when: false
- name: Print remote role version - name: Print remote role version
debug: debug:
@ -41,4 +42,5 @@
copy: copy:
content: "{{ playbook_version_number }}" content: "{{ playbook_version_number }}"
dest: "/etc/.ansible-version/{{ playbook_version_path }}" dest: "/etc/.ansible-version/{{ playbook_version_path }}"
mode: 0644
when: submodules_versioncheck|bool when: submodules_versioncheck|bool

View file

@ -129,7 +129,7 @@ alias VISUAL='{{ dotfiles_default_visual }}'
alias got='git' alias got='git'
{% endif %} {% endif %}
{% if git_pull_alias | bool -%} {% if git_pull_alias | bool -%}
alias gitsubpull='git submodule foreach "(git checkout master; git pull)"' alias gitsubpull='git submodule foreach "(git checkout $(git symbolic-ref --short refs/remotes/origin/HEAD | sed "s@^origin/@@"); git pull)"'
{% endif %} {% endif %}
{% if bash['pwgen'] %}alias pwgen="/usr/bin/pwgen --num-passwords=3000 --numerals --capitalize --secure --no-vowels --symbols 42 | grep -v '0' | grep -v 'o' | grep -v 'O' | grep -v '\"' | grep -v 'I' | grep -v 'l' | grep -v '1' | grep -v '´' | grep -v '@' | tail -1 "{% endif %} {% if bash['pwgen'] %}alias pwgen="/usr/bin/pwgen --num-passwords=3000 --numerals --capitalize --secure --no-vowels --symbols 42 | grep -v '0' | grep -v 'o' | grep -v 'O' | grep -v '\"' | grep -v 'I' | grep -v 'l' | grep -v '1' | grep -v '´' | grep -v '@' | tail -1 "{% endif %}

View file

@ -8,5 +8,5 @@ bash:
shell: "/bin/bash" shell: "/bin/bash"
keyboard: '$(if [[ $(id -u) -ne 0 ]];then echo "\[\033[01;33m\]"; else echo "\[\033[01;31m\]"; fi) $(if [[ $? == 0 ]]; then printf "\xE2\x9D\xA4"; fi) \[\033[01;32m\]\u\[\033[01;36m\]@\[\033[01;32m\]\H\[\033[01;34m\] <\A> \[\033[01;35m\] \j \[\033[01;36m\] \w \[\033[01;33m\]\n\[\033[01;33m\] $(git branch 2>/dev/null | sed -n "s/* \(.*\)/\1 /p")$\[\033[01;00m\] ' keyboard: '$(if [[ $(id -u) -ne 0 ]];then echo "\[\033[01;33m\]"; else echo "\[\033[01;31m\]"; fi) $(if [[ $? == 0 ]]; then printf "\xE2\x9D\xA4"; fi) \[\033[01;32m\]\u\[\033[01;36m\]@\[\033[01;32m\]\H\[\033[01;34m\] <\A> \[\033[01;35m\] \j \[\033[01;36m\] \w \[\033[01;33m\]\n\[\033[01;33m\] $(git branch 2>/dev/null | sed -n "s/* \(.*\)/\1 /p")$\[\033[01;00m\] '
playbook_version_number: 2053 # should be over ninethousand playbook_version_number: 2055 # should be over ninethousand
playbook_version_path: 'role_dotfiles_chaos-bodensee_github.version' playbook_version_path: 'role_dotfiles_chaos-bodensee_github.version'