Add ansible header
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
be6bc01114
commit
9b0be73500
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
|||||||
|
debug.yml
|
@ -4,7 +4,8 @@ timeout = 60
|
|||||||
# ask_vault_pass = True
|
# ask_vault_pass = True
|
||||||
|
|
||||||
[privilege_escalation]
|
[privilege_escalation]
|
||||||
# become_ask_pass = True
|
become = True
|
||||||
|
become_ask_pass = True
|
||||||
|
|
||||||
[ssh_connection]
|
[ssh_connection]
|
||||||
pipelining = True
|
pipelining = True
|
||||||
|
@ -1,4 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
# Custom header
|
||||||
|
dirty: "{% if template_path is defined %}{{ lookup('pipe', 'git diff --quiet -- ' + template_path | quote + ' || echo dirty') }}{% else %}{{ lookup('pipe', 'git diff --quiet || echo dirty') }}{% endif %}"
|
||||||
|
ansible_header: |
|
||||||
|
+++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
|
Ansible managed, don't modify the file locally.
|
||||||
|
See https://gitlab.crans.org/nounous/ansible.
|
||||||
|
{% if template_path is defined %}{% set _, rpath = template_path.split('roles/', 1) %}Commit: {% if dirty %}({{dirty}}) {% endif %}{{ lookup('pipe', 'git log -n 1 --pretty=format:%H -- ' + template_path | quote) }}
|
||||||
|
{% if dirty %}Run by: {{ ansible_env.SUDO_USER }}
|
||||||
|
{% else %}Author: {{ lookup('pipe', 'git log -n 1 --pretty=format:%an -- ' + template_path | quote) }}
|
||||||
|
{% endif %}Template: roles/{{ rpath }}
|
||||||
|
{% else %}
|
||||||
|
Run by: {{ ansible_env.SUDO_USER }}
|
||||||
|
Latest commit: {% if dirty %}({{dirty}}) {% endif %}{{ lookup('pipe', 'git rev-parse HEAD') }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
+++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
pass:
|
pass:
|
||||||
upstream: 'ssh://git@git.ynerant.fr:2222/ynerant/pass'
|
upstream: 'ssh://git@git.ynerant.fr:2222/ynerant/pass'
|
||||||
@ -9,7 +28,7 @@ cliutils:
|
|||||||
bogus_dirs: []
|
bogus_dirs: []
|
||||||
git:
|
git:
|
||||||
email: ynerant@crans.org
|
email: ynerant@crans.org
|
||||||
name: ynerant
|
name: Yohann D'ANELLO
|
||||||
signingkey: 3A75C55819C8CF85
|
signingkey: 3A75C55819C8CF85
|
||||||
|
|
||||||
bind:
|
bind:
|
||||||
@ -18,5 +37,17 @@ bind:
|
|||||||
administrator: ynerant.crans.org
|
administrator: ynerant.crans.org
|
||||||
ipv4: 185.230.78.178
|
ipv4: 185.230.78.178
|
||||||
ipv6: 2a0c:700:12:0:f21f:afff:fee5:34ca
|
ipv6: 2a0c:700:12:0:f21f:afff:fee5:34ca
|
||||||
slave: 51.15.199.212
|
slave: "" # 51.15.199.212
|
||||||
aliases: []
|
aliases:
|
||||||
|
- cloud
|
||||||
|
- element
|
||||||
|
- git
|
||||||
|
- hydrogen
|
||||||
|
- mailu
|
||||||
|
- notls
|
||||||
|
- synapse
|
||||||
|
- thelounge
|
||||||
|
- traefik
|
||||||
|
- translate
|
||||||
|
- whoami
|
||||||
|
- www
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
{{ ansible_header | comment }}
|
||||||
|
|
||||||
# enable color support of ls and also add handy aliases
|
# enable color support of ls and also add handy aliases
|
||||||
if [ -x /usr/bin/dircolors ]; then
|
if [ -x /usr/bin/dircolors ]; then
|
||||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
{{ ansible_header | comment }}
|
||||||
|
|
||||||
[ -z "$PS1" ] && return
|
[ -z "$PS1" ] && return
|
||||||
|
|
||||||
HISTCONTROL=ignoredups:ignorespace
|
HISTCONTROL=ignoredups:ignorespace
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
{{ ansible_header | comment }}
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
email = {{ cliutils.git.email }}
|
email = {{ cliutils.git.email }}
|
||||||
name = {{ cliutils.git.name }}
|
name = {{ cliutils.git.name }}
|
||||||
|
@ -1 +1,3 @@
|
|||||||
|
{{ ansible_header | comment }}
|
||||||
|
|
||||||
set mark-symlinked-directories on
|
set mark-symlinked-directories on
|
||||||
|
@ -1,8 +1,17 @@
|
|||||||
|
{{ ansible_header | comment }}
|
||||||
|
|
||||||
unbind r
|
unbind r
|
||||||
bind r source-file ~/.tmux.conf
|
bind r source-file ~/.tmux.conf
|
||||||
|
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
|
## set the default TERM
|
||||||
|
set -g default-terminal screen
|
||||||
|
|
||||||
|
## update the TERM variable of terminal emulator when creating a new session or attaching a existing session
|
||||||
|
set -g update-environment 'DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY TERM'
|
||||||
|
## determine if we should enable 256-colour support
|
||||||
|
if "[[ ${TERM} =~ 256color || ${TERM} == fbterm ]]" 'set -g default-terminal screen-256color'
|
||||||
|
|
||||||
# use the vim motion keys to move between panes
|
# use the vim motion keys to move between panes
|
||||||
bind h select-pane -L
|
bind h select-pane -L
|
||||||
|
Loading…
Reference in New Issue
Block a user